SUMMARY: running ssh in crontab

From: Nolz Andreas <>
Date: Mon Oct 23 2006 - 06:42:04 EDT

Thanks to all for helping me.
I changes the definition of the varible SECHOST to SECHOST='hostname'-sec and
works pretty well.


> ______________________________________________
> Von: 	Nolz Andreas
> Gesendet:	Samstag, 21. Oktober 2006 13:31
> An:	''
> 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
> 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
Received 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