From: Austin S. <te...@of...> - 2002-03-13 20:17:17
|
On Wed, Mar 13, 2002 at 02:01:12PM -0600, al....@ac... wrote: > > Austin, > > Thank you. Your comments worked. Now I can see the remote file size on my > screen. I need to assign > that value to a variable so that I can compare it against the size of my > other files. How can I assign the > returned value to a local variable? > Take a look at $object->before() in the docs, or $before_match in the $object->expect() section. Basically the idea is to use the output before the matched prompt. In other words you would do something like $ssh->expect($timeout, $prompt); print $ssh "$command\r"; $ssh->expect($timeout, $prompt); $output = $ssh->before(); Austin |