From: <ex...@th...> - 2004-07-12 16:46:09
|
I'm trying to write a script in perl, using the expect.pm module, which will connect via ssh to a remote system and run a series of commands. I can connect and run commands, but am having trouble with the interactive aspects of the script. I need to check the status of the system and make calls accordingly, but cannot find a way to make "blocking" calls (expect, wait, send) or catch the return value (e.g. send ("ls\n") and catch the results). Could you folks provide me with sample code or links to documentation that could help with this? I've read through the man, er perldoc, page and could not find solutions there. thanks, Andrew ex...@th... |