[Discuss] Ideas for solving a remove backup quandary

Jeremy Kiffiak jeremy at truesolutions.ca
Wed May 14 14:39:27 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}'`

Steven, I had to do one minor tweak to get this to run properly on my  
system.

> kill `ps ax|grep 'ssh -f -p 10022 -C -N'|awk '{print $1}'`


I had to add the "x" switch to ps because it is running on the  
background (no controlling terminal).  Is that not the case on your  
own system?

Jeremy


More information about the Discuss mailing list