10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
lyang001@lyang001-OptiPlex-9010:~/updates/$ cat zz.sh
#!/usr/bin/expect
set flag 8888
puts "xxx $flag"
send "echo $flag > /tmp/1\r"
lyang001@lyang001-OptiPlex-9010:~/updates/$ ./zz.sh
xxx 8888
lyang001@lyang001-OptiPlex-9010:~/updates/$ cat /tmp/1 ... (1 Reply)
Discussion started by: yanglei_fage
1 Replies
2. Shell Programming and Scripting
Hi,
i have one problem with this script:
-------------------------------
cat hostid_gathering
#!/bin/bash
cat /home/user1/ip_switch | while read LINE; do
echo $LINE
/home/user1/expect_script2
done
------------------------------
cat /home/user1/expect_script2
#!/usr/bin/expect... (6 Replies)
Discussion started by: elilmal
6 Replies
3. UNIX for Dummies Questions & Answers
in cygwin, cron-config will ask two inputs: yes or no.
1st question, answer is no
2nd question, answer is yes
my script:
echo no | cron-config
how do i pass yes to 2nd question ? (4 Replies)
Discussion started by: lawsongeek
4 Replies
4. Shell Programming and Scripting
Hi Guys,
I have a big file like this. It has cache group line ( the bold lines ) and then followed by 10 status lines showing either Compelte or Failed. This pattern repeats several time. We can assume all the status lines have either Complete or Failed status for that Cache Group line.
I... (13 Replies)
Discussion started by: MKNENI
13 Replies
5. Shell Programming and Scripting
echo (some info) read? <&1(not working for me) (1 Reply)
Discussion started by: robin_simple
1 Replies
6. Shell Programming and Scripting
Hi,
I have a test.txt and would like to put in a different file but while putting in the other file, blank spaces are missing.
$ indicates blank spaces
filename: test.txt:
USA$$$840$$$$
Desired output
USA$$$840$$$$
Current output as per the following code.
while read j;
do... (3 Replies)
Discussion started by: techmoris
3 Replies
7. Shell Programming and Scripting
Hi guys,
I am new to AWK and unix scripting. Please see below my problem and let me know if anyone you can help.
I have 2 input files (example given below)
Input file 2 is a standard file (it will not change) and we have to get the name (second column after comma) from it and append it... (5 Replies)
Discussion started by: sksahu
5 Replies
8. Shell Programming and Scripting
Hi,
I am passing the file filename to a program and I have to use the "<" sign:
program < filename
Inside the program I would like to assign the string "filename" to a variable var.
I can't do that with "var=$(echo $1)" because of the "<" sign.
Removing the "<" sign would work for echo,... (13 Replies)
Discussion started by: calandrea
13 Replies
9. Shell Programming and Scripting
Hi,
First of all i am using solaris 10. I want to write a script that ask user to enter password and read the character input from keyboard. The ask to re-enter the password and then if they are match it will accept.
But my problem is I want to echo a '*' character instead of the character I... (4 Replies)
Discussion started by: alanpachuau
4 Replies
10. UNIX for Dummies Questions & Answers
I'm a Unix newbie.
In a shell-script, is there any way to accept keyboard input (via STDIN) without having it display on the screen? I know keying in a login password sort of does this by replacing what you key with astericks (*) but I believe that's a "C" routine. I'd like to be able to... (2 Replies)
Discussion started by: liteyear18
2 Replies