01-15-2015
I don't think that's the process name but the command that ran the process. Try ps -eocommand
10 More Discussions You Might Find Interesting
1. Solaris
Hello All,
I am quite new to Solaris.
Can someone tell me what's the equivalent of HP-UX ps -efx on Solaris? It basically displays the whole command, instead of te first 80 characters of the command.
I need that to differentiate among multiple Weblogic processes where all the specifics... (1 Reply)
Discussion started by: usfrog
1 Replies
2. Solaris
I'm currently fixing a bug in a C program in which I need to check to make sure another specific application is up and running before continuing.
Are there any SunOS API functions that can provide me with a list of currently running processes on the system? I'd like to avoid using 'ps' with a... (1 Reply)
Discussion started by: jalburger
1 Replies
3. UNIX for Advanced & Expert Users
Hello Community,
I've got a unix server and 13 pcs with windows. I'm trying to built some tiny winy app to monitorize the windows processes. Any one knows if exist some kind of pstools for unix to communicate with windows.
I'm the system administartor so I've got rights in all computers.
... (3 Replies)
Discussion started by: ncatdesigner
3 Replies
4. UNIX for Advanced & Expert Users
Hi all,
How can I get the list of all the processes that are either Orphan or Zombie or Running or Ended or Stopped ?
Please suggest !!
Thanks.
Varun:b: (2 Replies)
Discussion started by: varungupta
2 Replies
5. AIX
Hi Expert,
Can anyone tell what command can list the resources used for each process in AIX, including the following columns:
Process ID, Program Name, Resources used(CPU,RAM,SWAP),Start Time
Thanks!!
Victor Cheung (3 Replies)
Discussion started by: victorcheung
3 Replies
6. UNIX for Dummies Questions & Answers
Hi,
How to list the processes which are created in last 7 days ?
Is there any script or command, please reply ASAP.
Thanks
Rajesh (2 Replies)
Discussion started by: rajesh08
2 Replies
7. UNIX for Dummies Questions & Answers
i read in ps manual that -C cmdlist will just result to processes stated in the cmdlist. i intend to issue this command
ps c -FC "firefox-bin, soffice.bin"
here cmdlist contains two executables only. in the future, this cmdlist will grow. is there a way i can make ps read a csv file as... (2 Replies)
Discussion started by: mbaste2
2 Replies
8. Shell Programming and Scripting
i want to list which process using how many cpu ,but i must be list cpu rate and process name,not only PID
how can i do? (5 Replies)
Discussion started by: utoptas
5 Replies
9. Shell Programming and Scripting
Hi,
I need an output of process running on server, i am executing
ps -ef | grep test
output is
asak 22362 1 0 Nov07 ? 00:00:03 /usr/software/bin/perl-5.8.8 /u/assk/bin/test -v none JOBID=2012117
asak 23748 22362 0 Nov07 ? 00:00:00 /usr/software/bin/perl-5.8.8... (3 Replies)
Discussion started by: asak
3 Replies
10. Shell Programming and Scripting
Most of the code I've seen is been listing processes or capturing process ids, etc. But here's what I need to do. Preferably in Korn shell.
1. do a ps -ef |grep tns |grep -v grep
in order to get a list or Oracle listeners that are running.
2. parse the line into components which... (7 Replies)
Discussion started by: MRMonteith
7 Replies
LEARN ABOUT OPENSOLARIS
lastcomm
lastcomm(1) User Commands lastcomm(1)
NAME
lastcomm - display the last commands executed, in reverse order
SYNOPSIS
lastcomm [-f file] [-x] [command-name] ... [user-name] ...
[terminal-name] ...
DESCRIPTION
The lastcomm command gives information on previously executed commands. lastcomm with no arguments displays information about all the com-
mands recorded during the current accounting file's lifetime. If called with arguments, lastcomm only displays accounting entries with a
matching command-name, user-name, or terminal-name. If extended process accounting is active (see acctadm(1M)) and is recording the appro-
priate data items, lastcomm attempts to take data from the current extended process accounting file. If standard process accounting is
active, lastcomm takes data from the current standard accounting file (see acct(2)).
If terminal-name is `- -', there was no controlling TTY for the process. The process was probably executed during boot time. If terminal-
name is `??', the controlling TTY could not be decoded into a printable name.
For each process entry, lastcomm displays the following items of information:
o The command name under which the process was called.
o One or more flags indicating special information about the process. The flags have the following meanings:
F The process performed a fork but not an exec.
S The process ran as a set-user-id program.
o The name of the user who ran the process.
o The terminal which the user was logged in on at the time (if applicable).
o The amount of CPU time used by the process (in seconds).
o The date and time the process exited.
OPTIONS
The following options are supported:
-f file Uses file as the source of accounting data. file may be either an extended process accounting file or a standard process
accounting file.
-x Uses the currently active extended process accounting file. If extended processing accounting is inactive, no output will be
produced.
EXAMPLES
Example 1 Listing executions of named commands
The command
example% lastcomm a.out root term/01
produces a listing of all the executions of commands named a.out by user root while using the terminal term/01.
Example 2 Listing all user commands
The command
example% lastcomm root
produces a listing of all the commands executed by user root.
FILES
/var/adm/pacct standard accounting file
/var/adm/exacct/proc extended accounting file
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWesu |
+-----------------------------+-----------------------------+
SEE ALSO
last(1), acctadm(1M), acct(2), acct.h(3HEAD), sigvec(3UCB), core(4), attributes(5)
SunOS 5.11 10 Jan 2000 lastcomm(1)