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 " nohup &
#!/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
bash$ tail -f monitor_test.log bash$ ps -ef | grep monitor_test See the PID of monitor_test and kill it.. bash$ kill -9 < PID of monitor_test >