anomalous behaviour when I execute the script via cron
Hi ,
I am having a strange problem with my cron job :
here is the script that I am scheduling from cron
WrapperScript.ksh
The script is working perfectly fine while I am executing the Wrapperscript.ksh manually , which in turn calls kickstartSonar.ksh
kickstartSonar.ksh
but while running via cron it is not able to get the synergy session (. ccmstart) .I assume it could be because I am using korn shell in the script while cron is using the born shell, but then I am not able to come up with the solution,any pointers regarding this problem will be much appreciated.
PS:I am fairly new to shell scripting
Quote:
I have used period '.' before executing any subscript to make an inline execution
Last edited by alookachaloo; 09-23-2009 at 03:08 PM..
I haven't carefully read your entire script, but problems like this are almost always due to the fact that cron jobs run with NO user profile, not even root. If there are some paths, environment variables, etc. in your profile when you run it manually which are not copied into the script that can cause the failure.
I have written a script to execute some sql statement via executable file.
It is working fine via command line, however when I schedule it in cron.
The executable file is looking for library file in its root directory.
Wonder where does cron run the script from, and can we get the script... (4 Replies)
Hi,
I have a bourne shell script that needs to login into sqlplus and execute a stored procedure. I need this shell script to be run under a user crontab.
It works fine if run under normal shell prompt.
But it gave error message in my log file when run under crontab:
SQL*Plus: Release... (4 Replies)
Hi!
Maybe i am here in the wrong section for the problem, but let me try to explain. I have the following simple backup script, as a solution till the final backup solution is online. Unfortunatly it will only work when executed manually. When i set up a cron job to execute the script, only the... (4 Replies)
I have a simple script that checks for certain printers and records them to a file.
When I run the script manually at the command prompt, it works perfect, but when I run the script via cron, nothing happens. No errors reported, and no records are written out. I'm using Solaris 10. Below is the... (4 Replies)
Hello evreyone,
this is my first post, and to say i'm new to this is an understatement.
I know very little about perl scripts and hope some one can help me.
i'm looking to get a script that a cron job can execute.
what the script needs to to is
1) connect to a mysql database
2) go to a... (2 Replies)
Hi everyone:
I'm trying to make a CRON job that will execute Fridays at 7am. I have the following:
* 7 * * 5
I've been studying up on CRON and I know to have this in a file and then "crontab filename.txt" to add it to the CRON job list.
The CRON part I believe I understand, but I would... (6 Replies)
Hi;
I'm facing the problem with my script like below
30 0 * * * /data/SCRIPT/LOADLOGS/loadata1.sh 2 1 >> /tmp/loaddata.txt
loadata1.sh calling a another 2 scripts which we need to exe in sequence.
when it perform by cron jon, sometimes it just can process 20 recs or less or nothing but... (6 Replies)
Dear all
How can I schedule the cronjob to be run sometime at every first Sunday at every month? I have the edit the cronjob every month now, thanks (2 Replies)