[WBEL-users] Another Shell Scripting Question
Johnny Hughes
mailing-lists at hughesjr.com
Wed Jun 15 14:12:34 CDT 2005
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://beau.org/pipermail/whitebox-users/attachments/20050615/3f873b9c/attachment.bin
More information about the Whitebox-users
mailing list