[ale] Syntax problem

Randy C. Ramsdell rramsdell at adelphia.net
Wed Aug 24 16:00:28 EDT 2005


On Wed, 2005-08-24 at 15:43 -0400, James P. Kinney III wrote:
> On Wed, 2005-08-24 at 14:54 -0400, Randy C. Ramsdell wrote:
> > On Wed, 2005-08-24 at 14:27 -0400, James P. Kinney III wrote:
> > > On Wed, 2005-08-24 at 12:40 -0400, Randy C. Ramsdell wrote:
> > > > On Wed, 2005-08-24 at 11:55 -0400, James P. Kinney III wrote:
> > > > > ssh machine "kill -9 `/sbin/pidof namd`"
> > > > 
> > > > would "killall" be better since he wants to kill all the namd processes?
> > > 
> > > No. killall uses the name of the process whereas kill uses the PID.
> > 
> > I realize that, but it kills the process never the less. But, kill
> > doesn't take into account multiple processes whose name is namd. I
> > thought he said kill all PIDs named namd.   
> 
> Hmm. My kill seems to require PIDs and not names. 

As does mine. I am not sure, but maybe what I wrote isn't clear. I think
you may have thought I meant to leave the "pidof" command in place.
After reading my paragraph, I can see that I was not clear about that.
Anyway, both iterations work. One kills a single PID, using pidof, and
the other kills multiple processes called "namd", without pidof. 

> So to restate the above ssh string:
> 
> ssh machine "killall -9 namd"
> 
> would also work.
> > 
> > _______________________________________________
> > Ale mailing list
> > Ale at ale.org
> > http://www.ale.org/mailman/listinfo/ale
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale




More information about the Ale mailing list