IF you're only going to run install within the outer script (ie, . ./install)...and not retain any environment settings afterward AND install isn't launching it's own shell within...you might just alias more to be cat early on in your outer script, and then unalias it before you'd exit (ie, alias more='cat' ... unalias more; exit ).
This might force the inner script to follow the alias, and not require any manual edits to the vendor script...
Lemme know...I'm curious. Should equate to something like the following example:
without pressing the enter key ..manually...
how can we read the enter key ..from the shell script..so that the script termintes automatically.
eg:
telnet a.b.c.d xxxx
now " how to read the enter key" tho terminate the script (1 Reply)
for automating telnet using shell script.....
as we enter alphabetic characters inside shell script...how can we do the same for the enter key......Is there any character for the enter key
so the enter key need not be pressed manually...... (3 Replies)
Hi,
I have a script in which i have to ask user to press the ENTER key to proceed further. can you please help me how can i achive this in my scripting?
echo "All the executables builded Successfully "
echo " Press Enter to Go Back to the Main Menu"
... (2 Replies)
I'm working on making a menu system on an HP-UX box with Bash on it. The old menu system presents the users with a standard text menu with numbers to make selections. I'm re-working the system and I would like to provide something more akin to iterative search in Emacs.
I have a list of 28... (2 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've bash script thats working...
but now i need to add a line....that prompts for user input....like yes and 1 as complete install....
so here's how it looks...
$ cd 9200 (cd into directory)
$./install (hv to type ./install to run install then ask for)
----do you want to... (4 Replies)
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)
I have a script in which we have used nohup. Once script is executed it will be terminated only when enter key is pressed. I want the script to be terminated without pressing enter key
nohup imqbrokerd -name user_id port 2>1 1>$home_`date` &
I am a newbie to shell, Kindly please help (3 Replies)
Discussion started by: Suganbabu
3 Replies
LEARN ABOUT OSF1
unalias
unalias(1) General Commands Manual unalias(1)NAME
unalias - Removes alias definitions
SYNOPSIS
unalias alias-name...
unalias -a
Note
The C shell has a built-in version of the unalias command. If you are using the C shell, and want to guarantee that you are using the com-
mand described here, you must specify the full path /usr/bin/unalias. See the csh(1) reference page for a description of the built-in com-
mand.
STANDARDS
Interfaces documented on this reference page conform to industry standards as follows:
unalias: XCU5.0
Refer to the standards(5) reference page for more information about industry standards and associated tags.
OPTIONS
Removes all alias definitions from the current shell execution environment.
OPERANDS
The name of an alias to be removed.
DESCRIPTION
The unalias utility removes the definition for each alias name specified. The aliases are removed from the current shell execution environ-
ment.
EXIT STATUS
The following exit values are returned: Successful completion. One of the alias-name operands specified did not represent a valid alias
definition, or an error occurred.
ENVIRONMENT VARIABLES
The following environment variables affect the execution of unalias: Provides a default value for the internationalization variables that
are unset or null. If LANG is unset or null, the corresponding value from the default locale is used. If any of the internationalization
variables contain an invalid setting, the utility behaves as if none of the variables had been defined. If set to a non-empty string
value, overrides the values of all the other internationalization variables. Determines the locale for the interpretation of sequences of
bytes of text data as characters (for example, single-byte as opposed to multibyte characters in arguments). Determines the locale used to
affect the format and contents of diagnostic messages written to standard error. Determines the location of message catalogues for the
processing of LC_MESSAGES.
SEE ALSO
Commands: alias(1), csh(1)
Standards: standards(5)unalias(1)