Re: new question
| From: | Michael A. Peters | Date: | Thu, 31 Jan 2002 17:09:29 +0000 |
| Subject: | Re: new question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-82958@lists.php.net to get a copy of this message | ||
man crontab
essentially you just need to load it into your crontab.
crontab /path/to/cron.txt
should do it.
-=-
What I do is keep a file in my home directory called crontab.txt
That's the file I edit.
When I add something to my crontab- I add it to that file.
Then I run
crontab ~/crontab.txt
to load it.
This is important because the crontab command deletes everything currently
in your crontab (probably nothing if you've never done this before)
replacing it with the contents of the text file you specify.
On Thu, 31 Jan 2002 17:59:00 +0100
"Pafo" <pafo@pafo.net> mentioned:
> you can get a file on your site to be exec every x minuts with lynx....
> but i dont understand how it works, i have created a "cron.txt" file
and
> put it in the folder where i want my script to be executed... the
content
> of this file looks like this:
>
> */5 * * * * /usr/bin/lynx --dump http://localhost/php/ppp.php
> >
/dev/null
>
> but it dosent work, do i have to register the cronfile somewhere to make
it
> work...?
> cause i want it to run this file every 5mins... is there any other
way???
>
> regards
> pafo
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
--
-=-=-=-=-=-=-=-=-=-=-=-=-
Michael A. Peters
http://24.5.29.77:10080/