[PROXYPER] autolaunch

Meelis Roos mroos at cs.ut.ee
Mon Aug 9 17:18:53 EDT 1999


> I want to have my client on aix run at startup.  Can anyone tell me how to make
> that happen?

bash-2,00$ cat kontroll 
#!/bin/sh
if ps auxwwww|grep 'mroos.*rc5des'|grep -v grep>/dev/null
then
  exit 0
else
  echo Starting
  cd /home/mroos/rc5
  ./rc5des -quiet 2>/dev/null &
  ./rc5des -quiet 2>/dev/null &
fi

bash-2,00$ crontab -l
0,10,20,30,40,50 * * * * /home/mroos/rc5/kontroll

This checks the process every 10 minutes - often enough for uptimes of
AIX :) For linux, there's a possibility to write
@reboot /home/mroos/rc5/kontroll
to crontab and then the program starts with crond on reboot.

---
Meelis Roos             e-mail: mroos at ut.ee
                        www:    http://www.cs.ut.ee/~mroos/

--
To unsubscribe, send 'unsubscribe proxyper' to majordomo at lists.distributed.net



More information about the proxyper mailing list