Displaying 1 result from an estimated 1 matches for "untail".
Did you mean:
entail
2004 Aug 06
0
Using php as an administrative tools.
...t server. Libshout looks ok for streaming data but not
for other commands.
So i started playing with sockets handled by php, and here troubles
begins. As i have no clue about when the output of my command will be
over, i try to use this kind of algorithm:
connect to server
send ADMIN passwd
send untail
send status off
send oper passwd
take whatever was send on the socket, and forget it.
while we didnt get 2 uptime output:
send uptime.
send requested command.
send uptime.
get whatever was sent from the socket.
return what has been send in the buffer.
Then i read whatever has come from icecas...