Download   Online Shop   Red Hat Network
Home  |  Products  |  Shop  |  Services  |  Training  |  Support   
Red Hat Documentation

Process Monitor HOW-TO for Linux: Testing the program - monitor_test Next Previous Contents

7. Testing the program - monitor_test

From your browser save this file as text-file named as 'monitor_test'.

Use this program for testing the 'procautostart' program. For example -


        procautostart -n 12 -c "monitor_test -d $HOME  -a dummy_arg "

Here procautostart will be checking the process monitor_test every 12 seconds.


#!/bin/ksh
# Program to test the procautostart
echo "Started the monitor_test ...."
date > monitor_test.log
while :
do
        date >> monitor_test.log
        sleep 2
done


Next Previous Contents

 

 
 
Search for:  on    Powered by Google
Products & Services   :   Download   :   Support   :   Training   :   Partners & Programs
© 2000 Red Hat, Inc. All right reserved.       About Red Hat   :   Legal statement   :   Privacy statement   :   Y2K statement   :   Contact Red Hat