10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
This is a script which to create an opvn user, I want which answer automatically to a certain part so, I try this, it works without the red part but I must type manually.. :
## Environnement ##
## Paths ##
rsa_dir="etc/openvpn/easy-rsa"... (10 Replies)
Discussion started by: Arnaudh78
2. Shell Programming and Scripting
I am looking for a way to start a script and have it prompt for a password that will be used later on in the script to SSH to another host and to SFTP. I don't want the password to be hard coded. Below is my script with the actual IP's and usernames removed.
#!/usr/bin/expect -f... (2 Replies)
Discussion started by: jbrass
3. Shell Programming and Scripting
Is the below correct syntax for if the user enters something other than "GJB2 or MECP2, or PHOX2B", then they are shown on the screen format.txt and allowed to enter in one of those formats? Thank you :).
Basically, the user can see which formats are allowed and enter a variant while viewing... (7 Replies)
Discussion started by: cmccabe
4. Shell Programming and Scripting
I have a command for example /abc/def/ghi.jkl Filename filename1.
If I run this command, it will ask for y/N which I have to type manually.
Now Im trying to automate it using shell script and input the y option.
Please help me on doing this.
Thanks in advance. ... (7 Replies)
Discussion started by: Sathya83aa
5. Shell Programming and Scripting
have three big data file, however I just need to see the mentioned below one line form the all the file which has SERVER_CONNECTION Value
export... (1 Reply)
Discussion started by: Nsharma3006
6. Shell Programming and Scripting
i have written a script to ask input from the user.
this script should promote the user for y/n input. if user enters anyother input then y/n
the script promotes him again. this below code is working fine for all the cases.
except for space and enter " if i give space and enter it is... (2 Replies)
Discussion started by: BHASKARREDDY006
7. Shell Programming and Scripting
I have a file like so:
Frank Peter Tony Robert Mike 1 2 3 4 5 5 4 2 3 1 4 3 1 5 2
My out should look like this:
and so on....
I have the first part done to ask the user to... (8 Replies)
Discussion started by: bombcan1
8. Shell Programming and Scripting
Question in perl
i'm creating a script to take from user a different inputs one of them is the carriage return .. so that i want to make an if condition if the user hit enter key the user will go to previous step
it something like that
chomp ($input = <STDIN>);
if ($input =~... (3 Replies)
Discussion started by: doubando
9. Shell Programming and Scripting
how to wrote a script that reads an input from the reader (dir name) and then answer yes to all questions in the script unless the answer to any of the questions contains a certain string?
$] script.sh dir_name
$] question_1: (answer should be y right after the question is echoed,... (3 Replies)
Discussion started by: faizlo
10. Shell Programming and Scripting
I do the following :
]echo "Do you want to say yes or no ?(y/n):\c"
here 'n' is the default value.that means if the user press ENTER key then it should be 'n' .
Now how do i know that the user has pressed ENTER key.What will be stored in my variable 'ans'. (4 Replies)
Discussion started by: sars