gonzolex Posted October 2, 2010 Report Share Posted October 2, 2010 Witam, Potrzebuje stworzyć chyba dość prosty skrypt, który co 1 minutę sprawdza uruchomione procesy na danym runlevelu i zapisuje do pliku. Jeśli pojawi się nowy proces to zapisuje go do innego pliku (np. error) informacje ze jest nowy proces. Wykorzystać tu trzeba cron do sekwencji, czyli co minutę. Potrafił by mi ktoś coś takiego stworzyć? Z góry dziękuję Link to comment Share on other sites More sharing options...
@WalDo Posted October 2, 2010 Report Share Posted October 2, 2010 Kochamy odrabiać prace domowe za innych Link to comment Share on other sites More sharing options...
gonzolex Posted October 2, 2010 Author Report Share Posted October 2, 2010 No jak komuś takie rzeczy nie sprawiają kłopotu to może pomóc innym. Link to comment Share on other sites More sharing options...
bunny1985 Posted October 2, 2010 Report Share Posted October 2, 2010 Potrafił by mi ktoś coś takiego stworzyć? potrafił by Link to comment Share on other sites More sharing options...
borzole Posted October 2, 2010 Report Share Posted October 2, 2010 * man ps * cron działa synchronicznie, a ja proponuje asynchronicznie #!/bin/bash daemon(){ echo jupi sleep 1 daemon } daemon * jeden z wielu pomysłów na porównanie dwóch list http://wiki.fedora.pl/wiki/Zapis_i_przywr%C3%B3cenie_listy_zainstalowanych_program%C3%B3w * to nie jest wypożyczalnia murzynów, ale jak wykażesz trochę inicjatywy to ktoś Ci pomoże Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now