07-31-2008
apptrace - for trace of library calls
dtrace - debugger, new in version 10
pargs - get list of arguments and environment variables with which process was started
pfiles - list of file descriptors, associated with process
pgrep - get the PID's of processes by name i.e. Something like ps -efl|grep -v grep|grep process_name
pkill - send signal to process. For example pkill -9 init :-P
pldd - list dynamic libraries, associated with process, similar to ldd for executable
plockstat - see list of locked by process files. Lock can be mutex i.e. exclusive and reader/writer for shared access
pmap - get memory map (segments) of process
preap - try to kick-off zombie process
prstat - fullscreen view of processes sorted by different criteria, similar to Linux top command
prun - continue hold with pstop process
ps - print process information and status. In Solaris exist SYSV and BSD variants, respectively /usr/bin/ps and /usr/ucb/ps
psig - list signals that can be handled by process
pstack - get backtrace stack of process for debugging purposes
pstop - temporary hold process
ptree - print the tree of processes
pwait - wait till process finish
pwdx - list working directory for process, like pwd command
truss - for trace system calls and signals
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am sorry, this is really trivial, yet I am not able to understand what the problem is!
I am using korn shell and running this script
#!/bin/ksh
keep=3
while ; do
echo $keep
keep=$(($keep-1))
done
I am getting this error: `keep=$' unexpected
I am not able to understand it because ... (1 Reply)
Discussion started by: Asty
1 Replies
2. Shell Programming and Scripting
Hi
How can I call a .sh (shell script) from a java procedure? Is this possible at all?
Please tell me.
Thanks.
Asty (3 Replies)
Discussion started by: Asty
3 Replies
3. UNIX for Advanced & Expert Users
Dear Friends,
OS: REDHAT ENTERPRISE LINUX ,nash version
I am facing a peculier type of problem.A bash script ran yesterday
does not run successfully today . Absolutely giving NO OUTPUT AT ALL.
We have migrated recently from redhat linux 9 to REDHAT ENTERPRISE
LINUX 4.4 recently .What... (3 Replies)
Discussion started by: vakharia Mahesh
3 Replies
4. Shell Programming and Scripting
hi,
I have 2 k-shell script a1.sh and T1.sh. I m running T1.sh from a1.sh and passing variable "i" to T1.sh.But i m getting error output.
a1.sh
-----------------------------------------------------
#!/bin/ksh
cd /ednadtu3/u01/pipe/logs
for i in Cleaner2 Cleaner1
do
count=0... (1 Reply)
Discussion started by: ali560045
1 Replies
5. Shell Programming and Scripting
sometimes while running a shell script we use ksh -c '....script'
what is the significance of ksh -c here ....
what if i run the script only.what is the difference (6 Replies)
Discussion started by: dr46014
6 Replies
6. Shell Programming and Scripting
I've been searching for a while and haven't found this answer anywhere.
How can I tell which shell is running my script from within the script? For example, I have lots of older scripts that we are porting to a new Linux system. Many of the scripts start with ":" alone on a line, which I think... (12 Replies)
Discussion started by: sbaker
12 Replies
7. Shell Programming and Scripting
I'm learning bash and have discovered that the shell can only work with integers and not decimals.
I'd like to run my scripts in korn to account for this, but just now, when I tried to run my script, I got an error message that said 'no such file or directory,' even though when I'm in the shell... (3 Replies)
Discussion started by: Straitsfan
3 Replies
8. UNIX for Dummies Questions & Answers
Hi ,
I Am Getting The Following Error When Executing Shell Script E32 :No File This Are Steps I Have Done For Running The .
1) VI Command So It Opened Vi Editor
2) VI FILENAME.KSH In The File I Have Written A Program Like Below
#!/bin/ksh
echo date
3):WQ For Quit And Save.... (5 Replies)
Discussion started by: anudeepkumar123
5 Replies
9. Shell Programming and Scripting
i found the following code off the web. its suppose to read large log files, efficiently. but i dont have an idea of how to run it. i know its C and you need to "compile". how do i compile it? and is it really necessary to compile?
/*
** File FILE_3.C
**
** Illustrates how to read from a... (2 Replies)
Discussion started by: SkySmart
2 Replies
10. Shell Programming and Scripting
Hi,
when iam running below command it is executing fine on my linux command prompt.
java -jar Efile.jar
but the same command iam using in Shell script it doesnt work and saying error
Unable to access jar files.
Flavour is Linux Redhat.
pls help (1 Reply)
Discussion started by: Riverstone
1 Replies
LEARN ABOUT OPENSOLARIS
script
script(1) User Commands script(1)
NAME
script - make record of a terminal session
SYNOPSIS
script [-a] [filename]
DESCRIPTION
The script utility makes a record of everything printed on your screen. The record is written to filename. If no file name is given, the
record is saved in the file typescript. See WARNINGS.
The script command forks and creates a sub-shell, according to the value of $SHELL, and records the text from this session. The script ends
when the forked shell exits or when Control-d is typed.
OPTIONS
The following option is supported:
-a Appends the session record to filename, rather than overwriting it.
NOTES
script places everything that appears on the screen in filename, including prompts.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
|CSI |Enabled |
+-----------------------------+-----------------------------+
SEE ALSO
attributes(5)
WARNINGS
script can pose a security risk when used in directories that are writable by other users (for example, /tmp), especially when run by a
privileged user, that is, root. Be sure that typescript is not a link before running script.
SunOS 5.11 30 Jan 2004 script(1)