![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | 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 !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Script an Oracle Command Line Blackout | pattieatte | Shell Programming and Scripting | 0 | 08-30-2007 05:28 PM |
| script works on command line, not in cron job | JackTheTripper | UNIX for Dummies Questions & Answers | 7 | 06-27-2007 02:51 AM |
| Adding command line env in cron env | abhijeetkul | Shell Programming and Scripting | 1 | 12-13-2005 09:42 AM |
| process nice level command line vs cron | henrydark | UNIX for Advanced & Expert Users | 0 | 06-02-2005 11:04 PM |
| command line work script doesn't | larry | Shell Programming and Scripting | 2 | 08-27-2003 03:33 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Script through cron and command line
I have a script which runs fine through command line, but doesn't run through cron. There are some variables which are set by the .profile file which are used by the script. Is it that cront does not pick these variables. Code:
$/export/home/rahul/bin/createfile.sh >> /export/home/rahul/log/logfile.txt 2>&1 The above works fine and gives the output in the log as follows. Code:
$cat /export/home/rahul/log/logfile.txt File created. When run through cron, the log file has the following output. Code:
$cat /export/home/rahul/log/logfile.txt sqlplus: Command not found. sqlplus: Command not found. Does the .profile not run for the user when the script is run through cron? Regards, Rahul. |
| Bookmarks |
| Tags |
| cron |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|