08-15-2009
performance variation between two commands
does it make any difference in terms of performance while using any of the below mentioned code for the same requirement which processes continuously coming files in the I/P directory .
Please provide ur viewws
ls -tr $SAPRESPONSEGOFILE | sed "s/go/dat/g" |
while read SAPRESPONSEFILES
do
echo "File is ${SAPRESPONSEFILES##*/}"
done
_____________________________________________________
for SAPRESPONSEFILES in `ls $SAPRESPONSEGOFILE | sed "s/go/dat/g"`
do
echo "file is ${SAPRESPONSEFILES##*/}
done
__________________________________________
10 More Discussions You Might Find Interesting
1. Programming
Hello all,
i've written a small piece of code that will read commands from standard input and executes the commands.
Its working fine and is execting the commands well. Accepting arguments too. e.g
#mkdir <name of the directory>
The problem is that its not letting me change the directory i.e... (4 Replies)
Discussion started by: Phrozen Smoke
4 Replies
2. News, Links, Events and Announcements
About 4 years ago I wrote this tool inspired by Rob Urban's collect tool for DEC's Tru64 Unix. What makes this tool as different as collect was in its day is its ability to run at a low overhead and collect tons of stuff. I've expanded the general concept and even include data not available in... (0 Replies)
Discussion started by: MarkSeger
0 Replies
3. UNIX for Dummies Questions & Answers
Hi,
Actually i wanted to check out the process time for the execution of commands on unix, i looking for the script which can include all commands which are to be executed on the system and i need to get the time for executing each command,
can somebody help me
Thanks & Regards
Murali (1 Reply)
Discussion started by: hsmuralidhara
1 Replies
4. Shell Programming and Scripting
I want to log into a remote server transfer over a new config and then backup the existing config, replace with the new config.
I am not sure if I can do this with BASH scripting.
I have set up password less login by adding my public key to authorized_keys file, it works.
I am a little... (1 Reply)
Discussion started by: bash_in_my_head
1 Replies
5. UNIX for Dummies Questions & Answers
hello,
does anyone know how to expand the column width so it could contain full USER cell and not cut it in top ? Now it has eleven symbols but I can see only eight
actualy I found only PID, PPID and %CPU columns variation possibilities in changelog (procps v.3.2.5).
thanks in advance. (1 Reply)
Discussion started by: bugs_moran
1 Replies
6. Solaris
Looking at the performance hit on my server, does it matter wich command I run?
client # rsh server tar –cf - . | tar –cv –f –
or
server # tar –cf – . | rsh client ‘cd target && tar –xv -f –‘
I think it doesn't really matter because both command strings involve a tar being run on... (4 Replies)
Discussion started by: petervg
4 Replies
7. AIX
Hi all,
I'm new in this forum.
I'm looking for the difference between the HACMP commands with the prefix "cl" and "cli".
The first type are under /usr/es/sbin/cluster/sbin directory and the second are under /usr/es/sbin/cluster/cspoc directory.
I know that the first are called HACMP for AIX... (0 Replies)
Discussion started by: peppix
0 Replies
8. UNIX for Dummies Questions & Answers
Hi
i have folder of 26 GB on server A and want to copy to server B .i used the below commands to check file size and scp copy
du -h /folder : its shows 26G on server A
from server B:
scp -r user@serverA:/folder/* ./copying got initiated and i am checking the file size on server B... (7 Replies)
Discussion started by: rakeshkumar
7 Replies
9. Shell Programming and Scripting
I have a file like this:
ASSPASVFETQY,hTRBV12-4,hTRBJ2-5,2
ASSPASTGGDYGYT,hTRBV18,hTRBJ1-2,2
ASSPASGDGYT,hTRBV5-1,hTRBJ1-2,2
ASSPASFPEDTQY,hTRBV27,hTRBJ2-3,2
ASSPARVNYGYT,hTRBV5-1,hTRBJ1-2,2
ASSPARTSGGLNEQF,hTRBV6-4,hTRBJ2-1,2
ASSPARQSYNEQF,hTRBV11-1,hTRBJ2-1,2... (4 Replies)
Discussion started by: xshang
4 Replies
10. UNIX for Dummies Questions & Answers
Hello,
I am writing a small one liner script to display the tables in my database.
I am working with Centos 5.5 and postgresql
the command is
"psql -c "\dt" | awk '{print$3}'"
I just want the 3rd column from the result set, but now the problem is I am getting the third column but with... (3 Replies)
Discussion started by: nnani
3 Replies
GONG(1) General Commands Manual GONG(1)
NAME
gong - evaluate process performance
SYNOPSIS
gong [-f] [-a] process-id
DESCRIPTION
Gong is used to evaluate the performance of a process that is in execution.
The process-id is the process number of the process whose performance is to be evaluated. The evaluation is performed by a set of three
``panelist'' routines, each of which analyzes one aspect (time, space, and tonality) of the performance of the process. If any of these
routines is not amused by the performance, the process being analyzed is sent the gong(2) signal. In addition, the process-id of the eval-
uated process is written on the standard gong, for possible future corrective action. (It is suggested that the standard gong be an audi-
ble alarm for proper effect.) It is expected that after being gong(2)ed, the process will promptly commit suicide.
The -f keyletter argument indicates that gong is to invoke flog(1) with the unmerciful argument if the process does not respond to
gong(2)ing. In the absence of this argument, the process is continuously gong(2)ed, which may lead to the process becoming a deaf zombie.
The -a keyletter argument indicates that if all three of the panelist routines gong(2) a process, the process should be unmercifully
flog(1)ged whether or not the -f keyletter is supplied.
FILES
/dev/ding.dong is the standard gong.
SEE ALSO
On the Applicability of Gonging to the Performance and Merit Review Process, Journal of Irreproducible Results, vol. 263, issue 19, pp.
253-307.
BUGS
If the named process does not exist, it is possible that gong will attempt an evaluation of itself, which may lead to a condition known as
compounded double ringing (see echo(1)). Therefore, it is recommended that gong be used with extreme care.
GONG(1)