Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'This could work as well...' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
This could work as well...
Authored by: kaptaineric on Aug 25, '02 07:58:15PM
Why not save yourself thirty bucks and have crontab do the work for you?

    Setup crontab to email your ip address every hour:


  1. At the terminal, type: sudo -s to become the root user.
  2. Type your password.
  3. At the root# prompt, type: pico /etc/sendip.ct
  4. In pico, type the following: 0 * * * * /sbin/ifconfig -a | mail email@domain.com
  5. Press ctrl x to exit.
  6. Press y to save.
  7. At the root# prompt, type: chmod 500 /etc/sendip.ct
  8. To activate the cron job we just created, type: crontab /etc/sendip.ct


    To list the active crontab(s), at the terminal type: crontab -l

    {each user can have their own crontab(s)}

    To stop crontab, type: crontab -r






[ Reply to This | # ]
This could work as well...
Authored by: toblak on Aug 26, '02 01:02:08AM

The problem with ifconfig is if you are behind a firewall it will return your local IP address.



[ Reply to This | # ]