laziness, impatience, and hubris | |
PerlMonks |
Re: SFTP return value from shell to perlby bulk88 (Priest) |
on Apr 05, 2012 at 16:21 UTC ( [id://963709]=note: print w/replies, xml ) | Need Help?? |
Maybe you want system, which runs a program and return the exit code. But unless you can get sftp non-interactive (you can't have new lines in the string given to system), that wont help you. If you want to "type" to the program while it is running, you need to use open or one of its module descendants like Open3 or read perlipc. Timeouts of the app your type into and read the screen from will be a very large pain.
In Section
Seekers of Perl Wisdom
|
|