Re: grep being cropped - WeOnlyDo Discussion board

Re: grep being cropped (General questions)

by mike_mort, Saturday, August 02, 2008, 16:11 (5962 days ago) @ wodDamir

Hi,

I have tried using the send command and waitfor; however, I still dont seem to get the desired result. Example... If I were using putty I would do this.

[code]
$ uname -a
SunOS 5.8 blah blah blah
$
[/code]

What I want is the output from the command entered first, i.e. 'SunOS blah blah blah'. If I do this:

[code]
ssh.Send( uname -a & vbcrLf)
ssh.WaitFor( $ )
tmpString = ssh.Receive()
[/code]

The tmpstring ends up being just a $. How do I get the output from the command?

Thanks, Mike (Sorry if I am being really dum!)


Complete thread: