Operating System - HP-UX
1832890 Members
1950 Online
110048 Solutions
New Discussion

Re: Command crashing my window

 
nagendra naidu
New Member

Command crashing my window

a simple command just crashes my window, this happens when ever i run this command.give all the garbage value to my window.I am just curious to know why this problem is occuring.
ps -ef|grep cd /

thank you
hi
3 REPLIES 3
someone_4
Honored Contributor

Re: Command crashing my window

Hello,
I ran that command and all I got was garbage too are you using telnet? What is your term type. Do
#echo $TERM
and to change it
do
TERM=hp
export hp
Mine is hp because I am using reflections.
If I do telnet thought the cmd promt it is ansi. And it works too. Regardles I ran that command too and all I got was garbage too. But it did not crash my window. Can you tell us exactly what you are looking or. Maybe you are using a wrong command.

Richard
A. Clay Stephenson
Acclaimed Contributor

Re: Command crashing my window

Hi:

What was actually going on was that grep was attempting to use "cd" as the pattern to match and "/" - the directory itself which contains non-ASCII data as the input file.

The correct way to do this is
ps -ef | grep "cd /" so that the pattern is interpreted correctly. This is a case of that dumb computer doing exactly what you told it to.

Regards, Clay
If it ain't broke, I can fix that.
someone_4
Honored Contributor

Re: Command crashing my window

Hello,
Wouldn't that be that they are trying to grep for a process call "cd /" ?


Richard