sometimes "ps -elf" command doesn't work


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users sometimes "ps -elf" command doesn't work
# 1  
Old 01-24-2007
sometimes "ps -elf" command doesn't work

when i give "ps -elf" or "ps" system gets hung.
if i press "^c" come out from it...


pls help..what should i do to get it resolved.


thanks
CKanth
# 2  
Old 01-24-2007
That sounds strange, can you make sure that the system is not heavily loaded, or try to execute the binary directly from the full path ?
Also, please let us know the output of "ps --info" and "uname -a"
# 3  
Old 01-24-2007
Sounds like there are not enough resources available for the "ps" command to complete.
# 4  
Old 01-27-2007
O/P of ps --info command
Code:
<SERVER /home/kanth>ps --info
ps: ERROR: Illegal option -- -
ps: ERROR: Illegal option -- i
UX:ps: WARNING: -n option ignored
UX:ps: TO FIX: Usage:
        ps [ -eAdalfcjP ] [ -t termlist ]
           [ -u uidlist ] [ -U uidlist ] [ -p proclist ] [ -g grplist ]
           [ -s sidlist ] [ -G grplist ] [ -o format ]


and O/P of uname -a

Code:
SERVER SERVER 4.0 3.0 3516 Pentium IV(TM)-ISA/PCI

this problem get resolved after restarting the srever...

Lot of scripts are being executed through crontab but ps -elf command was used in scirpts which get hung due to this issue...


Any help would be greatly appreciated.

Last edited by srikanthus2002; 01-27-2007 at 01:34 AM..
# 5  
Old 01-29-2007
Quote:
Originally Posted by srikanthus2002

this problem get resolved after restarting the srever...

Lot of scripts are being executed through crontab but ps -elf command was used in scirpts which get hung due to this issue...
well I think you've answered your own question there. Usually if a reboot works then I would guess it's a resource issue too. If you have lots of scripts that are being executed there could be a memory leak in one of them too.

Might be worth writing a short script that checks the amount of used/available memory the system has every so often and outputting it into a file. Java has a memory printer built into it but that of course would only help your scripts/apps were Java based.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Bash script: "mkdir -p" doesn't work with var(cat x)

Hello, :) I've an issue with the creation of a directory, All work without it :mad: So, below, my scripts with the debug output : #!/bin/bash # PATHS HOME_BACKUP="/home/backup" HOME_SCRIPT="/home/scripts/test/backup_server" TARGET="/var/www" # DATE DATE_Ymd=$(date +%Y-%m-%d) #... (1 Reply)
Discussion started by: Arnaudh78
1 Replies

2. Shell Programming and Scripting

Why doesn't "grep -w" ALWAYS work?

Working with IP addresses is a pain... Here's my problem: I'm putting some interface information to a file: 3.185.201.2 | Tu1102 152.162.54.130 | Gi0/2.36 3.185.226.2 | Gi0/1 3.185.0.82 | Tu1 ... (12 Replies)
Discussion started by: turk22
12 Replies

3. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

4. AIX

AIX 5.3 on p275 - "|" key doesn't work (!)

More issues. The "|" key doesn't work at all, either in the text terminal or in mwm (which starts fine when I do "startx"). How am I supposed to troubleshoot without a "|" key? (2 Replies)
Discussion started by: smithfarm
2 Replies

5. AIX

"/" doesn't work on command prompt for searching commands last typed

When I use "/" to look for a particular command that I typed in the current session it says D02:-/home/user1/temp> /job ksh: /job: not found. D02:-/home/user1/temp> previously it used to fetch all the commands which had job in it.. for example subjob, endjob, joblist etc... may I... (7 Replies)
Discussion started by: meetzap
7 Replies

6. Post Here to Contact Site Administrators and Moderators

What's happens with my thread about "-bash: ELF: command not found "?

Hi, Today, I've submitted a new tread in "Shell Programming and Scripting" forum, with title "-bash: ELF: command not found ". However, this thread has disappear. Can somebody give me an explanation? Regards. (3 Replies)
Discussion started by: Sonia_
3 Replies

7. UNIX for Dummies Questions & Answers

Help! "grep" doesn't work for me!

totally pis*ed off. I have a data set (xxx.txt), as follows: chr1 3821 rs127372 A/C 0.823 chr1 3822 rs127376 A/C/G 0.899 chr1 3722 rs612634 A/C 9.22 chr1 3262 rs7152 A/T 0.22 chr1 3711 rs737 A/C/G 0.2323 ....... I only want to get those lines... (6 Replies)
Discussion started by: kaixinsjtu
6 Replies

8. Linux

By angle-brackets/"pipe" button doesn't work?

How can I configure it? I have a swedish keyboard with swedish keyboard setting. Everything works perfectly (едц) except that button. What can be wrong? /Richard ++ NOTE: It seems like the computer notices the input but that the button isn't assigned to anything (the keyboard-cursor stops).... (1 Reply)
Discussion started by: riwa
1 Replies

9. UNIX for Dummies Questions & Answers

Why "@z=$x+$y" doesn't work?

253 lab2-36:~/try_direct/another> set x=1;set y=2;@z=$x+$y @z=1+2: Command not found. 254 lab2-36:~/try_direct/another> (11 Replies)
Discussion started by: endeavour1985
11 Replies

10. Shell Programming and Scripting

my "case" doesn't work !

I'm using the case statement in the following script and it always takes the "*" default choice while it should be "3". I wonder why ??? dt_auj=`date +%d` NBLOG=`ls -al /users/notes01/LOG/t*|awk '{print $7}'|grep $dt_auj|wc -l` case $NBLOG in 1) cat ~/LOG/console-notes > $fic_tmp1 ;; 2)... (5 Replies)
Discussion started by: Nicol
5 Replies
Login or Register to Ask a Question