10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I know something simple is missing here, "log_user 1" is set . . . after this utility opens ${InFile} (handle? for IntInFile) it needs to look for something to appear in the file ${IntInFile} and then send it to the spawned process. Then I am locking the file ${IntInFile} and clearing it out -... (0 Replies)
Discussion started by: JuanMatteo
0 Replies
2. Shell Programming and Scripting
spawn fbat
expect ">>"
send "log fbatPW80_OR8sim1 \r"
expect ">>"
send "load map.map \r"
expect ">>"
send "load fbatPW80_OR8sim1.ped \r"
expect ">>"
send "fbat -v1 \r"
expect ">>"
send "log off \r"
expect ">>"
I need the above code to run in a loop such that script keeps doing a... (1 Reply)
Discussion started by: zoeli
1 Replies
3. Shell Programming and Scripting
set fid
set content
close $fid
## Split into records on newlines
set records
send "records splited\n"
send $records\n
set a "test\n"
send $a
foreach rec $records {
## Split into fields on colons
set fields
#set fields
puts $fields
for {set x 1} {$x < 4} {incr x} {... (1 Reply)
Discussion started by: rachanaPatel
1 Replies
4. Shell Programming and Scripting
Friends,
Need someone's help in helping me with the below requirement for a script:
> For a list of servers(over 100+), I need to login into each of them(cannot configure password-less ssh) & grab few configuration details <
I know, this is possible through expect programming in a simple... (14 Replies)
Discussion started by: thisissouvik
14 Replies
5. AIX
Friends,
Need someone's help in helping me with the below requirement for a script:
> For a list of servers(over 100+), I need to login into each of them(cannot configure password-less ssh) & grab few configuration details <
I know, this is possible through expect programming in a simple... (2 Replies)
Discussion started by: thisissouvik
2 Replies
6. Shell Programming and Scripting
Having issues with an expect script. I've been scripting bash, python, etc... for a couple years now, but just started to try and use Expect. Trying to create a script that takes in some arguments, and then for now, just runs a pwd command(for testing, final will be command I pass).
Here is... (0 Replies)
Discussion started by: cbo0485
0 Replies
7. Shell Programming and Scripting
I am trying to create an Expect script that does the following:
1) Telnets to an IP address and logs in with user ID and Password
2) Issue a CLI command to the server that will output data of which I am particularly interested in a DS1 clock 'Slips' value. I want to be able to keep issuing... (0 Replies)
Discussion started by: dwightlaidler
0 Replies
8. Shell Programming and Scripting
#!/usr/bin/expect
spawn telnet 1.1.1.1
expect login*
send “admin\r”
expect Password*
send “abcdef123\r”
expect “Router#”
send “exit\r”
I want the above code to run in a loop such that script keeps doing a telnet to the device. Please suggest
Tarun (1 Reply)
Discussion started by: tkhanna82
1 Replies
9. Shell Programming and Scripting
Hello All,
I am trying to automate an installation process using expect and sh script. My problem is that during the installation process the expected value can change according to the situation.
For Example if this is a first time installation then at step 3 I'll get "Do you want to accept... (0 Replies)
Discussion started by: alokrm
0 Replies
10. Shell Programming and Scripting
Hello....
I'm developing a script; the first step is to create a file (its name is IP) which contains several lines. The second step is to create and execute expect programs using the data in the (IP) file.
Unfortunately, the loop is not executed properly....sometimes, the 2nd expect file is... (2 Replies)
Discussion started by: Hossam_Nox
2 Replies