I'm currently trying to launch a perl script that is supposed to run all the time on startup.
i'm working on a CentOS server.
I added this line in /etc/rc.d/rc.local and the script won't start while it works when I type the same line from the console :
perl /svcmon/bin/svcperf.pl --svc fav01svc --interval 5 >> /dev/null &
This script is actually supposed to be launched and you have to wait for as many time as you want datas inserted in your database, but adding
>> /dev/null/&
allows you to keep on using your machine while the script is working in background.
I don't really know what I could do because I don't get why it doesn't work...
Do you have any idea of what I could try ?
EDIT : It turns out that I managed to launch my script properly by doing this :
nohup /usr/bin/perl /svcmon/bin/svcperf.pl --svc fav01svc --interval 5 > /outputsvcperf.txt &
but it doesn't work because the PostgreSQL server isn't launched in time while it is supposed to be launched on startup and before my perl script...
perl, usually/usr/bin/perl. - choroba