<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#006600">
Hal Burgiss wrote:
<blockquote
cite="mid:962301c30907140528u558b7587q94e13ec507025b43@mail.gmail.com"
type="cite">
<pre wrap="">On Tue, Jul 14, 2009 at 7:15 AM, bill<a class="moz-txt-link-rfc2396E" href="mailto:william@techservsys.com"><william@techservsys.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">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 ?
</pre>
</blockquote>
<pre wrap=""><!---->
'echo' echoes to STDOUT. You don't need to do anything special.
</pre>
<blockquote type="cite">
<pre wrap="">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 ?
</pre>
</blockquote>
<pre wrap=""><!---->
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?
</pre>
</blockquote>
<font size="+1">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.<br>
<br>
bill<br>
</font><br>
<pre class="moz-signature" cols="65">--
Bill Drescher
william {at} TechServSys {dot} com</pre>
</body>
</html>