php shell script questions
bill
william at TechServSys.com
Tue Jul 14 13:42:27 UTC 2009
Hal Burgiss wrote:
> On Tue, Jul 14, 2009 at 7:15 AM, bill<william at techservsys.com> wrote:
>
>> I need to run a php script from cron.
>> I will be developing it from the console using the cli.
>>
>> for debugging use, do echo statements echo to the console or do I need to
>> explicitly open the console for output ?
>>
>
> 'echo' echoes to STDOUT. You don't need to do anything special.
>
>
>> when I finish the testing and want to start it from cron, would I use
>> php {scripname.php} as the cron command, or is there a shebang that I can
>> put at the head of the script and then just cron the scriptname ?
>>
>
> Either way works. !#/usr/bin/php (for Ubuntu location. In the latter
> case, the script of course has to be set executable. The former not.
>
> Its easy enough to do a simple test, no?
>
>
I am appreciative and properly chastised, but in my defense I will have
to say that I have exactly 1 month of experience with Ubuntu and none
with PHP cli.
bill
--
Bill Drescher
william {at} TechServSys {dot} com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20090714/5b7580ae/attachment.html>
More information about the ubuntu-users
mailing list