02-09-2017
Thanks both of you. It worked .I wonder things are so simple for you guys
8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
At work, we use a software development product (from a company that will remain nameless, but whose name may be considered a synonym for "logical"). The development trees are organized beneath a top directory, let's call it "$rat". The first level under $rat contains the major system names, and... (2 Replies)
Discussion started by: criglerj
2 Replies
2. UNIX for Dummies Questions & Answers
Hello
im looking for sites or tutorials how to extend vi (not vim) for
programming and scripting beyond simple editing .
Thanks allot (0 Replies)
Discussion started by: umen
0 Replies
3. Shell Programming and Scripting
Hello All,
I am getting error while passing a folder name that has space to the cmd line argument.
sh log_delete2.sh "/home/kumarpua/TESTARTIFACTS/atf-chix/ATF-subversion-dev/ssenglogs/A RM"
log_delete2.sh: line 17: cd: /home/kumarpua/TESTARTIFACTS/atf-chix/ATF-subversion-dev/ssenglogs/A:... (3 Replies)
Discussion started by: pulkit
3 Replies
4. Shell Programming and Scripting
Hi Guys,
I have a script that I am using to convert some text files to xls files. I create multiple temp. files in the process of conversion. Other than reducing the temp. files, are there any general tricks to help speed up the script?
I am running it in the bash shell.
Thanks. (6 Replies)
Discussion started by: npatwardhan
6 Replies
5. UNIX for Dummies Questions & Answers
Hello, I find a trick to avoid pressing ESC without key-maping in vim. I am pleasure using this method, because ALT key is very comfortble for thumb to press.
What's the trick? the ALT key.
When you are in INSERT mod, press
ALT+l switch to COMMAND mod without... (2 Replies)
Discussion started by: vistastar
2 Replies
6. UNIX for Dummies Questions & Answers
Hi,
We used to use the below commands often.
ps -ef|grep bc
ps -ef|grep abc|grep -v grep
Both fairly returns the same result.
For example, the process name is dynamic and we are having the process name in a variable, how we can apply the above trick.
For example "a" is the... (11 Replies)
Discussion started by: pandeesh
11 Replies
7. Programming
HI Guys ,
Below are the two columns ITEMS and STATE of table .
ITEMS STATE
'2345','ggdh','k5tg','dgyt','hFF' DF
'1234','ghyt','DDD','GHTD','ABF' PQ
Can we get output in PL/SQL in below way ?... (7 Replies)
Discussion started by: Perlbaby
7 Replies
8. UNIX for Dummies Questions & Answers
Hi all,
It does not seem to be possible to use vi to search from text from line n forward or backward or is there a not well known vi trick to do that?
What I am trying to do is for example I am on line 100 and I want to search from line 100 backward or forward for a specific text. Using /... (3 Replies)
Discussion started by: newbie_01
3 Replies
LEARN ABOUT OSX
pridist.d
pridist.d(1m) USER COMMANDS pridist.d(1m)
NAME
pridist.d - process priority distribution. Uses DTrace.
SYNOPSIS
pridist.d
DESCRIPTION
This is a simple DTrace script that samples at 1000 Hz which process is on the CPUs, and what the priority is. A distribution plot is
printed.
With priorities, the higher the priority the better chance the process (actually, thread) has of being scheduled.
This idea came from the script /usr/demo/dtrace/profpri.d, which produces similar output for one particular PID.
Since this uses DTrace, only users with root privileges can run this command.
EXAMPLES
This samples until Ctrl-C is hit.
# pridist.d
FIELDS
CMD process name
PID process ID
value process priority
count number of samples of at least this priority
BASED ON
/usr/demo/dtrace/profpri.d
DOCUMENTATION
DTrace Guide "profile Provider" chapter (docs.sun.com)
See the DTraceToolkit for further documentation under the Docs directory. The DTraceToolkit docs may include full worked examples with ver-
bose descriptions explaining the output.
EXIT
pridist.d will sample until Ctrl-C is hit.
SEE ALSO
dispadmin(1M), dtrace(1M)
version 0.90 Jun 13, 2005 pridist.d(1m)