Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

some command doesn't work in linux box

Status
Not open for further replies.

nayak

Technical User
Apr 11, 2001
5
IN
Hai
When i am giving below command in redHat linux 6.2 box it is showing some errors. pasted below. Can somebody tell me the what could be the problem and how to solve.

[root@sbd server4]# ps -ef|grep slapd

2321 ? S 0:00 \_ grep slapd LESSOPEN=|/usr/bin/lesspipe.sh %s USERNAME=r
[root@sbd server4]#

expecting a favourable reply at the earliest
 
"ps -ef|grep slapd "
is the same as "ps -e -f|grep slapd"
The "-e" and "-f" options in the linux may be contradictory to the options already aliased to "ps"

find out what these are with
#% which ps

bet there is an "x" option aliased in.

from the manual:
x Select processes without controlling ttys

which would account for the environment data listed after the basic process listing

Also, I've learned that a space between options and a pipe is less confusing to the bash shell.

so,if ps is in /bin/ , a safer version might be

"/bin/ps -ef |grep slapd"

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top