10 More Discussions You Might Find Interesting
1. 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
2. Hardware
My NIC driver, which is writed by myself, didn't pass high pressure test!
I writed a shell script in which the key commands are "scp" to test the driver under high pressure. The shell script loop 3000 times and in each loop, the scp command transmits 1GB data.
When the test fail, it... (2 Replies)
Discussion started by: liklstar
2 Replies
3. Shell Programming and Scripting
Hi ,
I am not able figure out how to use expect tool to send input to this prompt of format
Searching for disks...done
selecting c0t3d0
FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition... (3 Replies)
Discussion started by: chidori
3 Replies
4. Shell Programming and Scripting
How Can I send the content of a file in Expect? Do I have to use cat command in a way? if yes how? lets say my file is called 1.txt.
example:
expect "Enter command to send:" {send "???? \r"} ???? --> content of the file 1.txt (1 Reply)
Discussion started by: alireza6485
1 Replies
5. Shell Programming and Scripting
I need call expect script from shell script and pass values some of which could contain space. How to make expect to treat such values as one variable? (1 Reply)
Discussion started by: urello
1 Replies
6. UNIX for Dummies Questions & Answers
Hi All,
I need to frame a unix script to logon to a unix box. The credentials needs to be obtained from a property file on the same location.
I am trying to use 'expect' and 'spawn' command to meet this req.
When I am passing values, these commands are working fine. but when I am trying to... (3 Replies)
Discussion started by: mailkarthik
3 Replies
7. Shell Programming and Scripting
All,
I am trying to use expect to send SFTP password because I am unable to share a key with the vendor.
They gave me a password that uses some symbols in it like $ and !
When i try to use the send command in expect it thinks the $ is a variable.
Is there anyway to have it send the... (2 Replies)
Discussion started by: markdjones82
2 Replies
8. Shell Programming and Scripting
Hi folks,
What I want to do is to check if there is an instance of running vlc on a remote server, then kill it, and start it again. The code I came up with is:
#!/bin/bash
expectFcn() {
expect -c "
set timeout -1
spawn ssh \"$1@$2\" \"$4\"
match_max 100000
expect {
-re... (2 Replies)
Discussion started by: dukevn
2 Replies
9. Shell Programming and Scripting
Hello Expect experts,
Is it possible with Expect to run a command first when an expected phrase is
outputted by a spawned program? Before sending an answer to the spawned program that is...
Thanks a lot. (2 Replies)
Discussion started by: Tr00tY
2 Replies
10. Shell Programming and Scripting
Hi All,
I want a script to test folder permissions.( to alert me if a folder /abc/xyz does not have 775 permissions). i want to test /abc/xyz is having 775 permissions or not if not it has to alert me.
Please help me ASAP
Thanks in advance (4 Replies)
Discussion started by: rajesh212512
4 Replies