10 More Discussions You Might Find Interesting
1. AIX
how to run a command, such as "ls -l core" from one lpar to check multi lpars if core file exist?
or what way can do a command on all lpars from one lpar?
Thanks (1 Reply)
Discussion started by: rainbow_bean
1 Replies
2. Shell Programming and Scripting
( sleep 3
echo ${LOGIN}
sleep 2
echo ${PSWD}
sleep 2
while read line
do
echo "$line"
PID=$?
sleep 2
kill -9 $PID
done < temp
sleep 5
echo "exit" ) | telnet ${HOST}
while is executing only command and exits. (5 Replies)
Discussion started by: sooda
5 Replies
3. Shell Programming and Scripting
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)
Discussion started by: 4dirk1
4 Replies
4. Shell Programming and Scripting
Hello,
I am trying to learn how to pass something more than a one-command startup for gnome-terminal.
I will give an example of what I'm trying to do here:
#! /bin/bash
#
#TODO write this for gnome and xterm
USAGE="
______________________________________________
${0##*/}
run... (0 Replies)
Discussion started by: Narnie
0 Replies
5. Shell Programming and Scripting
Hi all,
I found like top command could be used to find the Memory and CPU utilization. But i want to know how to find the Memory and CPU utilization for a particular user using top command.
Thanks in advance.
Thanks,
Ananthi.U (2 Replies)
Discussion started by: ananthi_ku
2 Replies
6. UNIX for Dummies Questions & Answers
Hi guys,
how would I find out if the command/script exists on the system ( HP-UX, Linux ) and if it does run it so it would display the output?
lets say I can do
which any-command
and if it finds any-command I want to run it ...
I can use echo $? to see what the which command... (2 Replies)
Discussion started by: mirusko
2 Replies
7. UNIX for Dummies Questions & Answers
Hi.
I'm trying to get my find command to only search in the directory i tell it to, but i don't want it to search in the sub directories as well...
For example, i have a /data/files/ and /data/files/old
I want to search for all .sav files within /data/files but i don't want it to drill... (4 Replies)
Discussion started by: Stephan
4 Replies
8. UNIX for Dummies Questions & Answers
Dear Unix Guru,
I have several directories as below
/home/user/
dir1
dir2
dir3
Each directory has different size. I want to print each directory size (Solaris command du -hs .)
Can you please guide me how to achieve this?
Thanks
Bala (2 Replies)
Discussion started by: baluchen
2 Replies
9. UNIX for Dummies Questions & Answers
how to schedule a command to run after 30 mins ? (3 Replies)
Discussion started by: gridview
3 Replies
10. Shell Programming and Scripting
I want to get the file which created the error when the find command was run ?
I am wrote a script to mail a list of files whose file size is ge than 0 and returns 0
but wen it finds a folder with only empty files it exits as 1. i need to modify it so that the return for this is also 0 (but it... (1 Reply)
Discussion started by: guhas
1 Replies
AMIN(1) General Commands Manual AMIN(1)
NAME
amin - notify writers that you are busy
SYNOPSIS
amin [-ynesp] command [args...]
DESCRIPTION
Amin is used when you don't want to be written while running a command. It runs the command given normally. If your message permissions
(see mesg(1)) are off, it does nothing much else. If your messages are on, people writing you with write(1) will be warned that you are
running that command and will be given the opportunity to change their minds about writing you.
The -n option may be used to turn your messages entirely off for the duration of the execution of command. People writing you will get
"Permission denied". The -y option turns your message permissions on for the duration of the execution of the command. The -e may be used
after either -n or -y to indicate that the logins listed in the .yeswrite or the .nowrite files respectively are exceptions to the message
permissions set. The default is -s which leaves your message permissions in their original state. In any case, after the command is com-
plete, your permissions will be restored to the original state.
The -p flag causes all telegrams sent to you while the command is running to be saved. They are displayed as soon as the command is com-
plete. If used with the -n flag, writes are refused, but telegrams are still saved.
If you have designated yourself as a helper, you will still be marked on the finger(1) output as a helper while you are running amin but
people doing ``write help'' will not be connected to you, even if you have the helper flag set to ``Y''.
AUTHOR
Jan Wolter
FILES
/etc/wrttmp to find message permissions
/etc/utmp to find user
SEE ALSO
mesg(1), finger(1), write(1), huh(1).
7th Edition July 1, 1991 AMIN(1)