To do this you can use the below command:
Then whenever you enter command 'up' (you can change this but I used up to stand for username password) - it will call your script.
If you put the alias in your .profile then it will be set each time you log on.
Hi all,
I have done ssh-keygen to two servers in work place and given there entry for authorized_keys. I m able to ssh to other servers without asking password. But i face problem while trying to run a command or script on other server. It is throwing an Error.
$ ssh... (4 Replies)
I hope someone can shed any light on this mystery.
I am trying to run the following command:
su userID -c
remsh server -l userid -n "awk -F^ '\$4 == \"SMITH\"' /tmp/infromational/version74b/LIVE/TEMPORARY/ABCfiles/HLC_Database_File.bat|head -1" > /tmp/variant/45BV32/var/store13.logfnd
I... (15 Replies)
Hi everyone,
when executing this command in unix:
echo "WM7 Fatal Alerts:", $(cat query1.txt) > a.csvIt works fine, but running this command in a shell script gives an error saying that there's a syntax error.
here is content of my script:
tdbsrvr$ vi hc.sh
"hc.sh" 22 lines, 509... (4 Replies)
Hi
I, essentially have two parts in my script. The first ftp's to server S10 and retrieves a batch of files. The second part does the crunching and arranging, They both work independently but when run all in sam script I cannoy get 2nd part to run, i.e. the cat, cut & sed. I think it may be... (10 Replies)
Hey, I am trying to write a script that will open all of my session windows, and then secure shell into the appropriate server in the new windows. Seems simple, but I cant get it to work! Please help! :confused: (1 Reply)
Hi,
Not sure what the issue is here, but when i run the script. A simple copy command, it does not find the cp command ? See scrpt below :
#!/bin/sh
set -x
#############################################
# Backup Processes #... (4 Replies)
Dear All,
Writing a script in which I want to run a command in background and keep it running even script is finished.
I have tried like below,
`truss -p <pid> >> & /tmp/log &`
But doesnt work.. script goes running and nothing in log file. (7 Replies)
Hello,
Please i'd like to run command in a script shell , how can i do ?
here my commands :
cd blcr-build // run command in this rep
sudo insmod ./blcr_imports/kbuild/blcr_imports.ko //root
sudo insmod ./cr_module/kbuild/blcr.ko //root
Thank you. (1 Reply)
Hi,
I have run a lot of commands one after one,
but I can't run them simultaneous.
One command has to run and when finished second command has to run etc.
Also I would like to save all the outputs created by the commands in a file.
The commands can sometimes take hours, so it is also... (10 Replies)
Discussion started by: misterx12345
10 Replies
LEARN ABOUT HPUX
praliases
praliases(1) General Commands Manual praliases(1)NAME
praliases - print system-wide sendmail aliases
SYNOPSIS
file] file] [key ...]
DESCRIPTION
prints out the contents of the alias data base used by to resolve system-wide mail aliases. The alias data base is built with the command
or See sendmail(1M).
The options are:
Read the configuration file specified with this option instead of the default configuration file.
Accesses the alias database built from
file with the command
If this option is not used, accesses the database built from the default alias file
Note that accesses the database, not the alias file itself. If the alias file has changed since the alias database was last built, natu-
rally the output of cannot match the contents of the alias file.
Each key argument, if any, is looked up in the alias database. prints out the aliases to which each key expands in the form:
where mailing list can be a comma-separated list of addresses to which the key resolves.
Note
can be used by privileged users only.
RETURN VALUE
The utility exits with 0 on success, and >0 if an error occurs.
DIAGNOSTICS
key was not found in the alias database.
EXAMPLES
The output reveals that is aliased to is aliased to and that there is no alias for the key
WARNINGS
Because supports NIS aliases, some NIS key-words may appear in the output. These key-words, which include and may be safely ignored; they
merely indicate that is properly updating the alias database.
AUTHOR
was developed by the University of California, Berkeley.
FILES
default alias file
default alias database
SEE ALSO sendmail(1M).
praliases(1)