10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi aLL,
I have a requirement where in i need to read the file from while loop as shown in the code below
while read line
do
command $line
done < list.txt
But after every command it asks if i want to really go ahead with the execution since there are several other lines in the... (3 Replies)
Discussion started by: nikhil jain
3 Replies
2. Shell Programming and Scripting
We have lftp command inside shell file. which is intern calling .cfg file for transferring the file from one server to other.
Below command to not working.
lftp -e "set net:max-retries 1; set net:reconnect-interval-base 1; put -E -O /destinationdir/inbox/ /sourcedir/test.txt; bye" -u... (4 Replies)
Discussion started by: johnsnow
4 Replies
3. Shell Programming and Scripting
Hi,
I have written a unix expect utility "ssh-login.exp" which connects (ssh) to remote host and execute some shell script. I am calling this "ssh-login.exp" utility from another shell script.
"ssh-login.exp" takes username, password, host and shell script path to execute on remote host. All... (1 Reply)
Discussion started by: Mahesh Desai
1 Replies
4. Shell Programming and Scripting
Hi All,
I run the scp command in shell prompt without issue, but when on expect script as below:
#!/usr/bin/expect
spawn scp /var/spool/sms/failed.tar.gz abc@10.10.12.2:/home/abc
expect "abc@10.10.12.2's password: "
send "abcfef\r"
exit 0
It looks not working at all and the... (3 Replies)
Discussion started by: elingtey
3 Replies
5. OS X (Apple)
I am a beginner, trying to get basic background utilities like at and cron to work on mac os x.
I am typing the following at the prompt:
at now + 1 minute
open -a textedit
^D
nothing happens at the appointed time.
What to change? (7 Replies)
Discussion started by: sakurashinken
7 Replies
6. Shell Programming and Scripting
I have the following expect script sitting on a Linux box.
===
#!/usr/bin/expect -f
#
# backup.expect
#
# Expect script to backup a firewall via a SSH session
#
#
set firewall
set username
set password
set prompt
set filename
match_max 50000
spawn ssh -l... (2 Replies)
Discussion started by: alagondar
2 Replies
7. Shell Programming and Scripting
I am having an issue with TCL\Expect; I am passing arguments via the commandline that are read in via "lrange $argv". One of those var's is a password with characters that need to be escapaed, after escaping them an hitting enter expect is placing curly braces around my password... why?!
... (4 Replies)
Discussion started by: RiSk
4 Replies
8. Shell Programming and Scripting
Im trying to write a script that will change user to cyrus then reconstruct mailbox for the user defined in the parsed argument. If i was loggin in to terminal to do this manually for wendys mailbox i would do this
sudo su cyrus
/usr/bin/cyrus/bin/reconstruct -r user/wendy
That would... (4 Replies)
Discussion started by: timgolding
4 Replies
9. Shell Programming and Scripting
My expect script is not stopping to accept stdin
puts "Hey dude, how old might you be?"
gets stdin Age
While running this the script does not wait for user response. What could be the problem?
Pls help (0 Replies)
Discussion started by: balaji_prk
0 Replies
10. Shell Programming and Scripting
#!/usr/bin/bash
name="$@"
myname=malay
#echo $myname
select firstname in $name;
do
if ;then
echo $firstname
else
break
fi
done
invoking with:-
./script.sh one two three four five six seven eight nine malay (6 Replies)
Discussion started by: mobydick
6 Replies