9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Guys,
In my script i need to sleep for some seconds till the previous command exeuction is successful
#!/bin/bash
cp test.txt /direct/sub_dir
if ; then
echo "file copied"
else
echo "file not copied"
sleep 5
exit 1
fi
i need to sleep for 5 seconds if the copy command... (7 Replies)
Discussion started by: Master_Mind
7 Replies
2. Shell Programming and Scripting
Tested on : bash
Will be implementing on : ksh
I dont know if this is weird , or my idea of Unix stdin or stdout is completely messed up , but if I use the following command, I am getting a proper output.
ls -l | head -1 | while read a ; do echo $a ;done
and the output is soemthing like... (5 Replies)
Discussion started by: kumarjt
5 Replies
3. UNIX for Dummies Questions & Answers
I want to know the total cpu usage(in %ge)of unix server like windows
(NOTE :-not each process cpu usage)
Its urgent...plzzzz help me.... (1 Reply)
Discussion started by: rohit kataria
1 Replies
4. Shell Programming and Scripting
My project is to write a script to get/put data to another server, be able to log input and output files, have some sort of security for the password, and any errors connecting send a email to a group of people.
I've seen examples of perl, java being called by Unix scripts, etc. I've even seen... (1 Reply)
Discussion started by: gavineq
1 Replies
5. AIX
How to monitor the IBM AIX server for I/O usage, memory usage, CPU usage, network usage, storage usage? (3 Replies)
Discussion started by: laknar
3 Replies
6. HP-UX
how can I find cpu usage memory usage swap usage and
I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times
my final destination is monitor process
logical volume usage above X % and number of Logical voluage above
can I not to... (3 Replies)
Discussion started by: alert0919
3 Replies
7. Shell Programming and Scripting
hi all,
i am trying to figure out what exactly does this chunk of code which sits in a shell script does. Am not very good at scripting so could someone explain what the below is/does ?? its a ksh (i.e #!/bin/ksh) and sits on a solaris 9 box.
REFRESH=FALSE
((C=0))
while getopts... (2 Replies)
Discussion started by: cesarNZ
2 Replies
8. Shell Programming and Scripting
Hi,
Please let me know how do we write a piece of code to find the disk usage in UNIX (3 Replies)
Discussion started by: Shilpi
3 Replies
9. UNIX for Dummies Questions & Answers
Could anybody tell me which command I should use to see
how many percentage or something from the processor is used by various programs?
Thanx in Advance!
Erik:D (4 Replies)
Discussion started by: Erik Rooijmans
4 Replies