hi,

i want to start lynx on a linux machine thru cron.daily, only to access a php page that does a lot of maintainence jobs but does not return anything.

i do not know how to kill a cron job.
eg if i give a cron like this

30 15 * lynx http://somserver/page.php

how do i kill lynx after this, so that memory is not wasted.

thanx
steve

    Try:

    lynx --source http://someserver/page.php

    Once lynx is done it will return the contents of the page and quit. Probably what you are looking for.

    Chris King

      No need to kill anything; lynx will run and then exit.

        I had problems getting lynx to quit at one time.

        My solution was to have the cron call php directly. For example:

        30 15 * /path/to/php /path/to/routine.php

        or, specifically in of my cases,

        22,52 /usr/local/bin/php -q /home/sites/home/web/images/temp/cron_delete_files.php > /dev/null

        Hope that helps.

        Rob

          Or put into the to of the php script:

          #!/path/to/php -q

          <?
          php stuff
          ?>

          and

          30 15 * /path/to/routine.php

          in the the cron file

          This is what I do

          Will

            Write a Reply...