LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-23-2006, 07:31 PM   #1
slackamp
Member
 
Registered: Dec 2005
Distribution: slackware-current
Posts: 86

Rep: Reputation: 16
crontab + lynx = not working?


hello there guys, i have setup crontab as uzer.

$ whoami
uzer

$ crontab -l
50 23 * * * /usr/local/bin/checkip

$ cat /usr/local/bin/checkip
#!/bin/sh
/usr/bin/lynx --dump http://checkip.dyndns.org > /home/uzer/checkip
/usr/bin/echo `cat /home/uzer/checkip` | mail uzer@fqdn

$ ls -l /usr/local/bin/checkip
-rwxr-xr-x 1 uzer users 145 2006-01-22 12:36 /usr/local/bin/checkip


when i perform the script manually, it works. cron works for some reason on the first run only. after that, it no longer works. i get the the following e-mail for the local user and a blank one for uzer@fqdn.

Subject: cron: /usr/local/bin/checkip


Looking up checkip.dyndns.org
Unable to locate remote host checkip.dyndns.org.
Alert!: Unable to connect to remote host.

lynx: Can't access startfile http://checkip.dyndns.org/


To me this is the best way to find my ext ip and notify me through e-mail. I have cable modem so my connection is always up. I do it this way because i have a godaddy subscription.
 
Old 01-23-2006, 08:41 PM   #2
kodon
Member
 
Registered: Jul 2004
Location: [jax][fl][usa]
Distribution: Slackware64-current
Posts: 796

Rep: Reputation: 31
ddclient will mail the ip update info to your user
 
Old 01-23-2006, 08:54 PM   #3
slackamp
Member
 
Registered: Dec 2005
Distribution: slackware-current
Posts: 86

Original Poster
Rep: Reputation: 16
yah i actually have ddclient setup to mail me twice a month and update my dyndns.org account. i just wanted to have a daily one also. is there way to configure ddclient to only send an e-mail and not update dyndns.org? if i run this daily then they might think i'm an abuser.
 
Old 01-23-2006, 09:01 PM   #4
kodon
Member
 
Registered: Jul 2004
Location: [jax][fl][usa]
Distribution: Slackware64-current
Posts: 796

Rep: Reputation: 31
i'm not sure it's possible for ddclient to be abusive.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
crontab nor working navaladi Mandriva 11 01-17-2005 06:58 AM
telnet, lynx , and other internet services are not working xxx_anuj_xxx Linux - Security 3 12-30-2004 10:22 PM
installing cgi perl to get lynx working hypnotiks Linux - Newbie 1 12-19-2004 02:06 PM
crontab not working subaruwrx Linux - Newbie 8 08-17-2004 09:12 PM
Crontab not working Neorio *BSD 1 12-02-2003 07:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration