ssh aus cron-script

Andre Landwehr andre.landwehr at gmx.net
Tue Apr 23 09:22:03 CEST 2002


On Mon, Apr 22, 2002 at 11:48:40PM +0200, Florian Lohoff wrote:
> Kannst du mal dein crontab eintrag und evtl das ganze script hier
> verkuenden ?

PATH=$PATH:/bin:/usr/bin:/sbin
# Write my IP to file on FH servers every 5 minutes when online
*/2 8-20 * * 1-5    ifconfig |grep ppp0 && ifconfig |grep P-t-P |tr -s " " |cut -d " " -f 4| cut -d ":" -f 2 >/tmp/home_ip && scp -oBatchMode=yes /tmp/home_ip alandweh at paul.inform.fh-hannover.de: 

> Ich habe massenweise cron scp/ssh scripte laufen - Ohne probleme.
Das gibt Hoffnung...

Andre

--
 /"\
 \ /
  X  ASCII Ribbon campaign against HTML E-Mail
 / \

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: <http://lug-owl.de/pipermail/linux/attachments/20020423/e09ef881/attachment.sig>


More information about the Linux mailing list