![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| problem with crontab | cleansing_flame | UNIX for Dummies Questions & Answers | 1 | 01-29-2008 04:02 PM |
| Problem with crontab | cleansing_flame | UNIX for Dummies Questions & Answers | 3 | 01-14-2008 12:03 PM |
| Crontab problem | jess_t03 | AIX | 2 | 01-03-2008 03:29 AM |
| Problem with Crontab | Zak | UNIX for Dummies Questions & Answers | 2 | 12-20-2005 01:44 AM |
| crontab problem | DebianJ | UNIX for Advanced & Expert Users | 10 | 06-04-2005 12:36 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Problem with crontab
Hi guys!
I have a problem with my crontab. I made a script named expsa.sh, but I can not execute it on crontab: 00 11 * * * /sa/expsa.sh The strange thing is that i can do it by using `at `: at -m 1100 at> /sa/expsa.sh it works! What can i do for doing the first one? Thanks. By |
| Forum Sponsor | ||
|
|
|
||||
|
The only thing I could find on that error was an old post in the IT Resource Center forums, and it looks like the only solution they came up with was that the OP should be using an absolute pathname instead of a relative one (e.g. /usr/local/someFile rather than just someFile), so I'm not sure what's wrong with the way you have it...
|
|
|||
|
crons PATH env variable can be set in /etc/default/cron on solaris.
if you dont want to use absolute paths in your script, makesure you specify the PATH env variable in yoru script befor you run any commands. |
|
||||
|
From at(1)
Quote:
Quote:
Scripts that run from cron should not depend on the environment. |
||||
| Google The UNIX and Linux Forums |