Jump to content

starting a script


The Little Guy

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/197558-starting-a-script/
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/197558-starting-a-script/#findComment-1036848
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.