13-09-2022, 11:25
0
Kod:
#!/bin/bash
ps ax -o uname,pid,etimes,command | grep -v root | while read -r username pid time com ;
do
# echo $username
# echo $pid
# echo $time
# echo $com
if [[ $time -eq "3600" ]];
then
echo Proces $usr $pid $com -wykonuje sie: $time
fi
done