Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using shellscript as CRONTAB task

Status
Not open for further replies.

barryp

Programmer
Jan 30, 2002
48
GB
I have a script containing the line

ssh bbb@193.xxx.xxx.xxx -i ~/.ssh/id_dsa_mfssh "ls -l dir/*.zip"

which works fine

However, when added to my crontab as

0 * * * * `script`

it fails - the "ls -l dir/*.zip" gets expanded

BUT

0 * * * * script

WITHOUT the ` (quote) seems to work

can someone explain to a newbie what's going on

thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top