NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
Quikdav
Sep 30, 2011Aspirant
Running PERL script in background
Hi all I would like to run a PERL script as a background task on my NV+. This script will read a monitoring device connected on the USB port to monitor my electricity usage to write the result into...
spiderman1
Sep 30, 2011Guide
In order to do this, you will need to SSH into the NV box and do the following:
1) Create a directory maybe in your /home directory
2) Do a Chmod 755 on the new directory
3) Place the perl script in that directory and Chmod 755
4) You will need to edit your crontab file so that it will run your script at a certain time and interval.
--The crontab file should be located at this path in the NV /usr/bin/crontab.
--Edit it with your VI editor
--Add something like this to the crontab file:
30 11 * * * /your/directory/whatever.pl
See this url for specific parameters that you can set on the crontab file: http://www.thesitewizard.com/general/set-cron-job.shtml
I hope this helps.
1) Create a directory maybe in your /home directory
2) Do a Chmod 755 on the new directory
3) Place the perl script in that directory and Chmod 755
4) You will need to edit your crontab file so that it will run your script at a certain time and interval.
--The crontab file should be located at this path in the NV /usr/bin/crontab.
--Edit it with your VI editor
--Add something like this to the crontab file:
30 11 * * * /your/directory/whatever.pl
See this url for specific parameters that you can set on the crontab file: http://www.thesitewizard.com/general/set-cron-job.shtml
I hope this helps.
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!