The Little Guy Posted April 4, 2010 Share Posted April 4, 2010 OK, I run a script in putty which starts this script: #!/home/ryannaddyps/php/bin/php -q <?php shell_exec('$HOME/firebase/firebase > /dev/null'); ?> and it never runs the firebase script, which currently looks like this: #!/home/ryannaddyps/php/bin/php -q <?php echo 'in firebase'; ?> Why isn't it starting? Quote Link to comment https://forums.phpfreaks.com/topic/197558-starting-a-script/ Share on other sites More sharing options...
DavidAM Posted April 4, 2010 Share Posted April 4, 2010 How do you know it is not running? You have redirected the output to /dev/null which means "throw away anything that comes out of this script, I don't want to see it, don't bother showing it to me!". If you are expecting to see the output, you need to remove the "> /dev/null" from the startup script. Quote Link to comment https://forums.phpfreaks.com/topic/197558-starting-a-script/#findComment-1036848 Share on other sites More sharing options...
The Little Guy Posted April 4, 2010 Author Share Posted April 4, 2010 OMG haha Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/197558-starting-a-script/#findComment-1036851 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.