New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

Start a Discussion

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

Crontab frustration running .pl

Post Reply New Thread Subscribe

Thread Tools

scoopz's Avatar
Member Since: Feb 27, 2004
Location: Chester, Cheshire, UK
Posts: 11
scoopz is on a distinguished road
Mac Specs: MacPro with 30" ACD, 3GB RAM, 250GB HDD (more to come), Airport and Btooth EDR

scoopz is offline
[Originally posted on cubeowners forum but no help from there so apologies to anyone who may have read this on another site]
My ISP keeps changing IP address every few days even though they say it should remain steady for a few months at least. I have a DNS2GO account from back inthe day when i used a PC running windows. That had a simple tray prog that sat sending heartbeats to DNS2Go's system and everytime an IP change happened my domain would be updated to point to my new IP.
I've been trying to get DNS2Go to work for ages on my Mac (OS X 10.3) and finally found out they have a perl version available. I downloaded this, set up the files but it failed to run, so i updated to perl 5.8.5 and joy, I can now manually start the script in terminal:
G4Cube:/Library/Dns2go scoopz$ perl
and this will update my IP with DNS2Go's system.
Right all i want to do now is set this to run every 5 minutes. Some investigation and I figure out that i need to add an entry to the crontab to execute this. I used pico to edit the main system crontab:
G4Cube:/Library/Dns2go scoopz$ sudo pico /private/etc/crontab
which looks like this:
# /etc/crontab
#minute hour * *mday * *month * wday * *who * * command
#*/5 * ** * * * * * * * * * * * * * * * root * */usr/libexec/atrun
# Run daily/weekly/monthly jobs.
15 * * *3 * * * * * * * * * * * * * * * root * *periodic daily
30 * * *4 * * * * * * * * * * * 6 * * * root * *periodic weekly
30 * * *5 * * * 1 * * * * * * * * * * * root * *periodic monthly
and then i added the following line to the bottom:
*/5 * ** * * * * * * * * * * * * * * * root * */Library/dns2goperl/
But it doesn't work.
Any ideas guys & girls?
Whilst running:
G4Cube:/Library/Dns2go scoopz$ perl
in that directory it all works fine, but if i go to another directory and run (what i thought would be exactly the same as running the above):
G4Cube:/ scoopz$ perl /Library/Dns2go/ 
Undefined subroutine &main::DNS2GoUpdate called at /Library/Dns2go/ line 10.
it now returns the same error i was getting before i updated to perl 5.8.5

Scoopz Homepage
QUOTE Thanks
Posts: n/a

just replace the command with:

cd /Library/dns2goperl/ && perl

the "&&" means "run after previous command completes"
QUOTE Thanks

Post Reply New Thread Subscribe

« OSX on a PC? | When can we expect the almightly Tiger OS? »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Starter
Last Post
crontab for osx estrellas OS X - Operating System 5 07-27-2004 12:37 AM

All times are GMT -4. The time now is 12:00 PM.

Powered by vBulletin
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.

Welcome to

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!

(4 digit year)

Already a member?