[Discuss] Ideas for solving a remove backup quandary

Jeremy Kiffiak jeremy at truesolutions.ca
Wed May 14 14:33:04 PDT 2008


On 13-May-08, at 5:42 PM, Steven Kurylo wrote:

>> Help?  In case it matters I am using BASH 3.2.17 (on OS X 10.5.2  
>> but that
>> shouldn't matter, should it?).  I will double-check tomorrow on my  
>> Ubuntu
>> 8.04 box to verify whether or not this is an OS specific problem.  Or
>> perhaps a BASH version problem?
>
> I ran it on my system and it appear ssh isn't returning a pid to bash.
>  Not sure why off hand.
>
> Quick fix for the end of the script:
>
> kill `ps a|grep 'ssh -f -p 10022 -C -N'|awk '{print $1}'`

Thanks for that Steven.  Do you generally use a different shell that  
allows you to use "ssh_pid=$!"?

Jeremy


More information about the Discuss mailing list