Sponsored Content
Operating Systems HP-UX PS output is not displaying full process running Post 302977299 by mrmurdock on Friday 15th of July 2016 02:56:26 PM
Old 07-15-2016
HP PS output is not displaying full process running

I have 4 HPUX 11.31 servers with the same Quality Pack bundles. "AS FAR AS I CAN TELL" no system files have been modified.
  • /usr/bin/ps is the same date size and creation date
  • terminfo file (x-->xterm) is the same date size and creation date
  • shell (ksh) is the same date size and creation date
on all 4 nodes.

This problem appears using either a xterm emulator or a putty ssh session.
The TERM type is xterm
Code:
echo $TERM
xterm

PROBLEM:
On one of the nodes, a ps -ef output does not show the full output of the process command running as it does on the other 3 servers.

From the script -
Code:
ps -ef | egrep -e '-Dn='$RESOURCE

($Resource is name of the process we are grep'ing on)

From the command line -
Code:
ps -ef | egrep -e '-Dn='Bob1

(or Bob2) (depends which process is on which box).
This is a Service guard package so Bob1 is on Node 1 and Bob2 is on Node 2.
Bob1 output shows up fully as expected. Bob2 output gets truncated.
When Bob2 is on Node 1, the output is normal (complete line is displayed).
So it seems to be following the Node. Just do not know where to begin looking to solve this.

Last edited by rbatte1; 07-18-2016 at 07:17 AM.. Reason: Set formatted list from text one, added CODE tags
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Displaying VERY long process names with ps -ef

Hi, I'm trying to display all process on an AIX server with the string SLRServer in them. Normally "ps -ef|grep SLRServer" would be sufficient, however in this instance the process name is enormous and the part which contains this string has been truncated, as you can see in the example below ... (8 Replies)
Discussion started by: m223464
8 Replies

2. Shell Programming and Scripting

Displaying output from df -k in GB instead of KB

Hello all, Code below: echo "Oracle Filesystems" echo "------------------" echo for j in `df -l -k |grep total|grep ora|grep -v storage|grep -v vg00|awk '{print $1}'` do echo $j is `df -l -k $j |grep total|grep ora|grep -v storage|grep -v vg00|awk -F":" '{print $2}'|awk '{print $1}'` KB... (6 Replies)
Discussion started by: LinuxRacr
6 Replies

3. Shell Programming and Scripting

Displaying current user process

When I typed in ps -a I get this: PID TTY TIME CMD 31799 pts/3 00:00:00 vim 31866 pts/3 00:00:00 vim And to check who is currently logged in, I type who Felix Whoals Tada Whoals Lala Whoals How can I get the user process for all current users who logged in?? I think I need to combine... (14 Replies)
Discussion started by: felixwhoals
14 Replies

4. Shell Programming and Scripting

script to monitor process running on server and posting a mail if any process is dead

Hello all, I would be happy if any one could help me with a shell script that would determine all the processes running on a Unix server and post a mail if any of the process is not running or aborted. Thanks in advance Regards, pradeep kulkarni. :mad: (13 Replies)
Discussion started by: pradeepmacha
13 Replies

5. Shell Programming and Scripting

ps -ef does not displaying the running process

Hi, I am using the monitor shell script to check the particular process is running or not.If it is not running this monitor shell script will automatically start the process.I am using the ps -ef command to check the process availablity.But the problem is some times the ps -ef | grep "Process... (8 Replies)
Discussion started by: sureshbabuc
8 Replies

6. Shell Programming and Scripting

Variable not displaying while running in cron job

hi , While running my script individually the variable is working fine. But when i am running the same script from cron job it's displaying nothing. Can any one comment on this. (4 Replies)
Discussion started by: josephroyal
4 Replies

7. UNIX for Dummies Questions & Answers

Banner not displaying full content

HI, while using banner command, i am not getting the full content in the screen: banner "UNIX AUTOMATION" # # # # ### # # # # # ####### ####### # # # # ## # # # # # # # # # # # ## ## # # # # # # ... (5 Replies)
Discussion started by: pandeesh
5 Replies

8. Shell Programming and Scripting

Displaying log file pattern output in tabular form output

Hi All, I have result log file which looks like this (below): from the content need to consolidate the result and put it in tabular form 1). Intercomponents Checking Passed: All Server are passed. ====================================================================== 2). OS version Checking... (9 Replies)
Discussion started by: Optimus81
9 Replies

9. Shell Programming and Scripting

Nohup not give expected output. Non-stop running process

Hello, I am trying to make a bash script, I tested nohup but it did not help me. My code is: ffmpeg -i $input_url -c:v copy -c:a copy -listen 1 -f mpegts http://localhost:port/live/test When I open it in VLC, it starts feeding my screen and I see bitrate values. When I stop watching it,... (4 Replies)
Discussion started by: baris35
4 Replies

10. Shell Programming and Scripting

Command to get exact tomcat process I am running ignoring other java process

Team, I have multiple batchjobs running in VM, if I do ps -ef |grep java or tomcat I am getting multiple process list. How do I get my exact tomcat process running and that is unique? via shell script? (4 Replies)
Discussion started by: Ghanshyam Ratho
4 Replies
resize(1X)																resize(1X)

NAME
resize - set TERMCAP and terminal settings to current xterm window size SYNOPSIS
resize [-u] [-c] [-s[row col]] OPTIONS
The following options may be used with resize: This option indicates that Bourne shell commands should be generated even if the user's cur- rent shell is not /bin/sh. This option indicates that C shell commands should be generated even if the user's current shell is not /bin/csh. This option indicates that Sun console escape sequences will be used instead of the special xterm escape code. If rows and col- umns are given, resize will ask the xterm to resize itself. However, the window manager may choose to disallow the change. DESCRIPTION
The resize command prints a shell command for setting the TERM and TERMCAP environment variables to indicate the current size of xterm win- dow from which the command is run. For this output to take effect, resize must either be evaluated as part of the command line (usually done with a shell alias or function) or else redirected to a file which can then be read in. From the C shell (usually known as /bin/csh), the following alias could be defined in the user's % alias rs 'set noglob; eval `resize`' After resizing the window, the user would type: % rs Users of versions of the Bourne shell (usually known as /bin/sh) that do not have command functions will need to send the output to a tem- porary file and the read it back in with the "." command: $ resize > /tmp/out $ . /tmp/out FILES
for the base termcap entry to modify. user's alias for the command. BUGS
The -u or -c must appear to the left of -s if both are specified. SEE ALSO
csh(1), tset(1), xterm(1X) AUTHORS
Mark Vandevoorde (MIT-Athena), Edward Moy (Berkeley) Copyright (c) 1984, 1985 by X Consortium See X(1X) for a complete copyright notice. resize(1X)
All times are GMT -4. The time now is 01:11 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy