I am running net-ssh(1.0.10) and ruby 1.8.2 (2004-12-25) [i386-mswin32]
When I execute the following:
session.process.open3("/usr/bin/netstat -pn") do
The output is cutoff. Logging into the system and running the command
/usr/bin/netstat -pn | wc -c the command outputs 10219 bytes
When substite “ls -last” for “…/netstat -pn” I get all of the output
Checking the amount of data returned by running: ls -last | wc -c the
command outputs 6799 bytes.
My assumption is that there is default buffer size that I have exceeded
the buffer is waiting to be flushed and the process ends before this
or there is something in my output that causes the buffer be flushed
Does anyone have any suggestions on how I might overcome this problem.