|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
hey guys,
why do i keep getting this output error message -------------> command --->top -b -d 1 $(ps -fade | awk '$3==1 {print $2}') error message--> top: Unknown argument `4' usage: top -hvbcisqS -d delay -p pid -n iterations Is some arguement missing |
|
#2
|
|||
|
|||
|
try:
Code:
top -b -d 1 `ps -fade | awk '{$3==1 {print $2}'}`
|
|
#3
|
|||
|
|||
|
please be correct
Quote:
not awk but top is giving you an error NOTA i dont know the -fade opt to ps what os you are using ?
__________________
working on Solaris[5-9], preferred languages french and C. |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > error in awk script |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|