[WBEL-users] Another Shell Scripting Question

Andrew Vong andrewvong at finpress.com
Wed Jun 15 14:57:43 CDT 2005


To those who have helped,

Once again, thank you very much. All your help is very much appreciated. :)

I apologise if I annoyed anyone with my 'no-brainer' questions. :) I am a 
novice. :)

Cheers,
Andrew

p.s. the "head" cmd was just what I was looking for! :) I didn't know it 
existed till now. :)



At 03:12 AM 16/06/2005, Johnny Hughes wrote:
>On Thu, 2005-06-16 at 02:44 +0800, Andrew Vong wrote:
> > Hi Vic,
> >
> > Sorry, perhaps I wasn't very clear. I don't want to kill ALL processes. I
> > only want to kill the top most process.
> >
> > Is there a way to limit the std output? so that only 1 PID gets sent to be
> > killed?
>
>One way would be to pipe your list to :
>
>| head -n 1 |
>
>prior to the kill command
>
>
> > At 02:37 AM 16/06/2005, Vic wrote:
> > > > I suppose this would work great if there were only 1 process as a 
> result of
> > > > the cmd above.
> > > >
> > > > What would happen if there were more than 1 PID from std output?
> > > >
> > > > Will it kill ALL PIDs that were produced from std output?
> > >
> > >man killall
> > >
> > >HTH
> > >
> > >Vic.
>
>
>_______________________________________________
>Whitebox-users mailing list
>Whitebox-users at beau.org
>http://beau.org/mailman/listinfo/whitebox-users



More information about the Whitebox-users mailing list