csh weirdness (HELP!)

Rob McMahon cudcv at warwick.ac.uk
Thu Aug 16 19:04:17 AEST 1990


In article <8000007 at hpopd.HP.COM> bd at hpopd.HP.COM (Bob Desinger) writes:
>> to kill every instance of a.out I get
>> 	`ps | grep a.out | awk '{printf("%d ",$1);}'`: Ambiguous.
>
>Can you work around this by changing the awk program to generate the
>kill commands, then piping the awk output to the shell?  ...

The best workaround is just to use

	\kill `ps | grep a.out | awk '{printf("%d ",$1);}'`

to avoid using the shell builtin.

Rob
--
UUCP:   ...!mcsun!ukc!warwick!cudcv	PHONE:  +44 203 523037
JANET:  cudcv at uk.ac.warwick             INET:   cudcv at warwick.ac.uk
Rob McMahon, Computing Services, Warwick University, Coventry CV4 7AL, England



More information about the Comp.unix.wizards mailing list