10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hey there :)
I have a Bash Script and I'm trying to update Roundcube, but theres a user interactive line like:
bin/installto.sh /var/www/mail/rc
Upgrading from 1.1.3. Do you want to continue? (y/N)
I'm trying to avoid this user interaction like this:
cd roundcubemail-1.2.1 >/dev/null... (5 Replies)
Discussion started by: Aeris
5 Replies
2. Shell Programming and Scripting
expect {
-re "(.*)NEXT PAGE(.*)" {
send "\r\n"
}
exp_continue (0 Replies)
Discussion started by: sagar_1986
0 Replies
3. Shell Programming and Scripting
i have written simple expect script but it doesnt work the way that i want can someone suggest wat is the issue?
#!/usr/bin/expect
spawn ssh abc@abc
expect "password:"
send "xyz\r"
expect "$"
send "mkdir hello\r"
#sleep 10
#exit 0
output
---------------
it does not create directory... (4 Replies)
Discussion started by: bkumar82
4 Replies
4. UNIX for Dummies Questions & Answers
Hey guys... first post here...
I have set up the following cron to create daily backups for me and rotate them weekly:
date=`date +%d`; tar -zcvf /home/mysite/backups/backup_dev_$date.tgz /home/mysite/public_html/dev/app --exclude=/home/mysite/public_html/dev/app/tmp
However, I keep... (4 Replies)
Discussion started by: Crazy Serb
4 Replies
5. Shell Programming and Scripting
hi
i am trying to connect to database by two method one is
sqlplus fss_blf/fss_blf@schema1
>select * from schema1_ta_example
exit
above method succesfffuly connect it to dabase
but the problem comes when i try to enter this code into mine shell script by using EOF character it is... (4 Replies)
Discussion started by: aishsimplesweet
4 Replies
6. UNIX for Dummies Questions & Answers
Hi Im writing an expect program for automating ftp. Having trouble with mget:
expect "ftp>" {send "mget *.txt\r"}
expect "mget*?" {send "n\r" ; expect_continue}
expect "ftp>" {send "bye\r"}
But expect even on ftp prompt "n" gets sent
Please help... (1 Reply)
Discussion started by: crackle1985
1 Replies
7. Shell Programming and Scripting
hi all, guys i have a problem in this code...
any help ?
#!/usr/bin/expect
if { $argc != 3 } {
puts "Usage:"
puts "$argv0 username oldpwd newpwd"
exit
}
#set machine
set username
set oldpwd
set newpwd
set completed_list " " (2 Replies)
Discussion started by: b1sh0p
2 Replies
8. Shell Programming and Scripting
Hi friends ,
I am confused with << EOF
EOF
Most of the cases I found
sqlplus $db_conn_str << EOF
some sql staments
EOF
another exapmle is
#!/bin/sh
echo -n 'what is the value? '
read value
sed 's/XXX/'$value'/' <<EOF
The value is XXX
EOF (1 Reply)
Discussion started by: imipsita.rath
1 Replies
9. AIX
Hi,
I am facing a strange problem while executing a script from a solaris server. This script calls another one to execute "expect" commands on some other 40 servers (all AIX 5200). I am passing username and password to the "expect" script as arguments. My problem is that it is showing the... (4 Replies)
Discussion started by: gsabarinath
4 Replies
10. Shell Programming and Scripting
In shell file, i am writing following statement:
cat > File1.sh <<EOF
set feedback off
set serveroutput on
cat > File2.sh <<EOF
contents of second file
EOF
Contents of First file
EOF
Actually, i want these bolded statements in File1.sh as it.
But after first EOF, contents are... (1 Reply)
Discussion started by: mmunir
1 Replies