![]() |
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 |
| SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems . |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| SFTP not exiting when run from cron | msabhilash | SUN Solaris | 2 | 12-02-2007 07:48 PM |
| Works Manually - not in CRON | dstinsman | UNIX for Dummies Questions & Answers | 5 | 03-06-2006 08:36 AM |
| Can run script Manually, but not through Cron? | MadHatter | Shell Programming and Scripting | 4 | 10-19-2005 10:08 AM |
| Old cron entry still runs, but shouldnt | xadamz23 | UNIX for Advanced & Expert Users | 3 | 10-11-2005 05:11 PM |
| What user runs cron? | michieka | UNIX for Dummies Questions & Answers | 10 | 06-02-2002 10:32 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
I am trying to run a sript on cron to SFTP data to a company. Private and public keys are set up.
When I run this manully it works fine, however it was failing when run on cron. I have narrowed down the problem - it fails at the code that says if the error code is 0 then continue . . . I inserted code to echo the error code, which is 1. Why does it work fine manually with error code of 0 but produce error code 1 when run on cron? For now, the script works as I have commented out 2 lines of code that prevent the script continuing if the error code is not 0. Please help. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|