- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Very long command line
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2005 08:09 PM
08-25-2005 08:09 PM
Very long command line
Is there any other way to view all of those 1232 characters of the command line? Maybe the arguments are stored in de process memory? And if they are, can I retrieve them from a running process?
I am aware that the command is ridicilously long, but shortening it is not an option!
Tnx in advance,
Rik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2005 08:17 PM
08-25-2005 08:17 PM
Re: Very long command line
Not sure if it is possible to do exact what you as for but, it is possible to echo the command to a log file. I belive the command is started from a script or something (not typed in manually).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2005 08:24 PM
08-25-2005 08:24 PM
Re: Very long command line
I know what you mean, but other than helping my user, it made me curious, and after searching for several hours without finding a clue, I hoped to find some hints at the forums.
Thanks anyway.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2005 08:28 PM
08-25-2005 08:28 PM
Re: Very long command line
set -o vi
export $HISTFILE=$HOME/.sh_history
export $HISTSIZE=2000
Example>
# echo "hai" | sed 's/hai/bye/' | awk '{ print $1 }' | sed 's/bye/hai/' | awk '{ print $1 }' | sed 's/hai/bye/' | awk '{ print $1 }' | sed 's/bye/hai/' | awk '{ print $1 }' | sed 's/hai/bye/' | awk '{ print $1 }' | sed 's/bye/hai/' | awk '{ print $0 }'
# history -2
2459 echo "hai" | sed 's/hai/bye/' | awk '{ print $1 }' | sed 's/bye/hai/' | awk '{ print $1 }' | sed 's/hai/bye/' | awk '{ print $1 }' | sed 's/bye/hai/' | awk '{ print $1 }' | sed 's/hai/bye/' | awk '{ print $1 }' | sed 's/bye/hai/' | awk '{ print $1 }'
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2005 08:46 PM
08-25-2005 08:46 PM
Re: Very long command line
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2005 09:23 PM
08-25-2005 09:23 PM
Re: Very long command line
ps -ef | grep Pid_of_process | awk '{print NF}' | grep sh_history
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2005 03:08 AM
10-20-2005 03:08 AM
Re: Very long command line
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2005 03:34 AM
10-20-2005 03:34 AM
Re: Very long command line
Like:
echo $$ > /process/run/process_name
very_large_command_line >> /process/run/proccess_name
rm /process/run/process_name
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2005 06:21 AM
10-20-2005 06:21 AM