|
Posted by Steve on 05/18/07 14:41
that's great! next question.
i have import scripts that are secured (user name/pass/security code) and
are called currently via a browser. the same scripts should still be secured
yet callable from the cli. 1) can parameters be given to a script being run
through the cli on a cron, or 2) is there a method available to a php script
that allows the detection of whether it is a cli operation or http? the
purpose of both questions is that it will allow me to either feed creditials
to the script for authentication, or allow the default/built-in security to
be handled differently.
any thoughts are appreciated. this is my first time using php cli, so i'm
still learning and adjusting...but of course have little time to do either
thouroughly enough.
i appreciate your help.
"Michael Vilain" <vilain@spamcop.net> wrote in message
news:vilain-635DFC.14372217052007@comcast.dca.giganews.com...
| In article <pA33i.53$_N1.41@newsfe12.lga>, "Steve" <no.one@example.com>
| wrote:
|
| > sorry for the ot-ish-ness...
| >
| > ok, my *nix command-line is a bit rustic. what would the command look
like
| > to run a php script at 6 am every morning?
| >
| > thx.
| >
| > btw, os is rhl running php 5.
|
| Here's all the Unix help you'll need:
|
| man cron
|
| will give you the syntax of the crontab file. In case your sysadmin
| didn't install man pages, Google, as always, is your friend:
|
| http://www.adminschoice.com/docs/crontab.htm
|
| --
| DeeDee, don't press that button! DeeDee! NO! Dee...
|
|
|
Navigation:
[Reply to this message]
|