You are here: Re: [PHP] AT / php / apache question « PHP « IT news, forums, messages
Re: [PHP] AT / php / apache question

Posted by Michael Gross on 01/02/06 13:37

Hi
You could call the script via the http-server with wget (or lynx).


david blunkett wrote:
>
> Dear PHP users,
>
> I am trying to write a php script that allows me to schedule jobs using
> the at deamon (unix) for execution
> in the arbitrary future. I have everything working except that the
> default login shell for apache (nologin)
> means that the at deamon fails to execute the command.
>
> If I run the at command as another (not apache) user or change the
> apache login script to bash then
> everything works fine.
>
> I understand the nologin shell is a security feature for the apache
> account so i am reluctant to change it.
> AT is supposed to use the shell defined by the SHELL environment
> variable at the time of job submission but this does not appear to work
> in this case.
> I have tried wrapping the command in a setuid script to use another user
> id to side step this but I think
> scripts are prevented from using setuid.
> I could sidestep this by making a setuid executable but this seems like
> a desperate measure and that there should be a more sensible way of
> achieving this safely.
>
> So does anyone have any suggestions? since "at" is a common word looking
> for solutions on the web
> is rather difficult...
>
> Cheers,
>
> SA
>
> _________________________________________________________________
> On the road to retirement? Check out MSN Life Events for advice on how
> to get there! http://lifeevents.msn.com/category.aspx?cid=Retirement
>

 

Navigation:

[Reply to this 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

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