.:.:.:.:RTTP.Mobile:.:.:.:.
[<--back] [Home][Pics][News][Ads][Events][Forum][Band][Search]
full forum | bottom

[compy] Rev or others... php question...

[views:2179][posts:14]
 _________________________________
[Feb 13,2008 8:03am - sxealex ""]
I have a php script calling a bash script.... how do I make the webpage not hang while the script is executing? Everything works fine except i have to reload the page to see the output...

http://lbot.analglands.cx:8888/bot.php

 __________________________________
[Feb 13,2008 8:11am - bradmann ""]
yo alex fuck icelandic postage...we can just have a hard-drive party when i get back.
 _________________________________
[Feb 13,2008 8:16am - sxealex ""]
ha ok
 ______________________________________
[Feb 13,2008 8:49am - the_reverend ""]
I don't get what you are doing... but why don't you nohup or something like that.
 _________________________________
[Feb 13,2008 8:56am - sxealex ""]
oh i put the wrong link... duhhh
 _________________________________
[Feb 13,2008 8:56am - sxealex ""]
fixed
 ______________________________________
[Feb 13,2008 9:05am - the_reverend ""]
I already answered your question though...
 _________________________________
[Feb 13,2008 4:49pm - sxealex ""]
it still hangs even when i nohup in a terminal... wtf?
 _________________________________
[Feb 13,2008 4:52pm - sxealex ""]
the program in running uses the display of the remote machine so i tried...
DISPLAY=:0 nohup ./psclient
and it said appending to the nohup.out...
hannnnnnngggggg
 _________________________________
[Feb 13,2008 4:52pm - sxealex ""]
and all this is run as sudo so its not a permissions thing
 ______________________________________________
[Feb 13,2008 5:07pm - Fuck_Logging_In_NLI  ""]
ITT: Nerds
[img]
 ______________________________________
[Feb 13,2008 5:24pm - the_reverend ""]
no hump needs to be the first thing. put everything in your script
 _________________________________
[Feb 13,2008 5:38pm - sxealex ""]
solution was
DISPLAY=:0 ./psclient > /dev/null 2>&1 &
in the sh script... although i thought nohup did the same thing but it didnt work. o.O
 _________________________________
[Feb 13,2008 5:38pm - sxealex ""]
i tried nohup as the first thing... and the DISPLAY command wouldnt work
 _________________________________
[Feb 13,2008 5:40pm - sxealex ""]

Fuck_Logging_In_NLI said:ITT: Nerds


does it make it funnier if i tell you im actually sitting in bed with a mac laptop


Reply
[login ]
SPAM Filter: re-type this (values are 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E, or F)
message

top [Vers. 0.12][ 0.004 secs/8 queries][refresh][