Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as Bash by OLeГ ( 14 years ago )
#!/bin/bash
# Вывести в файл список PID всех процессов, которые были запущены командами, расположенными в /sbin/

user="root"
filename="job3.tmp"

ps -A -o pid,cmd | tail -n +2 | grep "/sbin/" | gawk '{print $1}' > $filename

cat $filename

exit 1

 

Revise this Paste

Your Name: Code Language: