1838201 Members
5192 Online
110125 Solutions
New Discussion

Re: rc problems

 
Chris Little_1
Occasional Contributor

rc problems

I have a script that runs from rc.d at boot time . . .

cd /mnt2/webfocus/ibi/srv43/wfsp1/bin
edastart -stop
edastart -clear
nohup edastart &

the problem is that all of it's output (and it has a LOT) goes to /etc/rc.log. How can I send it someplace else?
3 REPLIES 3
Bill McNAMARA_1
Honored Contributor

Re: rc problems

Try using the &1>
stdout redirector and/or the
&2> stderr redirectors.

Later,
Bill
It works for me (tm)
Victor_5
Trusted Contributor

Re: rc problems

By default, when system boot, init invokes /sbin/rc, then /sbin/rc*.d/*, actually, /sbin/rc*.d/* scripts are just symbolic links to /sbin/init.d/*, while following configuration files in /etc/rc.config.d/

Try to find the corresponded configuration file and redirect it.
Magdi KAMAL
Respected Contributor

Re: rc problems

Hi Chris,

You need to redirect the standard output and the standard error to the same file as follow :

nohup edastart > /dir1/dir2/edastart.log 2>&1 &


Magdi