function terminating if i give input as space or no input and enter
HI
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 printing
echo "\n Goodbye ... !!!"
Any ideas
Moderator's Comments:
Please use code tags when posting data and code samples!
Last edited by vgersh99; 08-02-2012 at 11:57 AM..
Reason: code tags, please!
Hi,
I want to send input to promt from shell script, this thing is possible.
I give the one command
`/usr/share/ssl/misc/CA -newreq`
it needs some user input like password etc., but i need this input also from shell script but it does not works.
`/usr/share/ssl/misc/CA -newreq` <<EOF... (2 Replies)
Hi,
I have a perl script which prints me the epoch value of a specific date and time given.Now I want to proceed to a next step ie i want to give the input at the time of execution.
I have to initialise the date and time values in the script before executing it.But now i want to give the date... (3 Replies)
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?
example:
$] script.sh dir_name
$] question_1: (answer should be y right after the question is echoed,... (3 Replies)
Hi
I am stucked in the below script .I want to input with yes/no from the user and then execute the code inside if but it is not working .I just need the logic as where I am wrong so that i can use the same in my work .
then
echo "Hi All"
fi
].
Please suugest . (4 Replies)
hi experts
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)
Hi
I have a file like so:
Code:
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:
Peter
Tony
Mike
and so on....
I have the first part done to ask the user to... (8 Replies)
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
File 1
export SERVER_CONNECTION=//dvlna002:10001/SmartServer
File2
export SERVER_CONNECTION=///SmartServer
File3
export... (1 Reply)
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)
Hi ,
when i am logging to the server i need to give input of specific key like k or l or m etc. and then need to put enter. need to use this in script . please assist. (1 Reply)
Hi,
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.. :
#!/bin/bash
## Environnement ##
LC_ALL=C
## Paths ##
rsa_dir="etc/openvpn/easy-rsa"... (10 Replies)
Discussion started by: Arnaudh78
10 Replies
LEARN ABOUT REDHAT
wall
WALL(1) Linux User's Manual WALL(1)NAME
wall -- send a message to everybody's terminal.
SYNOPSIS
wall [ message ]
DESCRIPTION
Wall sends a message to everybody logged in with their mesg(1) permission set to yes. The message can be given as an argument to wall, or
it can be sent to wall's standard input. When using the standard input from a terminal, the message should be terminated with the EOF key
(usually Control-D).
The length of the message is limited to 20 lines.
NOTES
There is an undocumented (well not anymore..) option, "-n", that supresses the banner printed by wall . This is for usage by rwalld (8).
Wall will not allow you to use that flag if wall is installed set-group-id and the user executing wall is not root.
For every invocation of wall a notification will be written to syslog, with facility LOG_USER and level LOG_INFO.
ENVIRONMENT
Wall ignores the TZ variable - the time printed in the banner is based on the systems local time.
SEE ALSO mesg(1), rpc.rwalld(8).
AUTHOR
Miquel van Smoorenburg, miquels@cistron.nl
12 September 2000 WALL(1)