Re: need a shell script that can be executed manually or as part of the rc process. How can the script detect WHERE it is being called from to know how to handle various options.

2008-04-06 Thread Wojciech Puchar
One simpler would be to use a cron job that runs @reboot I believe these cron jobs would be run after the system is booted in i'm sure it's run when cron deamon is started. which is when system boots but - when doing say /etc/rc.d/cron restart - too. ___

Re: need a shell script that can be executed manually or as part of the rc process. How can the script detect WHERE it is being called from to know how to handle various options.

2008-04-06 Thread Derek Ragona
At 03:21 PM 4/4/2008, Rance Hall wrote: I have a sh script im working on that is going to be able to run by the init/rc process. That same script can also be run after the system is started. I need a way to have the sh script detect WHERE in the boot process the server is when it is being execu

Re: need a shell script that can be executed manually or as part of the rc process. How can the script detect WHERE it is being called from to know how to handle various options.

2008-04-04 Thread Andrew Cid
Hi Rance, > I have a sh script im working on that is going to be able to run by > the init/rc process. That same script can also be run after the > system is started. > > I need a way to have the sh script detect WHERE in the boot process > the server is when it is being executed. You can contr

need a shell script that can be executed manually or as part of the rc process. How can the script detect WHERE it is being called from to know how to handle various options.

2008-04-04 Thread Rance Hall
I have a sh script im working on that is going to be able to run by the init/rc process. That same script can also be run after the system is started. I need a way to have the sh script detect WHERE in the boot process the server is when it is being executed. for example, once a login prompt app