Results 1 to 2 of 2

Thread: Getting Lynx to behave with Cron job

Threaded View

  1. #1
    Join Date
    Apr 2008

    Getting Lynx to behave with Cron job

    Hi, my University makes us log in credentials every 12 hours in order to access the internet. I decided I'm tired of that, so I made a shell script that automates Lynx to log me off and log me back in immediately afterwards. This works like a charm with no problems to any programs, so I set a cron job to run the script every 11 hours.

    Things went well for a few days, and I was happy, but Lynx won't always kill itself after the task has been done. So I've had a few instances of 100 percent CPU usage for Lynx. Also, I've seen Lynx invoke another process of itself just minutes after the cron job has been run. As of right now, there are two Lynx processes running with a total of 4 megabytes memory usage, and no cpu usage. I'd be perfectly happy with that if it just stayed like that.

    This is the crontab that I have:

    * */11 * * * sh /home/cornwall/ >>/home/cornwall/Desktop/.canenetdebug.txt
    The shell script goes like this:

    #! /bin/bash
    lynx -accept_all_cookies -nopause -cmd_script ~/.canenetrefresh.txt
    Is something looking out of the ordinary? How can I trail the output of a running process to see what it's up to? I'm not familiar with how to do that.
    Last edited by Chauncellor; February 14th, 2010 at 07:57 AM.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts