Re: Perl Expect .. getting output of command

2005-06-16 Thread Ramprasad A Padmanabhan

Randal L. Schwartz wrote:

Ramprasad == Ramprasad A Padmanabhan [EMAIL PROTECTED] writes:



Ramprasad $exp-expect(1);

This means wait at most 1 second for *any* output.



Yes I thought for a simple command like date that should be OK
even If I put $exp-expect(1,/.*2005.*/s) I get no output in the string

Thanks
Ram

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response




Re: Perl Expect .. getting output of command

2005-06-15 Thread Randal L. Schwartz
 Ramprasad == Ramprasad A Padmanabhan [EMAIL PROTECTED] writes:

Ramprasad $exp-expect(1);

This means wait at most 1 second for *any* output.

Do you really want to do that?  Perhaps you should be waiting for a
newline or something.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
merlyn@stonehenge.com URL:http://www.stonehenge.com/merlyn/
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response