|
Posted by Jerry Stuckle on 08/23/07 23:58
Tom wrote:
> On Thu, 23 Aug 2007 16:28:31 +0200, =?ISO-8859-1?Q?S=E9verin_Richard?= wrote...
>> Hi,
>>
>> creating a .php containing
>> <? exec( "useradd myuser" ) ?>
>>
>> and called by cron as root does not create a user.
>>
>>
>> What can i change to make it work??
>>
>> thx for idears.
>
>
> If you are trying to run a PHP file as a script, rather than loading it as a web
> page, I believe you need set your command up as...
>
> /pathto/php -f file.php
>
> Tom
Not if he's got the file set up to point to the PHP executable, and it's
flagged as an executable in the system.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
[Back to original message]
|