![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| crontab couldn't run through, help | duke0001 | UNIX for Advanced & Expert Users | 10 | 02-05-2008 11:22 PM |
| help with crontab | bob122480 | Shell Programming and Scripting | 3 | 01-22-2007 04:49 PM |
| Crontab | gen4ik | UNIX for Dummies Questions & Answers | 1 | 01-18-2007 03:26 AM |
| ftp and crontab | user` | Shell Programming and Scripting | 27 | 11-13-2006 04:02 PM |
| Crontab | lo-lp-kl | UNIX for Dummies Questions & Answers | 2 | 05-05-2005 03:21 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Using Crontab
Hi All,
I've a shell script which calls a Sybase stored procedure to do some functionality. I want to schedule the running of this script by crontab. I'm using Solaris 5.8. When i executed the following command Code:
crontab -l Code:
crontab: can't open your crontab file Thanks in advance Sumesh |
| Forum Sponsor | ||
|
|
|
|||
|
ZB,
Thanks for the reply. I created the crontab file and my file looks like Code:
47,3,19,2,1 /home/dsdev/bdayfinder.sh Code:
crontab: error on previous line; unexpected character found in line. crontab: errors detected in input, no crontab file generated. Pls help me out. Sumesh |
|
|||
|
Thanks for the reply.
I used the correct synatx and now my crontab file is Code:
50 1 20 2 * /home/dsdev/bdayfinder.sh I checked the /usr/lib/cron directory. There is no cron.allow file and the username dsdev which i use is not present in cron.deny as well. I edited the crntab file and included the above mentioned line, saved and came out of the editor. The script which is expected to be triggered at 1:50 is not getting triggered at that time. Pls let me know what has gone wrong? Thanks, Sumesh |
|
||||
|
Check your mails for error messages from crn dealon.
Quote:
Jean-Pierre. |
|
|||
|
The script which i try to get scheduled is having isql command in it. The crontab file is set as follows.
Code:
* * * * * cd; script.sh > /tmp/result 2>&1 Code:
isql: not found Presently the PATH environment variable in my .profile file is Code:
export PATH=$SYBASE_OCS/bin:$DSHOME/bin:$ORACLE_HOME/bin:/usr/local/bin/:/usr/ccs/bin:/usr/local/SUNWspro/bin:$PATH Thanks, Sumesh |
|||
| Google The UNIX and Linux Forums |