scoobydope
02-21-2001, 04:26 PM
this is obviously for a cron job, but i have noticed that arpwatch will stop running for some reason when cron runs through its nightly duties.
I haven't figured out what is stopping it yet, but would like to just add an hourly cron entry to check to see if its running and then start it up if its not.
The starting it up is no problem, but the script line to check for it is confusing me.
basically i understand the idea, but don't know the language:
ps -aux |grep -v grep|grep arp
if the results of this are nothing, then run the script.
But what is the script line for "if the results of this are nothing"?
I haven't figured out what is stopping it yet, but would like to just add an hourly cron entry to check to see if its running and then start it up if its not.
The starting it up is no problem, but the script line to check for it is confusing me.
basically i understand the idea, but don't know the language:
ps -aux |grep -v grep|grep arp
if the results of this are nothing, then run the script.
But what is the script line for "if the results of this are nothing"?