Crontab not execute cp command
Good day,
I try with any succesful this sentence at crontab:
0 8 * * * root cp -rv /home /bk/home.
What's wrong?
Thanks for your time,
Regards,
Ing. Juan L. Mera
ConexGrumer Asesores
Divisin Sistemas
www.grupomera.net
Juan Mera wrote:
> Good day,
>
> I try with any succesful this sentence at crontab:
> 0 8 * * * root cp -rv /home /bk/home.
>
> What's wrong?
>
Check the path in /etc/crontab. Mine looks like this:
PATH=/sbin:/bin:/usr/sbin:/usr/bin
If yours is missing the path to cp that would be the problem.
Similar Messages
-
Runtime.exec not executing the command !
Hi all,
I'm connecting to Progress Db thru JDBC trying to execute a stored procedure
which has a statement
Runtime.exec("ksh -c aa") where aa is aunix script which i'm trying to run from java snippet .
when i run this code as a seperate java program it executes the script
"aa" but thru JDBC connection it does not execute the command
what could be the reason ???
thanx in advance,
Nagu.Hi Rick,
"aa" is the shell script which is lying in the user DIR .
It is returning a non-zero value. what kind of permissions be there for to execute the Shell command?
Regards,
Nagarathna. -
Receiver File Adapter Not Executing OS Command
Hello All!
We are currently running PI 7.1 and wish to use a Receiver File Adapter to FTP a file to a mainframe and override the FTP system defaults.
Tried using the 'quote site recfm=fb lrecl=80' OS command but discovered that this would not work as the Adapter Engine is NOT on the mainframe.
Regrouped a bit and made a second attempt which involved writing a Unix script to ftp a file and override rthe system defaults. The idea was to use the File Adapter to FTP the data to the server, invoke the script and get the file to the mainframe with the proper attributes. The script when executed on the server works perfectly.
However, when the IDoc comes thru PI, the File Adapter ftp's the file ok but the script is never executed.
Any ideas why this is so or any suggestions?
Thank you.Hi Ken,
Script only executes at Network File sharing (NFS) only. It dont work at FTP level.
So you can better write the file on NFS and then within the script to connect to ftp and do your processing.
Regards,
---Satish -
Bash script run via cron not executing MYSQL command
I have a bash script which is run from a cron,
It is executing as I have it write to a log file which it does correctly.
I am wanting the bash script to restore a mysqldump file.
When I run the bash script manually the dump file gets loaded fine. But when I run it through the cron the mysql command appears to be ignored.
The mysqldump file is 54MB and I have checked to make sure that MYSQL is included in the global users path in /etc/profile
Does anyone know why this maybe??
Here is the bash file
#!/bin/bash
date >> /home/user/crons/crons.log
echo "Started loadbackup" >> /home/user/crons/crons.log
cd /home/user
dbuser=root
dbpass=password
dbname=databasename
filename=backup
mysql -hlocalhost -u"$dbuser" -p"$dbpass" "$dbname" < " >> /home/user/crons/crons.log
My crontab looks like
02 17 * * * /home/user/crons/loadbackup.sh
Many thanks
RichardHi Richard,
Have you tried redirecting the script output in the cron to see if an error is being reported?
I.e.
02 17 * * * /home/user/crons/loadbackup.sh > /tmp/loadbackup.log 2>&1 -
Cfexecute not executing CVS commands ina bat file
We are running CF 7.0 on Windows server.
I am creating a bat file containing both DOS commands and CVS
commands.
When executing the bat file via <CFexecute> the DOS
commands execute, but the CVS commands do not.
When running the bat file from the DOS command prompt, all
commands (DOS and CVS) run as expected.
Anyone have any ideas?
ThanksOn Wed, 24 Jan 2007 23:03:48 +0000 (UTC), JRoccaforte wrote:
> That could be an issue. I am however using my login and
password in the commands
Ian didn't mean the CVS permissions, he meant the filesystem
/ OS
permissions. The a/c that ColdFusion uses to access the file
system and
other system resources is very limited, by default.
You need to login (to the OS) as the a/c CF is using, and see
if you can
execute your batch file.
Adam -
Executing OS command from sql procedure
i want to execute an OS command from the procedure, can i do this way? looks like it is not executing the command move....
declare
begin
dbms_output.put_line(' moving...');
host;
move c:\file1\test.txt C:\moved
exit;
/True. But that job is going to run in a separate session, some time after the current transaction commits (depending on the number of jobs queued up to run). So if you need to pass information back from the job, or you want the procedure to handle exceptions thrown by the job, or you want to tie job related failures back to a particular application level event, or you want the rest of your procedure to wait for the operating system command to finish, using the DBMS_SCHEDULER for this sort of thing is going to require a fair amount of additional coordination/ monitoring/ infrastructure code. It's certainly not a Herculean task to write that additional code, and it's reasonable in some situations, but the Java stored procedure approach strikes me as substantially easier to deal with in most cases.
Justin -
Servlet not executing the a file at server?
i am trying to execute a java file at server
using the following servlet. I am using
Process proc=runtime.exec("C:\\j2sdk1.4.1_01\\bin\\javac HelloServlet.java"); I am compiling the code succesfully
and when i call the servlet at browser it displays HELLO
but not executing the command. I am using Tomcat and winows NT.
here the servlet code ....please help.........
import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class Hello extends HttpServlet {
public void doGet(HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html");
PrintWriter out = response.getWriter();
String docType =
"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 " +
"Transitional//EN\">\n";
out.println(docType +
"<HTML>\n" +
"<HEAD><TITLE>Hello</TITLE></HEAD>\n" +
"<BODY BGCOLOR=\"#FDF5E6\">\n" +
"<H1>Hello</H1>\n" +
"</BODY></HTML>");
try
Runtime runtime=Runtime.getRuntime();
Process proc=runtime.exec("C:\\j2sdk1.4.1_01 \\bin\\javac HelloServlet.java");
BufferedReader br=new BufferedReader(new InputStreamReader(proc.getInputStream()));
PrintWriter com_out=response.getWriter();
com_out.println("<pre>");
String line=null;
while((line=br.readLine())!=null)
{ com_out.println(line);
catch (Exception e)
out.println("Listener *not* started!");thanku for the cooperation. i kept as below but still it is not working.......
String path = getServletContext().getRealPath("C:\\Tomcat 4.1\\webapps\\examples\\WEB-INF\\classes\\Hello.class");
Runtime runtime=Runtime.getRuntime();
Process proc=runtime.exec("C:\\j2sdk1.4.1_01\\bin\\javac HelloServlet.java" +path ); -
Not able to HTTP to SUB and SSH is not allowing any command to execute
Hi All,
I came across an issue, where CUCM SUB is not accessible by HTTP/S and SSH is giving following output while trying to re-start or executing any command :
admin:utils service list
/usr/java/jdk1.6.0_24/jre/lib/rt.jar: error reading zip file
Exception in thread "main" java.lang.NoClassDefFoundError: java/net/ConnectException
at com.cisco.iptplatform.cli.CliClassLauncher.<init>(CliClassLauncher.java:86)
at sdMain.main(sdMain.java:1824)
Caused by: java.lang.ClassNotFoundException: java.net.ConnectException
at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 2 more
Caused by: java.util.zip.ZipException: error reading zip file
at java.util.zip.ZipFile.read(Native Method)
at java.util.zip.ZipFile.access$1200(ZipFile.java:31)
at java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:460)
at sun.misc.Resource.getBytes(Resource.java:108)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:257)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
... 7 more
Any inputs please ?? Waiting for a hard re-boot to the device bit not sure if that would resolve the issue, Also when I first logged into SUB using SSH , I got the following :
Command Line Interface is starting up, please wait ...
java.io.FileNotFoundException: /var/log/active/platform/log/cli.bin (Read-only f ile system)
at java.io.RandomAccessFile.open(Native Method)
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:212)
at com.cisco.iptplatform.fappend.ciscoRollingFileAppender.restoreIndex(c iscoRollingFileAppender.java:100)
at com.cisco.iptplatform.fappend.ciscoRollingFileAppender.setFile(ciscoR ollingFileAppender.java:43)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.log4j.config.PropertySetter.setProperty(PropertySetter.jav a:196)
at org.apache.log4j.config.PropertySetter.setProperty(PropertySetter.jav a:155)
at org.apache.log4j.xml.DOMConfigurator.setParameter(DOMConfigurator.jav a:530)
at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.ja va:182)
at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurat or.java:140)
at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfi gurator.java:153)
at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOM Configurator.java:415)
at org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:3 84)
at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:783)
at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java :666)
at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java :616)
at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java :584)
at org.apache.log4j.xml.DOMConfigurator.configure(DOMConfigurator.java:6 87)
at sdMain.initialize(sdMain.java:479)
at sdMain.main(sdMain.java:646)
java.lang.NullPointerException
at com.cisco.iptplatform.fappend.ciscoRollingFileAppender.updateIndex(ci scoRollingFileAppender.java:117)
at com.cisco.iptplatform.fappend.ciscoRollingFileAppender.nextFileName(c iscoRollingFileAppender.java:92)
at com.cisco.iptplatform.fappend.ciscoRollingFileAppender.append(ciscoRo llingFileAppender.java:74)
at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:221)
at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders (AppenderAttachableImpl.java:57)
at org.apache.log4j.Category.callAppenders(Category.java:187)
at org.apache.log4j.Category.forcedLog(Category.java:372)
at org.apache.log4j.Category.debug(Category.java:241)
at com.cisco.iptplatform.cli.CliSettings.getInstance(CliSettings.java:10 6)
at sdMain.initialize(sdMain.java:491)
at sdMain.main(sdMain.java:646)
log4j:ERROR No output stream or file set for the appender named [CLI_LOG].
/usr/java/jdk1.6.0_24/jre/lib/rt.jar: error reading zip file
Exception in thread "Thread-9" java.lang.NoClassDefFoundError: java/net/URI$Pars er
at java.net.URI.<init>(URI.java:578)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:350)
at java.net.Socket.connect(Socket.java:529)
at java.net.Socket.connect(Socket.java:478)
at java.net.Socket.<init>(Socket.java:375)
at java.net.Socket.<init>(Socket.java:189)
at com.cisco.ccm.util.ncs.NcsClient.connect(NcsClient.java:342)
at com.cisco.ccm.util.ncs.NcsClient$ReceiveThread.run(NcsClient.java:447 )
Welcome to the Platform Command Line Interface
WARNING:
The /common file system is mounted read only.
Please use Recovery Disk to check the file system using fsck.
Cheers
AnjaliCheck this Bug: CSCti52867 - https://supportforums.cisco.com/docs/DOC-12955
I have a customer with this same problem, we use to use the Callmanager Recovery DVD, as Amine said, to recover the HD. But some times reseting the server resolved the problem.
Mártin -
OS Commands not executing through published java procedure... :(
Hello all :)
Im trying to get a PL/SQL block to delete a file out in the OS. Theres plenty of examples out there and the one I got came from burleson consulting, and incorporates a java method and a call to java wrapped in PL/SQL.. after all suggested grants, using the procedure yields no result. Here is the source code
-- java procedure used to execute OS command
CREATE OR REPLACE AND COMPILE JAVA SOURCE NAMED "Host" AS
import java.io.*;
public class Host {
public static void executeCommand(String command) {
try {
String[] finalCommand;
if (isWindows()) {
finalCommand = new String[4];
finalCommand[0] = "C:\\WINDOWS\\system32\\cmd.exe";
finalCommand[1] = "/y";
finalCommand[2] = "/c";
finalCommand[3] = command;
else {
finalCommand = new String[3];
finalCommand[0] = "/bin/sh";
finalCommand[1] = "-c";
finalCommand[2] = command;
final Process pr = Runtime.getRuntime().exec(finalCommand);
new Thread(new Runnable() {
public void run() {
try {
BufferedReader br_in = new BufferedReader(new
InputStreamReader(pr.getInputStream()));
String buff = null;
while ((buff = br_in.readLine()) != null) {
System.out.println(buff);
try {Thread.sleep(100); } catch(Exception e) {}
br_in.close();
catch (IOException ioe) {
System.out.println("Exception caught printing process output.");
ioe.printStackTrace();
}).start();
new Thread(new Runnable() {
public void run() {
try {
BufferedReader br_err = new BufferedReader(new
InputStreamReader(pr.getErrorStream()));
String buff = null;
while ((buff = br_err.readLine()) != null) {
System.out.println(buff);
try {Thread.sleep(100); } catch(Exception e) {}
br_err.close();
catch (IOException ioe) {
System.out.println("Exception caught printing process error.");
ioe.printStackTrace();
}).start();
catch (Exception ex) {
System.out.println(ex.getLocalizedMessage());
public static boolean isWindows() {
if (System.getProperty("os.name").toLowerCase().indexOf("windows") != -1)
return true;
else
return false;
-- PL/SQL wrapper to publish java method.
CREATE OR REPLACE PROCEDURE host_command (p_command IN VARCHAR2)
AS LANGUAGE JAVA
NAME 'Host.executeCommand (java.lang.String)';
these are the grants I am issuing on install:
BEGIN
DBMS_JAVA.grant_permission ('LOANADMIN', 'java.io.FilePermission',
'<>', 'read ,write, execute, delete');
DBMS_JAVA.grant_permission ('LOANADMIN', 'SYS:java.lang.RuntimePermission',
'writeFileDescriptor', '');
DBMS_JAVA.grant_permission ('LOANADMIN', 'SYS:java.lang.RuntimePermission',
'readFileDescriptor', '');
END;
-- and this is the block I am using to execute the OS command..
1 BEGIN
2 host_command (p_command => 'DEL C:\PRETEND.TXT');
3* END;
SQL> /
PL/SQL procedure successfully completed.
Everything returns as successfully completed. But the file is not deleted from the server. I know im missing some kind of privilege. Can anyone help me? Thanks
MoBurleson consulting...
Says it all. Exposure on the Net doesn't mean quality.
Burleson code usually has not been tested, is not robust, and quite often doesn't work.
Why didn't you implement run_cmd, as suggested earlier?
THAT works!
Sybrand Bakker
Senior Oracle DBA -
Command On Source -Not Executing
Hi
In a CKM, I am creating a bind variable by ruuning the SQL on 'Command on Source' tab and using it as a bind variable in 'Command on Target' tab, but when I execute the interface I see only 'Command on Target' is getting executed and 'Command on Source' is not.
I am getting a value in Command on Source tab and using it as a Table Name in the 'from' clause on the 'Command on Target'
regardsAny clue why Command on Source is not executing?
-
Could not execute auto check for display colors using command /usr/
I am trying to Install Oracle 10g R2 on Solaris X86 32 bit
I am connecting to system from my windows vista laptop through putty... I get the following error...
$ ./runInstaller
Starting Oracle Universal Installer...
Checking installer requirements...
Checking operating system version: must be 5.10. Actual 5.10
Passed
Checking Temp space: must be greater than 250 MB. Actual 1214 MB Passed
Checking swap space: must be greater than 500 MB. Actual 1799 MB Passed
Checking monitor: must be configured to display at least 256 colors
>>> Could not execute auto check for display colors using command /usr/openw
Some requirement checks failed. You must fulfill these requirements before
continuing with the installation,at which time they will be rechecked.
Continue? (y/n) [n] n
User Selected: No
Exiting Oracle Universal Installer, log for this session can be found at /tmp/Or
I have done the following:-
# DISPLAY=192.168.1.133:0.0; export DISPLAY
# echo $DISPLAY
192.168.1.133:0.0
# xhost+
xhost+: not found
# xclock
xclock: not found
I know that I have to do the following:-
1. Install SUNWxwplt package ========> Is already Installed
2. Set DISPLAY variable
3. Execute xhost + on target (set in DISPLAY) computer
# pkginfo -i SUNWxwplt
system SUNWxwplt X Window System platform software
Some sites claim xming and some xwindows etc.... Plz give me a step by step instruction as how to overcome this..
bash-3.00# /usr/openwin/bin/xclock
Error: Can't open display:
bash-3.00# DISPLAY=192.168.1.133:0.0; export DISPLAY; echo DISPLAY
DISPLAY
bash-3.00# echo $DISPLAY
192.168.1.133:0.0
bash-3.00# /usr/openwin/bin/xclock
Error: Can't open display: 192.168.1.133:0.0
bash-3.00# pwd
bash-3.00# find . -name xhost
./usr/openwin/bin/xhost
^C
bash-3.00# /usr/openwin/bin/xhost +
/usr/openwin/bin/xhost: unable to open display "192.168.1.133:0.0"
bash-3.00#
# echo $PATH
/usr/sbin:/usr/bin
I have also gone through the below ... but was not of much help
Unable to execute runInstaller: Check if the DISPLAY variable is set
Plz help
Edited by: [email protected] on Feb 11, 2009 5:16 AMbash-3.00# echo $SHELL
/sbin/sh
bash-3.00# echo $DISPLAY
bash-3.00# DISPLAY=192.168.1.133:0.0;export DISPLAY
bash-3.00# echo $DISPLAY
192.168.1.133:0.0
bash-3.00# /usr/openwin/bin/xclock
Error: Can't open display: 192.168.1.133:0.0
bash-3.00# man xclock
No manual entry for xclock.
bash-3.00# /usr/openwin/bin/xhost +
/usr/openwin/bin/xhost: unable to open display "192.168.1.133:0.0"
bash-3.00# -
Scripts in crontab not being able to execute
-bash-3.00$ uname -a
SunOS NYC05SR011 5.10 Generic_144489-06 i86pc i386 i86pc
-bash-3.00$ crontab -l
50 23 * * * /u/home/oracle/oracle_backup/rman_backup_script.sh > /u/home/oracle/oracle_backup/rman_backup_script_log.txt 2>&1
i am able to run the same script manually but script not executed as scheduled in crontab
-bash-3.00$ cat rman_backup_script_log.txt
/u/home/oracle/oracle_backup/rman_backup_script.sh: ~: does not exist
-bash-3.00$ ls -lh /u/home/oracle/oracle_backup/rman_backup_script.sh
-rwxr--r-- 1 oracle oinstall 2.5K Jul 28 06:03 /u/home/oracle/oracle_backup/rman_backup_script.sh
Please suggest!
thanksCrontabs are executed with /bin/sh by default. Be sure to specify what shell you want to execute the script (#!/bin/bash, etc). You may also have to specify the LANG variable as it is a null value by default (LANG=C ; export LANG etc) and things work differently with different LANG environments or no LANG environments specified.
-
Could not able to execute FTP commands in windows server machines 2012/ windows server 2008.
From windows server 2012 and windows server 2008, Opened port 20,21,22 in firewall bidirectionally. After Establishing connection by passing credentials 230 log in successful.
ftp commands executing getting as " 425 Use Port or PASV first" , "500 Illegal PORT command".
But I could able to do windows client machines like windows 7 and windows 8 with same environment
Note : Firewall ports are opened. have tested by making firewall down to avoid filters.
Pandiyan MuthuramanHi Pandiyan Muthuraman,
Did you mean even you disable or open the related port the FTP issue still exist? I found this errors most time occur when we use the ISA firewall and the FTP configured passive
mode, if you have ISA firewall please refer the following KB to fix this issue.
How to enable passive CERN FTP connections through ISA Server 2000, 2004, or 2006
http://support.microsoft.com/kb/300641
The have a specific form for the IIS question, if you have the further IIS related question you can ask in IIS forum.
IIS support forum
http://forums.iis.net/
Thanks for your understanding and support
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place. -
Could not execute command "getState" for server server01 using nodemanager
Hi,
I have built a weblogic 9.1 env with 2 managed servers running on different boxes from the admin server.
I am having problems in starting the managed servers using the nodemanager. I get the following error message in the Admin server log:
<Error> <NodeManager> <BEA-300034> <Could not execute command "getState" for server "******" using the node manager. Reason: I/O error while reading domain directory: java.io.FileNotFoundException: Domain directory '/opt/bea/weblogic91/common/nodemanager' invalid (domain salt file not found).>
I get the following message on the admin console:
For server ******, the Node Manager associated with machine ******-machine is not reachable.
All of the servers selected are currently in a state which is incompatible with this operation or are not associated with a running Node Manager. No action will be performed.
I can start the managed server using the "startMangedWeblogic.sh" without any issues.
Any help on this would be greatly appreciated.
Thanksone more thing to add:
I get the following error in the Managed server log:
<I/O error while reading domain directory: java.io.FileNotFoundException: Domain directory '/opt/bea/weblogic91/common/nodemanager' invalid (domain salt file not found)>
java.io.FileNotFoundException: Domain directory '/opt/bea/weblogic91/common/nodemanager' invalid (domain salt file not found)
at weblogic.nodemanager.server.DomainManager.initialize(DomainManager.java:74)
at weblogic.nodemanager.server.DomainManager.<init>(DomainManager.java:46)
at weblogic.nodemanager.server.NMServer.getDomainManager(NMServer.java:239)
at weblogic.nodemanager.server.Handler.handleDomain(Handler.java:170)
at weblogic.nodemanager.server.Handler.handleCommand(Handler.java:104)
at weblogic.nodemanager.server.Handler.run(Handler.java:64)
at java.lang.Thread.run(Thread.java:595) -
Delete command are not executed in function of Java Bean
Hello Sir,
In Java bean have a function submitData.I want in this function run delete command through PreparedStatement..But Its not executed.
Please review..
public void submitData()
try
System.out.println("Printed*************************************************************");
Class.forName("oracle.jdbc.driver.OracleDriver");
System.out.println("Loading....");
Connection con=DriverManager.getConnection("jdbc:oracle:thin:@VijayKumar-PC:1521:XE","SYSTEM","SYSTEM");
System.out.println("Connection created");
PreparedStatement st=con.prepareStatement("delete from simple where NAME='?' and BNAME='?' ");
String User=getUserName();
st.setString(1,User);
String Bname=getBookName();
st.setString(2,Bname);
int y= st.executeUpdate();
System.out.println(y);
System.out.println("Query Executed");
con.commit();
con.close();
System.out.println("Your Book are Submitted *****************");
catch(Exception e)
e.printStackTrace();
}Thanks.Dear Sir,
I removed the singleaquotes from preparedstatement.But Its not executed in this function.Like:
public void submitData()
try
System.out.println("Printed*************************************************************");
Class.forName("oracle.jdbc.driver.OracleDriver");
System.out.println("Loading....");
Connection con=DriverManager.getConnection("jdbc:oracle:thin:@VijayKumar-PC:1521:XE","SYSTEM","SYSTEM");
System.out.println("Connection created");
PreparedStatement st=con.prepareStatement("delete from simple where NAME=? and BNAME=? ");
String User=getUserName();
st.setString(1,User);
String Bname=getBookName();
st.setString(2,Bname);
int y= st.executeUpdate();
System.out.println(y);
System.out.println("Query Executed");
con.commit();
con.close();
System.out.println("Your Book are Submitted *****************");
catch(Exception e)
e.printStackTrace();
}Allthough Insert command is properly executed in another function of Java Bean.
Please review...
Thanks.
Maybe you are looking for
-
Cannot edit connetions in networkmanager in KDE4
Hi, I just discovered that all my connections in NM are set as system-wide, ie accessible to all users. I don't like that, however if I change a connection to user-only, the kde plasma applet can not edit it displaying this error message: "No ag
-
Hello, I installed PI70 some time back and ordered SAP for license key. But, due to issues i have to re-install it later. What happened here is the hardware key is changed after the installation. Is it means i have request again SAP to get license ke
-
Is Serverless Chat Possible???
I have simple question rite moment. that is serverless tcp session possible between computer A to B...while computer A is connected through Proxy at port 8080 and only 8080 is open for connection, and B is connected through modem..................
-
Why does fcpx crash every time i try to edit titles/text??
why does fcpx crash every time i try to edit titles/text?? I'm trying to wrap up a project for work and now fcpx thinks it needs to crash every time i click on a "title" to edit it. It's making the completion of this project nearly impossible.
-
Simple question regarding HD video
If a movie is to be watched on a standard TV, are there any advantages of shooting in HD? What I'm saying is, can I shoot in HD 16X9 and then edit in HD 4X3?