Search Results

Search: Posts Made By: smoofy
Forum: AIX 09-11-2013
1,468
Posted By smoofy
You can periodically with cron check if process...
You can periodically with cron check if process is up via ps command and if not you can send an email to him for example.

ps auxx | grep sleep | grep -v grep
if [ $? == 1 ]
then
echo "Sleep...
5,515
Posted By smoofy
Try: find / -name "*.sh" -exec grep -li...
Try:
find / -name "*.sh" -exec grep -li "text_to_search" '{}' \; 2>/dev/null
5,515
Posted By smoofy
It works with -iname as well, try: find /...
It works with -iname as well, try:

find / -name "*.sh" -exec grep -li "text_to_search" '{}' \; as I said before, -iname option makes find to search for case insensitive...
5,515
Posted By smoofy
I downloaded and installed solaris. And it...
I downloaded and installed solaris.
And it works :D
5,515
Posted By smoofy
your grep does not know option -H so use -l. Stat...
your grep does not know option -H so use -l. Stat error is given because of the incorect user permissions.
1,680
Posted By smoofy
I would try this: ps -ef | grep test | grep -v...
I would try this:
ps -ef | grep test | grep -v grep
if [ $?==1 ] then; echo "test does not work" |mail -s "confirmation" my@address.com; fi
But I am sure there is more elegant way :)
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 05:06 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy