10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi all,
i need to run expect and get the output into variables so my bash script can make decisions
this is what i get currently
Please wait while gathering statistics...
1: 0x60bf83c8
2: 0x60bf8d58
3: 0x60bf8d80
* 4: 0x60bf93a0
* 5: 0x62b0b4e0
6: 0x605938a0
7:... (13 Replies)
Discussion started by: ExpectHelpNeede
13 Replies
2. UNIX for Dummies Questions & Answers
Firstly I do need to state that I am turning here as a last resort. Im in my first year of a Computer Networking and technical support course, and as a first year I must complete a Introductory Unix/Linux class. I have been doing well in the course so far however I have been stumped on the final... (1 Reply)
Discussion started by: setaylor5
1 Replies
3. UNIX for Dummies Questions & Answers
#!/bin/bash
echo "enter a file or directory name"
read name
if
then
echo " argument is file "
ls -l $name | awk '{print $1,}'
elif
echo " argument is a directory"
ls -l $name | awk '{print $1}'
fi
what i am trying to do. get input... (3 Replies)
Discussion started by: iluvsushi
3 Replies
4. 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
5. Shell Programming and Scripting
Hello
I'm working using expect to automate telnet commands...i want to check if telnet fails and in this case...certain message should appear or certain word should be out in a file).
Thses are the messages that apeear if telnet fails:
Trying 172.16.3.115...
telnet: Unable to connect... (0 Replies)
Discussion started by: Hossam_Nox
0 Replies
6. Shell Programming and Scripting
Hi,
I am trying to create a script just to study BASH scripting, but I have some problems.
I need to create a script that gets a filename as an argument. The script should behave as follows:
• If the given file name already exists, inform the user and quit.
• If the given file name does... (2 Replies)
Discussion started by: I-1
2 Replies
7. Shell Programming and Scripting
Hello Folks,
i have written a script to nullify the log files in my dev environment but the log files are not getting nullified.Please find below my script and also thank you all in advance for your help.
find /app -size +100000 -xdev -exec du -k {} \; 2>/dev/null | sort -nr |ls -1dF ... (2 Replies)
Discussion started by: Rayzone
2 Replies
8. Shell Programming and Scripting
Hi,
I am new to expect scripting and need your help in the following task.
I want an expect script to take the commands from an input file and then execute the commands and give the command execution output in an otput file.
The command execution part is normal and I did it via script by... (2 Replies)
Discussion started by: Sooryaa
2 Replies
9. Shell Programming and Scripting
Hello to all...this is my first post (so please go easy). :)
I feel pretty solid at expect scripting, but I'm running into an issue that I'm not able to wrap my head around. I wrote a script that is a little advanced for logging into a remote Linux machine and changing text in a file using sed.... (2 Replies)
Discussion started by: v1k0d3n
2 Replies
10. Shell Programming and Scripting
Hi guys,
I want to execute an SQL script based on a condition.... I am writing a sample requirement...
num = {some value}
if(num == 0)
then
cat>> test.sql <<FIN
select * from table_a
FIN
else
cat>> test.sql << FIN
select * from table_b
FIN
fi
This is what i... (3 Replies)
Discussion started by: Payal Sharma
3 Replies