Bluehost.com Web Hosting $6.95

Executing shell commands

This is a discussion on Executing shell commands within the PHP General forums, part of the PHP Programming Forums category; Hi, I'm trying to write a front end for something and I want to be able to execute shell ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-09-2003
Teren
 
Posts: n/a
Default Executing shell commands

Hi, I'm trying to write a front end for something and I want to be able to execute shell commands. I tried all of the pre-written functions and non of them would work. I setup a user that can sudo and then i set apache to run as that user. So, what I tried to do is shell_exec("sudo -s; reboot;"); but that didn't work, I also tried other numerous variations all of which didn't work (also using exec(), system(), passthru() ). If any one has any ideas how i can do this, please let me know. Thanks

Teren
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 04:44 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0