php-general | 2003022
Date: 02/28/03
- Next message: Hugh Danaher: "Re: [PHP] Spaces collapsed in database"
- Previous message: Hugh Danaher: "Re: [PHP] strip comma from $value"
- In reply to: Justin Michael Couto: "RE: [PHP] Can't run PHP cli script from Cron"
- Next in thread: Justin Michael Couto: "RE: [PHP] Can't run PHP cli script from Cron"
- Reply: Justin Michael Couto: "RE: [PHP] Can't run PHP cli script from Cron"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Shouldn't it be
#!/usr/local/bin/php
Or was it just a typo here?
----- Original Message -----
From: "Justin Michael Couto" <justincouto <email protected>>
To: "'Ernest E Vogelsinger'" <ernest <email protected>>
Cc: <php-general <email protected>>
Sent: Friday, February 28, 2003 12:09 PM
Subject: RE: [PHP] Can't run PHP cli script from Cron
> I can run it from the shell prompt perfectly fine. I just won't run
> from cron.
>
> I do have the statement:
>
> #!/usr/local/php
>
> In the beginning of my script. Like I said it works perfect when I run
> it by hand from the shell prompt. I think the reason it is not running
> has to do with the cron environment, but I am not ssure what it is.
>
> Justin Michael Couto justin <email protected>
> Director of Operations 805.781.0420
> Somnio World Web Solutions http://www.somnioworld.com
>
>
> -----Original Message-----
> From: Ernest E Vogelsinger [mailto:ernest <email protected>]
> Sent: Friday, February 28, 2003 12:55 AM
> To: Justin Michael Couto
> Cc: php-general <email protected>
> Subject: Re: [PHP] Can't run PHP cli script from Cron
>
> At 05:30 28.02.2003, Justin Michael Couto said:
> --------------------[snip]--------------------
> >Here is my crontab entry:
> >
> >* * * * * /path/to/file/file_name.php
> >
> >I also have
> >
> >* * * * * /path/to/file/bash_test_script
> --------------------[snip]--------------------
>
> Did you try to run the php file interactively, from the shell prompt?
>
> You need at last this statement on top of your PHP files:
> #!/usr/local/php
>
>
> --
> >O Ernest E. Vogelsinger
> (\) ICQ #13394035
> ^ http://www.vogelsinger.at/
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: Hugh Danaher: "Re: [PHP] Spaces collapsed in database"
- Previous message: Hugh Danaher: "Re: [PHP] strip comma from $value"
- In reply to: Justin Michael Couto: "RE: [PHP] Can't run PHP cli script from Cron"
- Next in thread: Justin Michael Couto: "RE: [PHP] Can't run PHP cli script from Cron"
- Reply: Justin Michael Couto: "RE: [PHP] Can't run PHP cli script from Cron"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

