Reply to Re: cron adduser

Your name:

Reply:


Posted by Tom on 08/23/07 17:54

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
--
NewsGuy Takes Usenet Cellular!
Download newsgroup MP3's to your Cell or PDA
Free Trial - http://newsguy.com/cellphone.htm

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация