[Discuss] Ideas for solving a remove backup quandary

Jeremy Kiffiak jeremy at truesolutions.ca
Tue May 13 16:51:31 PDT 2008


Ah!  Most excellent (and useful).  Thanks.


On 13-May-08, at 4:06 PM, Steven Kurylo wrote:

> On Tue, May 13, 2008 at 4:02 PM, Jeremy Kiffiak <jeremy at truesolutions.ca 
> > wrote:
>> Chris,
>>
>> Thanks again, that did the trick as far as setting up the tunnel.   
>> Next
>> question:
>>
>> How do I get the tunnel to delete itself after the script has  
>> completed
>> successfully (or even not completed successfully)?
>
> Save the pid and kill it at the end of the script.
>
> ssh -P 10022 -C -f -N -L  
> 127.0.0.1:10033:192.168.10.150:22<username>@remotegw1
> ssh_pid=$!
> [... do stuff ...]
> kill $ssh_pid
> _______________________________________________
> Discuss mailing list
> Discuss at vlug.org
> http://ladybug.vlug.org/cgi-bin/mailman/listinfo/discuss



More information about the Discuss mailing list