![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | 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 and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| determine if the script has been invoked manually or not? | hitmansilentass | Shell Programming and Scripting | 8 | 06-22-2008 12:32 PM |
| SFTP errorcode 1 when run on cron but runs manually | Heidi.Ebbs | SUN Solaris | 2 | 08-08-2007 01:16 PM |
| how to implement patch manually | sheilly_2k7 | UNIX for Advanced & Expert Users | 1 | 05-03-2007 06:57 PM |
| check in unix shell script so that no one is able to run the script manually | adi_bang76 | Shell Programming and Scripting | 1 | 11-16-2006 10:43 AM |
| Works Manually - not in CRON | dstinsman | UNIX for Dummies Questions & Answers | 5 | 03-06-2006 08:36 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Can run script Manually, but not through Cron?
Hi all,
I have a main script (called OracleCleanup) that runs some sql queries. that runs off a wrapper script which contains the sources for the login information and and JOB_HOME (the script is below). When I schedule this job in the cron the log says that it cannot open my list file, which is located in somefolder. If i run this script manually by simply invoking it, it runs without any issues. Any ideas? #!/bin/ksh # Source appropriate login information . $HOME/somefolder/login_Cleanup.ksh # Set the JOB_HOME (ie. where the lists of tables to archive are held) export JOB_HOME=/home/oracle/somefolder # Run the job. $HOME/somefolder/OracleCleanup.ksh # Rename logfile mv $HOME/somefolder/log/OracleCleanup.log $HOME/chris/log/OracleCleanup.`date +%m_%d_ %Y`.log |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|