Incoming from Nick W:
> Trying to learn AWK for no particular reason, but why does this not work?
>
> ps -e | awk 'BEGIN {ORS=" "} $4 ~ /xmms/ {print $1 | "kill"}'
>
> I get a broken pipe error:
>
> kill: usage: kill [-s sigspec | -n signum | -sigspec] [pid | job]... or kill
> -l [sigspec]
"kill" wants to know what to kill. Or, did you mean
... {print $1|print "kill"}'
While building this, I'd replace that "kill" with echo until you know
what it's going to do.
--
Any technology distinguishable from magic is insufficiently advanced.
(*) http://www.spots.ab.ca/~keeling
- -
_______________________________________________
clug-talk mailing list
[EMAIL PROTECTED]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca