10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I need to manually interactively feed in my password for each server one after the other. Below is the script I am using:
#!/bin/bash
input="serverlist.txt"
while IFS= read -r var <&3
do
echo $var
ssh user1@$var
done 3< "$input"
I get password prompt for the first server. If I dont have... (1 Reply)
Discussion started by: mohtashims
1 Replies
2. Shell Programming and Scripting
Hi,
I have 4 parameters passed to my shell and i validate if all four are entered using the following snippet:
if
then echo "Not entered"
else echo "entered"
fi
I get the following output as 'Not entered even when i enter the values for all prompts.
Please advise.
Thanks. (5 Replies)
Discussion started by: Jesshelle David
5 Replies
3. Linux
Hi,
Could someone please let me know how to How to check CFG2HTML for Linux servers?
I am new for OS end.
Thanks,
Vivek. (4 Replies)
Discussion started by: Viv_kadam
4 Replies
4. Shell Programming and Scripting
hi all,
i write a script in ksh but i have a problem
I want to check the number of parameters
while ]
do
echo "Inserisci la macchina che vuoi restorare o scrivi fine per terminare lo script, puoi restorare" $a "client: "
read CLIENT
echo $CLIENT
the variable... (1 Reply)
Discussion started by: FrancescoIt
1 Replies
5. Shell Programming and Scripting
Hi
I have a script that reads a directory name, and then prints all de items in that directory. Now that works, but I want to check on the parameters to be sure that the user has write just 1 parameter, and if not, than the script closes. (7 Replies)
Discussion started by: hss
7 Replies
6. Shell Programming and Scripting
$ ls
monkey.txt
banana.csv
tree.txt
$ myscript monkey.txt tree.txt
All extensions ARE alike.
$ myscript *txt
All extensions ARE alike.
$ myscript monkey.txt banana.csv
All extensions are NOT alike.
$ myscript *
All extensions are NOT alike.
My brain has given up; what's the simplest... (11 Replies)
Discussion started by: cs03dmj
11 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I have a script that takes two parameters. I would check the script to run if these parameters are to null or come with the correct data.
If those parameters are to null, display a message, so if they come with two facts that are incorrect.
As you might see that?
Thx (1 Reply)
Discussion started by: pepeli30
1 Replies
8. IP Networking
Hi All,
I need an automation script to check the connectivity between 2 UNIX servers.
Could anybody please help in this regards?
regards,
janardhan (1 Reply)
Discussion started by: rjanardhan83
1 Replies
9. Shell Programming and Scripting
Is there a way to preform check if the parameters that was send with the command awk -f `file_name.awk` `input_file` before even it gets to the BEGIN section (i have tested a try to check in the BEGIN it doesn't let ,you must make it on the section that after the BEGIN) and then decide if the... (1 Reply)
Discussion started by: tal
1 Replies
10. UNIX for Advanced & Expert Users
Hi,
I need to check if rsh and rcp are enabled between to servers.
What is the command to check both ?
Servers :
SunOS 5.10 Generic_120011-14 sun4u sparc SUNW,Sun-Fire-V445
SA says that it is configured , so what setting I need to do ?
These must be enable for ORACLE id on... (1 Reply)
Discussion started by: reply2soumya
1 Replies