HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=15)
-   -   PERL script help... simple issue i think (http://www.howtoforge.com/forums/showthread.php?t=3067)

gjcomputer 13th March 2006 07:16

PERL script help... 1 more question...
 
everything works great with ispconfig
i recently added an ip address to my modem so now my webserver has its own ip address but it is still dhcp... anyway
my DNS service is through EVERYDNS.net and they offer a perl script to update to there system if my ip changes. here is that script..
the problem is now that i dont know where to use the script, do i run a commant in linux, or do i put it on the site somewhere. and how can i set it up to run every 2 - 4 hours automatically (they say it can be done) i want everything to be automated. THANKS!

falko 13th March 2006 11:51

Quote:

Originally Posted by gjcomputer
the problem is now that i dont know where to use the script, do i run a commant in linux, or do i put it on the site somewhere.

No, don't put it in a web site. This script must be run from the command line. You can put it into /usr/local/sbin, for example.

Quote:

Originally Posted by gjcomputer
and how can i set it up to run every 2 - 4 hours automatically (they say it can be done) i want everything to be automated. THANKS!

You can run it as a cron job. Run
Code:

crontab -e
as root, and then you enter
Code:

* */4 * * * /usr/local/sbin/eDNS.pl
Of course, the script must be executable:
Code:

chmod 755 /usr/local/sbin/eDNS.pl

gjcomputer 14th March 2006 00:05

thanks! that worked perfectly, now i feel dumb asking this part, but where do i put my variables for my username and password to this site? i looked in the code and tried a few places, and a few configurations, but nothing seems to work, im sure its something simple that im overlooking, thanks again

falko 14th March 2006 09:49

http://www.howtoforge.com/forums/showthread.php?t=3103


All times are GMT +2. The time now is 23:48.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.