S
sdDirtySox
Hi all,
I'm using system to invoke a script remotely on another machine.
Something like this: system("/putty/plink.exe" 10.0.0.25 /home/foo);
The problem is, sometimes the foo script freezes the remote machine's
OS and system does not give control back to my program (which in turn
causes my program to hang.) I didn't write the foo script, so I'm not
sure why it's causing the remote machine's OS to freeze. I'd like to
have my program continue to execute even if the remote OS freezes.
So my question is: is there something I can do so that system isn't a
blocking call? Are there alternatives to system? Like I said, I just
need to invoke the script on the other machine.
Thanks in advance,
DS
I'm using system to invoke a script remotely on another machine.
Something like this: system("/putty/plink.exe" 10.0.0.25 /home/foo);
The problem is, sometimes the foo script freezes the remote machine's
OS and system does not give control back to my program (which in turn
causes my program to hang.) I didn't write the foo script, so I'm not
sure why it's causing the remote machine's OS to freeze. I'd like to
have my program continue to execute even if the remote OS freezes.
So my question is: is there something I can do so that system isn't a
blocking call? Are there alternatives to system? Like I said, I just
need to invoke the script on the other machine.
Thanks in advance,
DS