Hi, Thanks to all for helping me. I changes the definition of the varible SECHOST to SECHOST='hostname'-sec and it works pretty well. Regards Andreas > ______________________________________________ > Von: Nolz Andreas > Gesendet: Samstag, 21. Oktober 2006 13:31 > An: 'sunmanagers@sunmanagers.org' > Betreff: running ssh in crontab > > Hello, > > I want to run a script by crontab. > When I start toe script in a terminal window, it works pretty well. When I try > to run it by a cron job, I get the message: > Usage: ssh [options] host [command] > triggered by the following line in the script: > ssh $SECHOST "cd /export/qip; tar xf trans.tar; rm /export/qip/named/*.jnl" > The variable SECHOST is set in the script (SECHOST=$HOSTNAME-sec). > > How can I change the script to run it by a cron job? > > Thanks in advance! > Best regards! > Andreas The information contained in this e-mail message is privileged and confidential and is for the exclusive use of the addressee. The person who receives this message and who is not the addressee, one of his employees or an agent entitled to hand it over to the addressee, is informed that he may not use, disclose or reproduce the contents thereof. _______________________________________________ sunmanagers mailing list sunmanagers@sunmanagers.org http://www.sunmanagers.org/mailman/listinfo/sunmanagersReceived on Mon Oct 23 06:44:55 2006
This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:44:02 EST