Re: Re[2]: [PHP] executing script using crontab....
| From: | Ray Hunter | Date: | Fri, 23 May 2003 06:15:12 +0000 |
| Subject: | Re: Re[2]: [PHP] executing script using crontab.... | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-148714@lists.php.net to get a copy of this message | ||
Try this as your crontab command:
/path/to/wget http://url/your_page.php --spider >
/dev/null 2>&1
That should work for you.
--
Ray
On Thu, 2003-05-22 at 23:00, System wrote:
> This is what I am trying to do
> http://gvtulder.f2o.org/articles/incoming-mail/
>
> Everything is working fine now. The scripts also gets executed. But
> following error message is been send to sender.
> ============================================================================
> =
> This message was created automatically by mail delivery software (Exim).
>
> A message that you sent could not be delivered to one or more of its
> recipients. This is a permanent error. The following address(es) failed:
>
> pipe to | wget http://otherdomain.com/mail/mail1.php
> generated by test@otherdomain.com
> Child process of virtual_address_pipe transport returned 1 from command:
> /usr/bin/wget
>
> The following text was generated during the delivery attempt:
>
> ------ pipe to | wget http://otherdomain.com/mail/mail1.php
> generated by test@otherdomain.com ------
>
> --00:56:00-- http://otherdomain.com/mail/mail1.php
> => `mail1.php'
> Resolving topmarketingteam.com... done.
> Connecting to topmarketingteam.com[209.51.142.218]:80... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: unspecified [text/html]
> mail1.php: Permission denied
>
> Cannot write to `mail1.php' (Permission denied).
>
> ------ This is a copy of the message, including all the headers. ------
>
> Return-path: <system@eluminoustechnologies.com>
> Received: from [162.42.208.49] (helo=server102.anhosting.com)
> by c3.combuzz.org with esmtp (TLSv1:DES-CBC3-SHA:168)
> (Exim 3.36 #1)
> id 19J4bO-0002o2-00
> for test@otherdomain.com; Fri, 23 May 2003 00:56:00 -0400
> Received: from [61.11.23.198] (helo=vishal)
> by server102.anhosting.com with smtp (Exim 3.36 #1)
> id 19J4b9-0006xn-00
> for test@otherdomain.com; Thu, 22 May 2003 23:56:07 -0500
> Message-ID: <013e01c320e7$a0608480$1a01a8c0@vishal>
> From: "System" <system@eluminoustechnologies.com>
> To: <test@otherdomain.com>
> Subject: test
> Date: Fri, 23 May 2003 10:26:03 +0530
> MIME-Version: 1.0
> Content-Type: text/plain;
> charset="iso-8859-1"
> Content-Transfer-Encoding: 7bit
> X-Priority: 3
> X-MSMail-Priority: Normal
> X-Mailer: Microsoft Outlook Express 6.00.2600.0000
> X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
> X-AntiAbuse: This header was added to track abuse, please include it with
> any abuse report
> X-AntiAbuse: Primary Hostname - server102.anhosting.com
> X-AntiAbuse: Original Domain - topmarketingteam.com
> X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [0 0]
> X-AntiAbuse: Sender Address Domain - eluminoustechnologies.com
>
>
>
>
>
>
>
>
>
> ----- Original Message -----
> From: "Timothy Hitchens" <hitcho@php.net>
> To: "System" <system@eluminoustechnologies.com>
> Cc: "PHP" <php-general@lists.php.net>; <bigdog@venticon.com>
> Sent: Friday, May 23, 2003 10:18 AM
> Subject: Re[2]: [PHP] executing script using crontab....
>
>
> > System,
> >
> > You did call the script using wget or lynx via the webserver??
> >
> >
> >
> > Timothy Hitchens (HiTCHO)
> > Web Application Consulting
> > e-mail: tim@hitcho.com.au
> >
> >
> > "People will accept your idea much more readily if you tell them Benjamin
> Franklin said it first."
> >
> >
> > Friday, May 23, 2003, 2:37:57 PM, you wrote:
> >
> > S> Thanks for the reply.
> >
> > S> I tried that. It downloads the scripts instead of executing it.
> >
> > S> Thank you,
> >
> > S> Tina...
> >
> >
> > S> ----- Original Message -----
> > S> From: "Ray Hunter" <bigdog@venticon.com>
> > S> To: "System" <system@eluminoustechnologies.com>
> > S> Sent: Friday, May 23, 2003 10:03 AM
> > S> Subject: Re: [PHP] executing script using crontab....
> >
> >
> > >> yes set up the crontab job and use:
> > >>
> > >> wget http://somedomain.com/test.php
> > >>
> > >> for the command.
> > >>
> > >> --
> > >> ray
> > >>
> > >> On Thu, 2003-05-22 at 22:30, System wrote:
> > >> > Hello All,
> > >> >
> > >> > I want to schedule a cronjob for every 30 mins. which will execute a
> > S> script
> > >> > on http://somedomain.com/test.php
> > >> >
> > >> > Can I do this?
> > >> >
> > >> > Thank you,
> > >> >
> > >> > Tina....
> > >> >
> > >> >
> > >>
> > >>
> > >>
> > >>
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> >
> >
>
>