1 Jul
2001
1 Jul
'01
22:24
Linux - User
any idea of what could be wrong with this command line:
kill -9 `ps -ef | grep `who | awk '{print $1}'` | awk '{print $3}'`
Command substitution cannot be nested this way. Either use the backslash '\' to escape '`': kill -9 `ps -ef | grep \`who | awk '{print $1}'\` | awk '{print $3}'` or use the $() form (preferred because it's more readable): kill -9 $(ps -ef | grep $(who | awk '{print $1}') | awk '{print $3}') Also check what you kill (PPID & PID)! -- Alexandr.Malusek@imv.liu.se