10-21-2004
suppressing keyboard input
Setup Info:
This User Id and Password mention below are being used with the ISQL command to connect to a sybase database so they are likely to not be the same as those that were signed on from the session.
Situation:
Using a korn shell, the shell prompts for a User Id and Password. During the execution, I'm okay with showing the User Id... but since someone could be looking over your shoulder when running the script... I'd like to be able to suppress the keys that the user is typing as they are entering their password.
So the problem is:
Need to be able to suppress the keys that are being pressed when the user is prompted... like when you enter your password when logging in. Does anyone know how I could do this?
Thanks,
Harold
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am developing a script that will run with '/bin/ksh' shell.
The script is intended to receive a password by keyboard input, but for security reasons I would like to hide what the user is typing.
The keyboard input is being caught by 'read' command.
exmaple :
echo "Please type your new... (1 Reply)
Discussion started by: marianor31
1 Replies
2. Programming
Hi,
I need a way to detect the up and down arrow key inputs for my program. I do not want to wait for the return key to be entered(so that rules out getch() and family). Also I need to process several of these inputs in parallel, by servicing each request with a thread.
Is that possible?
... (4 Replies)
Discussion started by: ravneetd
4 Replies
3. Programming
Does anyone know how do you determine the user idle time of STDIN in order to log the user out for being idle too long. I would like to write a c program to do this but I it is not clear upon how to determine idle time from keyboard input. I have found that the "who.c" source file uses the last... (4 Replies)
Discussion started by: cpaquette
4 Replies
4. Shell Programming and Scripting
How would I change up a script that currently has something like:
bash script
echo what's 1 2 3 4?
then using read 1 2 3 4
I type 1 2 3 4.
so in the script i can do stuff like
echo $1 $2 $3 $4
and such...
i was just doing echo "1 2 3 4"|bash script
But was wondering how could I... (5 Replies)
Discussion started by: biopulse
5 Replies
5. Shell Programming and Scripting
> sed ''
Hello
hi
Hello output
How
hi output
^D
How
>
sed should take each line as input, process and output the result. In the above scenario the input is passed from keyboard and the output of 'Hello' as you can see is displayed on the screen after 'hi' is passed as input but not as... (1 Reply)
Discussion started by: loggedin.ksh
1 Replies
6. Shell Programming and Scripting
Hey guys, first post! I want to write a script that will wait 1 second and then input the keys CTRL+ALT+J to the application i just opened.
The program is dosbox, and thay key combination starts video recording :) I have no idea how to program this, can anyone help please?
thanks in advance! (2 Replies)
Discussion started by: brunobliss
2 Replies
7. Shell Programming and Scripting
Hello,
i`m trying to create an network monitoring script and i dont know how to make affect that script by pressing an key from keyboard and that script runs not in while or for or any other loop, but with bash command watch
for example: i have created an file (for example check) with content... (0 Replies)
Discussion started by: bacarrdy
0 Replies
8. Shell Programming and Scripting
Hi,
I am working on a script, which requests users to enter input.
Ex: read -p "Please enter your email id:" email
I don't want users skipping this entry, this has to be mandatory.I dont want to proceed without input.
I can do a check if variable $email is empty and proceed if not.But, i... (7 Replies)
Discussion started by: aravindadla
7 Replies
9. Programming
I would like to make a function or command that checks for keyboard input without interrupting the program and exits the program when a key is pressed (perhaps the 'q' key).
The program below monitors and prints/executes commands upon a change in primary (mouse selection) or clipboard buffer. If... (4 Replies)
Discussion started by: bedtime
4 Replies
10. Shell Programming and Scripting
I would like a script that would run pm-suspend if there has been no keyboard or mouse input for a specified time.
------ Post updated at 11:17 AM ------
Never mind. I found a setting in power management that does what I need. (0 Replies)
Discussion started by: drew77
0 Replies
VTYSH(1) Version 0.96.5 VTYSH(1)
NAME
vtysh - a integrated shell for Quagga routing software
SYNOPSIS
vtysh [ -b ]
vtysh [ -E ] [ -d daemon ] ] [ -c command ]
DESCRIPTION
vtysh is a integrated shell for Quagga routing engine.
OPTIONS
Options available for the vtysh command:
-b, --boot
Execute boot startup configuration. It makes sense only if integrated config file is in use (not default in Quagga). See Info file
Quagga for more info.
-c, --command command
Specify command to be executed under batch mode. It behaves like -c option in any other shell - command is executed and vtysh exits.
It's useful for gathering info from Quagga routing software or reconfiguring daemons from inside shell scripts, etc. Note that mul-
tiple commands may be executed by using more than one -c option and/or embedding linefeed characters inside the command string.
-d, --daemon daemon_name
Specify which daemon to connect to. By default, vtysh attempts to connect to all Quagga daemons running on the system. With this
flag, one can specify a single daemon to connect to instead. For example, specifying '-d ospfd' will connect only to ospfd. This
can be particularly useful inside scripts with -c where the command is targeted for a single daemon.
-e, --execute command
Alias for -c. It's here only for compatibility with Zebra routing software and older Quagga versions. This will be removed in
future.
-E, --echo
When the -c option is being used, this flag will cause the standard vtysh prompt and command to be echoed prior to displaying the
results. This is particularly useful to separate the results when executing multiple commands.
-h, --help
Display a usage message on standard output and exit.
ENVIRONMENT VARIABLES
VTYSH_PAGER
This should be the name of the pager to use. Default is more.
FILES
/usr/local/etc/vtysh.conf
The default location of the vtysh config file.
/usr/local/etc/Quagga.conf
The default location of the integrated Quagga routing engine config file if integrated config file is in use (not default).
WARNING
This man page is intended to be a quick reference for command line options. The definitive document is the Info file Quagga.
SEE ALSO
bgpd(8), ripd(8), ripngd(8), ospfd(8), ospf6d(8), isisd(8), zebra(8)
BUGS
vtysh eats bugs for breakfast. If you have food for the maintainers try http://bugzilla.quagga.net
AUTHORS
See http://www.zebra.org and http://www.quagga.net or the Info file for an accurate list of authors.
Quagga VTY shell 27 July 2006 VTYSH(1)