1752393 Members
6164 Online
108788 Solutions
New Discussion юеВ

Re: RedHat 4

 
HP-UX 11.31
Occasional Advisor

RedHat 4

Hi,

I have to run two commants (separate sessions for both) on RHEL4 during startup the server.
Please guide me how to do that.

(Both commands are attached)

Regards,
Ranjeet
4 REPLIES 4
HP-UX 11.31
Occasional Advisor

Re: RedHat 4

Hi,

Please note that I want to run these commands automatically during startup the server.
Ricky_HK
Frequent Advisor

Re: RedHat 4

you may add commands at the end of /etc/profile. the command will run as root during system start.

Make sure your scripts got correct env variable... and redirect your outputs to right places....
ManojK_1
Valued Contributor

Re: RedHat 4

Add the commands in /etc/rc.local file.

This help you to initiate the commands at the end of OS boot.

Manoj K
Thanks and Regards,
Manoj K
Gerben Roest
Occasional Advisor

Re: RedHat 4

Make sure that the commands always exit, otherwise you won't be able to login.