02-19-2013
Without seeing the unfiltered ps output, I cannot possibly say why it's matching 40 times.
You should be doing pgrep, not ps | grep, incidentally.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi Friends,
Can any of you explain me about the below line of code?
mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`
Im not able to understand, what exactly it is doing :confused:
Any help would be useful for me.
Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies
2. Shell Programming and Scripting
Hello Experts,
Can any one help me out to find the command to get "count" of number of processes running in system.
Basically i want to write one crone job to kill some process which making my system hanged. so have to do following things.
1) Find out the number of processes is running.... (4 Replies)
Discussion started by: MITESH KOTHARI
4 Replies
3. Shell Programming and Scripting
Hi all,
can any one suggest me the script to grep multiple strings from ps -ef
pls correct the below script . its not working/
i want to print OK if all the below process are running in my solaris system. else i want to print NOT OK.
bash-3.00$ ps -ef | grep blu
lscpusr 48 42 ... (11 Replies)
Discussion started by: steve2216
11 Replies
4. UNIX for Dummies Questions & Answers
Hello Experts
I have M4000 Solaris 10 server, from few many days there are too many sendmail and mail.local process starting on server and each time i need to kill mannualy using pkill send mail, some time there will 600 of them taking 30mb memory for each and hence slowing down the server,... (2 Replies)
Discussion started by: karghum
2 Replies
5. Solaris
Hi,
I have one question regarding the understanding of “load average” in a platform with virtual processors.
Suppose in this situation:
Total number of physical processors: 1
Number of virtual processors: 32
Total number of cores: 4
Number of cores per physical... (1 Reply)
Discussion started by: MDING
1 Replies
6. HP-UX
Hello Anyone:
I have run into an issue that I have never seen or heard of.
Recently on a specific server I have encountered a random issue that I've not been able to repliate on demand... When I view the processes status of a certain process, the information returned to the screen has a... (2 Replies)
Discussion started by: DEN1022
2 Replies
7. SCO
Hi, (i'm sorry for my english)
I'm a problem on boot sco unix 5.0.5 open server.
this stop at "Checking protected password and checking subsystem databases"
(See this image )
I'm try this:
1) http://www.digipedia.pl/usenet/thread/50/37093/#post37094
2) SCO: SCO Unix - Server hangs... (9 Replies)
Discussion started by: buji
9 Replies
8. Shell Programming and Scripting
Hello.
Following recommendations for one of my threads, this is working perfectly :
#!/bin/bash
CNT=$( grep -c -e "some text 1" -e "some text 2" -e "some text 3" "/tmp/log_file.txt" )
Now I need a grep success for some thing like :
#!/bin/bash
CNT=$( grep -c -e "some text_1... (4 Replies)
Discussion started by: jcdole
4 Replies
9. Solaris
Team,
I would like to know, if we have any command in Solaris to verify, if some process is listening on a port on a set of machines.
for eg: Wrote the below script, and found that when a process is listening on that port, then it just waits there and doesnt come out. Rather, I would like... (6 Replies)
Discussion started by: msgforsunil
6 Replies
10. UNIX for Beginners Questions & Answers
Cannot present unpresented disks back again. On a test server tried this as a solution "multipath -r" and it worked. Too worried to try it in production before I know all the information.
Any info would be appreciated!
Also some links to the documentation on this specific issue could help a... (1 Reply)
Discussion started by: jsteppe
1 Replies
LEARN ABOUT OSF1
nissetup
nissetup(8) System Manager's Manual nissetup(8)
NAME
nissetup, ypsetup - Sets up the Network Information Service (NIS) environment
SYNOPSIS
/usr/sbin/nissetup
/usr/sbin/ypsetup
DESCRIPTION
The nissetup (formerly ypsetup) script configures and runs NIS on your system. You can use nissetup to initially set up your NIS configura-
tion, to change your current NIS configuration, or to remove your NIS configuration. NIS provides a distributed data lookup service for
sharing data among networked systems.
Before running nissetup, make sure that your system is connected to a local area network and that the network is configured and running.
You must know the name of your NIS domain and your system's role in the domain (master server, slave server, or client).
Security Note
You invoke nissetup from the SysMan Menu. See sysman(8) for more information.
When using the nissetup script to set up a NIS server that is running with enhanced security, you must answer yes to the question about
locking the domain name and authorized servers (the ypbind -S option). If you are setting up a master server, the server is bound to itself
(done by default). If you are setting up a slave server, the server is bound to itself done by default) and optionally to the master server
and any other slave servers.
If your system will be the master server for your NIS domain, be sure no other master exists for your domain and that the NIS database
files are in the /var/yp/src directory.
Note
Remove the root entry, if it exists, from the passwd database file.
If your system be will be a slave server or client, be sure a master server is already set up for your NIS domain.
FILES
Specifies the command pathname NIS parameters pertinent to a specific system
Default NIS Databases
In the /var/yp/src directory, the default databases are: Group database Host database Sendmail alias database Network group aliases data-
base Network database Password database Protocol database RPC database Service database
SEE ALSO
Commands: domainname(1), ypwhich(1), svcsetup(8), sysman(8), sysman_station(8), ypbind(8), yppasswdd(8), ypserv(8), ypxfr(8)
Files: svc.conf(4)
Networking: nis_intro(7), nis_manual_setup(7)
Network Administration
nissetup(8)