Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Ilya Knizhnik
August 31, 2004, 3:37 am
rate this thread
system() passthrough() and shell_exec() all execute the given command,
with their own slight differences in output, etc
what i want to do is essentially
shell_exec("ssh ip 'df -h -l' ");
for that and other commands
for some reason this takes exactly 20 seconds before it returns, so does
'system' and 'passthrough'
ssh works fine, if i do it from the commandline it takes less than a second
I also realize that I could just write a simple shell script and just
execute the script which does take about a second.
I was just wondering if anyone knows what could be the problem? and why