Retrieving the full command


 
Thread Tools Search this Thread
Operating Systems HP-UX Retrieving the full command
# 1  
Old 05-18-2007
Retrieving the full command

Hi All,

I would like to retrieve the whole command that got executed for a running process rather than a truncated string, as a result of running ps -ef on HP-UX.

Please help.

TIA
# 2  
Old 05-19-2007
You can try using 'ps -elf'. It still will not give you the full command, though. Some commands (such as some java processes) will have huge command lines which the ps command cannot show. On Solaris you have /usr/ucb/ps, but it has no equivalent on HP-UX.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Retrieving previous command in a script

i know from the command line, the symbol $_ is used to get the last command that was run. however, id like to replicate this within a script. meaning, how do i do something like this: #!/bin/sh ps -ef | egrep talling StoreThisLastCommandA=$_ awk '/error/ {print $3}' /tmp/test... (5 Replies)
Discussion started by: SkySmart
5 Replies

2. UNIX for Dummies Questions & Answers

Full Color Command Line Menus

Hi all, Did a couple of Google searchs, a couple of searchs on the site here and didn't find an answer... But, maybe I'm not searching for the right phrases. My question; what creates the full color menus on the command line in unix? I'm looking for something that would replicate the... (3 Replies)
Discussion started by: jtollefson
3 Replies

3. Solaris

Command Full backup for Solaris

Guy's There is command in AIX called mksysb -i it's taking backup for all system , is there any similar command in Solaris doing the same thing in Solaris ? (8 Replies)
Discussion started by: ITHelper
8 Replies

4. Red Hat

ls command to give full path to files

How can i perform a ls or other command to list the full paths of files from a ls? Looked through the man page for ls, no luck $ cd /tmp/ $ ls -l total 6 drwx------ 2 root root 4096 Nov 7 2008 keyring-7b5rMv drwx------ 2 bcr bcr 4096 Dec 7 2007 keyring-cGhir8 $ I'd be looking for... (1 Reply)
Discussion started by: brendan76
1 Replies

5. Cybersecurity

Full Command Logging?

I am looking for a really good command logging tool to improve the auditing of my servers. I have previously used snoopy but this is currently a bit flaky and causing serious problems for me, it doesn't look like it's been maintained since 2004, it didn't even want to compile until I added -fPIC... (1 Reply)
Discussion started by: humbletech99
1 Replies

6. UNIX for Advanced & Expert Users

Retrieving command line arguments of a particular PID

hi The "ps" command shows the command line arguments of running processes: $ /bin/ps -o pid,args -e .... 26031 pico /tmp/crontab2KaG1Y 596 /usr/lib/sendmail -bd -q15m 9955 xterm -n 1 -sb -sl 800 -g 80+70+70 2627 /usr/sbin/snmpd -Lsd -Lf /dev/null -p /var/run/snmpd -a 1691 .... I... (2 Replies)
Discussion started by: Andrewkl
2 Replies

7. UNIX for Dummies Questions & Answers

mv command if you dont know the full name of the file

Hi all. I have a problem renaming a file. It is called "data_200711051002.csv" (for example) and I want to rename it automatically to "data.csv" in a routine in a program named Ascential. Those numbers are a time stamp, so every time the file is loaded into the server, they will change. ... (2 Replies)
Discussion started by: absolutdani
2 Replies

8. AIX

Getting the process full command line

Hi, I am running java process that has a long command line. Is there a way to get the full command line? By running ps -ef has returns around 2000 chars By running ps eww returns around 2020 chars I am running on AIX 5.3 Thanks, Fredy (0 Replies)
Discussion started by: fredy
0 Replies

9. UNIX for Advanced & Expert Users

Full command line sun 5.10

Hi, I am running on Sun10 platform. I am trying to retrieve the full command line for a process by running ps (/usr/bin/ps or /usr/ucb/ps). Running the "/usr/ucb/ps -agxuwwwww PID" with the user that executed the process i get the full command line. Running the same command with another user on... (4 Replies)
Discussion started by: fredy
4 Replies

10. UNIX for Dummies Questions & Answers

Retrieving the execution time of a completed command

Hello, I am new to this forum and relatively new to unix, but hope to become an expert soon! My question is: How can I find out the execution time of a command that has already completed execution? More specifically, I launched a Python script to populate a PostgreSQL database on Suse... (2 Replies)
Discussion started by: marina
2 Replies
Login or Register to Ask a Question