SUMMARY: running ssh in crontab
- From: "Nolz Andreas" <andreas.nolz@xxxxxxxxxx>
- Date: Mon, 23 Oct 2006 12:42:04 +0200
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
______________________________________________try
Von: Nolz Andreas
Gesendet: Samstag, 21. Oktober 2006 13:31
An: 'sunmanagers@xxxxxxxxxxxxxxx'
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
sunmanagers@xxxxxxxxxxxxxxx
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
- Prev by Date: Redirect with IPFilter on Solaris 9
- Next by Date: SSH from script without key
- Previous by thread: Redirect with IPFilter on Solaris 9
- Next by thread: SSH from script without key
- Index(es):
Relevant Pages
|