<html><div><font color="#0000ff" face="Verdana" size="2"></font>&nbsp;</div>
There is a LAN of machines: 192.168.3.13, 192.168.20.5, 192.168.20.10, 192.168.20.20, 192.168.20.30, 192.168.20.50.<br>These are all accessible from each other via ssh, scp, ping, etc.&nbsp; One of these machines 192.168.3.13 is accessible<br>also via the internet.<br><br>using port redirection (and I do set OUTSIDEIP to the IP address.,&nbsp; I just am not publishing it here, for security)<br>I create something called sstest:<br><br><blockquote><font face="courier new,courier">ssh -X -oBatchMode=yes -o TCPKeepAlive=yes -l support1 -L 10005:192.168.20.5:22 -L 10010:192.168.20.10:22 -L 10020:192.168.20.20:22 -L 10030:192.168.20.30:22 -L 10040:192.168.20.40:22 -L 10050:192.168.20.50:22 $OUTSIDEIP</font><br></blockquote>(this is actually one line long it just wraps.&nbsp; Anyway this allows me to do things like<br><br>&nbsp;&nbsp;&nbsp;&nbsp; ssh -l root -p 10005 localhost&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # ssh to 192.168.20.5<br>&nbsp;&nbsp;&nbsp;&nbsp; scp -P 10020 root@localhost:file .&nbsp;&nbsp;&nbsp; # scp file "file" from 192.168.20.20<br><br>etc.&nbsp; This works fine.<br><br>My problem is I want a cron job to do it.&nbsp; So I would have to execute sstest with an ampersand like ./sstest &amp; ).<br>However, when I put sstest into the background like that, then none of the port forwarding ssh and scp commands<br>works.<br><br>I want the cronjob to execute a script that does something like this:<br><br>&nbsp;&nbsp;&nbsp;&nbsp;<font face="courier new,courier"> ./sstest &amp;<br>&nbsp;&nbsp; scp -P 10010 root@localhost:file.txt .<br></font><br>any suggestions?<br><br>TOny<br><br><dgboles@gmail.com><fedora-list@redhat.com><dgboles@gmail.com><fedora-list@redhat.com><dgboles@gmail.com><brian.mingus@colorado.edu><pemboa@gmail.com><fedora-list@redhat.com><dgboles@gmail.com><dgboles@gmail.com><brian.mingus@colorado.edu><mikkel@infinity-ltd.com><fedora-list@redhat.com><mikkel@infinity-ltd.com><fedora-list@redhat.com><dgboles@gmail.com><fedora-list@redhat.com><dgboles@gmail.com><ted@rovingnetworks.com><mpg.223b1a774019665d989680@news.gmane.org><mark.greenbank@gmail.com><dgboles@gmail.com><fedora-list@redhat.com><mikkel@infinity-ltd.com><fedora-list@redhat.com><mikkel@infinity-ltd.com><fedora-list@redhat.com><cr33dog@gmail.com><fedora-list@redhat.com><acfad57e0803070952j317fffadqeb38da0fdcf3a8ce@mail.gmail.com><gayleard@eircom.net><dgboles@gmail.com><fedora-list@redhat.com><pocallaghan@gmail.com><fedora-list@redhat.com><mike.cloaked@gmail.com><loom.20080307t181033-321@post.gmane.org></loom.20080307t181033-321@post.gmane.org></mike.cloaked@gmail.com></fedora-list@redhat.com></pocallaghan@gmail.com></fedora-list@redhat.com></dgboles@gmail.com></gayleard@eircom.net></acfad57e0803070952j317fffadqeb38da0fdcf3a8ce@mail.gmail.com></fedora-list@redhat.com></cr33dog@gmail.com></fedora-list@redhat.com></mikkel@infinity-ltd.com></fedora-list@redhat.com></mikkel@infinity-ltd.com></fedora-list@redhat.com></dgboles@gmail.com></mark.greenbank@gmail.com></mpg.223b1a774019665d989680@news.gmane.org></ted@rovingnetworks.com></dgboles@gmail.com></fedora-list@redhat.com></dgboles@gmail.com></fedora-list@redhat.com></mikkel@infinity-ltd.com></fedora-list@redhat.com></mikkel@infinity-ltd.com></brian.mingus@colorado.edu></dgboles@gmail.com></dgboles@gmail.com></fedora-list@redhat.com></pemboa@gmail.com></brian.mingus@colorado.edu></dgboles@gmail.com></fedora-list@redhat.com></dgboles@gmail.com></fedora-list@redhat.com></dgboles@gmail.com></html>