---------- Forwarded Message ----------
Subject: [SLE] Re:[SLE]New Printer
Date: Sun, 1 Jul 2001 12:54:59 GMT
From: Gelah
hi ! any idea of what could be wrong with this command line: kill -9 `ps -ef | grep `who | awk '{print $1}'` | awk '{print $3}'` root@phoenix User]# kill -9 `ps -ef | grep `who | awk '{print $1}'` | awk '{print $3}'` Usage: grep [OPTION]... PATTERN [FILE]... Try `grep --help' for more information. kill: No such pid who bash: syntax error near unexpected token `|' bash: command substitution: line 1: ` | awk '{print $3}'' [root@phoenix User]#
On Sun, Jul 01, 2001 at 02:37:11PM -0600, Linux - User wrote:
hi !
any idea of what could be wrong with this command line:
kill -9 `ps -ef | grep `who | awk '{print $1}'` | awk '{print $3}'`
What do you think `ps -ef | grep ` does? The shell does do-what-I-say. I haven't yet found a shell which does do-what-I-mean. If you know one, tell me... Regards, Cees.
participants (3)
-
Cees van de Griend
-
Faessen Jean-Paul
-
Linux - User