Eucorroumscriptdeshellcriptografadoatravésdecrontab,enquantoverificaoprocessodescriptatravésdeps-ef|grepscript_nameestámostrandoprocessojuntocomcódigodescriptemtextosimples
#ps-ef|greptest_script.xroot51342901012:16pts/300:00:00./test_script.x-c#!/bin/bashif['echo$?'==0];thenecho"This is my test script" apt-get update else echo "This is end test script" fi sleep 3 ./test_script.x
root 5164 15802 0 12:16 pts/0 00:00:00 grep --color=auto test_script.x