|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
||||
|
||||
|
Other Language - Anyone have experience with "expect"?
I am trying to build a script that will check out some source code from a CVS repository ... automagically.
this is what I have so far, but it isnt working .. not sure why and the 'expect' program isnt the most documented thing out there: Code:
#!/usr/bin/expect
spawn cvs co <project_name>
expect "user@cvs_host's password:" { send "<password>\r" }
problem I think im having is that what is returned from that command is two things: 1. Network latency 2. A massive message letting me know that if im stealing, im liable. Quote:
question maybe is that do I have to 'expect' all that verbiage or just the last line? If so why isnt my original script working?
__________________
Bugs that go away by themselves come back by themselves Never take life seriously, Nobody gets out alive anyway. |
|
#2
|
||||
|
||||
|
why not use Net::SSH::Expect in Perl?
http://search.cpan.org/~bnegrao/Net.../SSH/Expect.pod
__________________
--Ax without exception, there is no rule ... The great thing about Object Oriented code is that it can make small, simple problems look like large, complex ones ![]() 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0 Some people, when confronted with a problem, think "I know, I'll use regular expressions." Now they have two problems. -- Jamie Zawinski Detavil - the devil is in the detail, allegedly, and I use the term advisedly, allegedly ... oh, no, wait I did ... |
|
#3
|
||||
|
||||
|
Quote:
Umm ... yes .. why not? I didn't know about this ... Thanks! Also, thanks for the 'counter' in the other thread. ;0) |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Other Programming Languages > Other Language - Anyone have experience with "expect"? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|