The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 11-24-2007
Checkoh Checkoh is offline
Registered User
 

Join Date: Nov 2007
Posts: 1
cron line explanation

You should better try WinSCP, it's a lot easier to use.

Code:
10 2-10 * * * ksh /home/check2run.ksh /home/test.done "home/test_sftp.ksh sftp" 2>> logs/sftptest.log >& 2
Your doubts are not cron syntax related, the entire line means:

execute at minute 10 between 2 and 10am everyday the following command:

Code:
ksh /home/check2run.ksh /home/test.done "home/test_sftp.ksh sftp" 2>> logs/sftptest.log >& 2
/home/check2run.ksh is executed with the ksh shell and the following arguments
Code:
/home/test.done "home/test_sftp.ksh sftp"
Redirect standard error output to /logs/sftptest.log
Code:
 2>> logs/sftptest.log
Redirect standard output to the standard error.
Code:
 >& 2
Reply With Quote