Is there a way to make the input of the read command (or some similar command that I'm unaware of) not visible, or with an astrix??
An example:
Where the read input is, instead of seeing "John" being typed, it is blank, or with some non-alphabetical filler.
I'm just curious is this is possible.
'Morning
vmstat 1 1|sed 1,2d|awk '{printf("%s\n",$1)}'|read var
echo $var
This syntax run on AIX (ksh) but not on linux (bash).
I think that problem is the read command, because the following syntax is ok :
vmstat 1 1|sed 1,2d|awk '{printf("%s\n",$1)}'
Could someone help me!
regards... (16 Replies)
I have file which is space filled likE below
Note: here spaces are replaced by |.
When I use read command to read this file all the spaces are truncated only the default space is not removed. The output is
Note: here spaces are replaced by |.
Can this default truncation be override? (4 Replies)
hi all
iam not able use read command in the while loop in the following program
while read line
do
echo $line
echo "enter name"
read name
echo "your have entered $name"
done < work.txt
THE READ COMMAND INSIDE THE WHILE LOOP IS NOT WORKING, IS ANY OTHER WAY TO SOLVE THIS... (7 Replies)
Is there a way to use the READ command and force the user to enter a non-zero length string? If the user enters a zero length string the user input is rejected.
code:
print "what is the answer: \n"
read answer (2 Replies)
Hi everyone,
I have problem while writing a shell script for linux (Red Hat).
First I need to create a read command. I tried to google this but so far I can't sort this out. I hope you will be able to help me.
I have to read a file like this :
GESTION_DATA_SET_variable1_variable2
... (2 Replies)
Hey, guys!
Trying to research this is such a pain since the read command itself is a common word. Try searching "unix OR linux read command examples" or using the command substitution keyword. :eek:
So, I wanted to use a command statement similar to the following.
This is kinda taken... (2 Replies)
Hello guys,
I am trying to a script that reads from key board and use the entered value in the next step.
Example: enter folder name
read $folder (i will give work)
cd /main/$folder/
pwd
it should print /main/work
---------- Post updated at 03:31 PM ----------... (1 Reply)
Hi,
I am facing issues with the below:
I have a lookup file say lookup.lkp.This lookup.lkp file contains strings delimited by comma(,).
Now i want to read this command from file and execute it.
So my code below is :
Contents in the lookup.lkp file is :
c_e,m,a,`cd $BOX | ls cef_*|tail... (7 Replies)
Trying to use the read command. How do you add a 2nd option? In this example I'd like to offer two options, pre and post. If you answer pre, you get one output but if you answer post, you get another output.
echo Is this pre or post?
read pre
if
then echo You have typed pre.
fi (6 Replies)
Discussion started by: jimmyf
6 Replies
LEARN ABOUT DEBIAN
openipmish
openipmish(1) Shell interface to an IPMI system openipmish(1)NAME
openipmish - Shell interface to an IPMI system
SYNOPSIS
openipmish [option]
DESCRIPTION
The openipmish is a command interpreter that gives the full power of the OpenIPMI library to a user-level command language. It is designed
so it can easily be driven with a scripting language like TCL, it has well-formed output.
openipmish starts up with no connections or anything of that nature. You must enter commands to make connections to domains.
OPTIONS --dmsg Turn on message debugging, this will dump all messages to debug log output.
--drawmsg
Turn on raw message debugging, this will dump all low-level messages to debug log output. This differes from normal message debug-
ging in that all protocol messages are also dumped, not just IPMI messages.
--dmem Turn on memory debugging, this will cause memory allocation and deallocations to be checked. When the program terminates, it will
dump all memory that was not properly freed (leaked).
--dlock
Turn on lock debugging, this will check lock operations to make sure that locks are help in all the proper places and make sure that
locks are properly nested.
--snmp Enable the SNMP trap handler. openipmish must be compiled with SNMP code enabled for this option to be available.
--help Help output
COMMANDS
openipmish follows the standard command syntax defined in ipmi_cmdlang(7). See that for the details on most commands. The IPMI manual
that comes with OpenIPMI will also be quite handy.
openipmish defines some commands that are not in the standard command language. These are:
read Read and execute commands from the given file.
exit Quit
redisp_cmd on|off
Normally, openipmish redisplays the command line when an event comes in. This is nice for interactive use, but bad for scripting.
This lets you turn that function on and off.
SEE ALSO ipmi_cmdlang(7), ipmi_ui(1)KNOWN PROBLEMS
None
AUTHOR
Corey Minyard <cminyard@mvista.org>
OpenIPMI 05/13/03 openipmish(1)