- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Operating System - Tru64 Unix
- >
- Re: mountd is running option -n
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-15-2008 02:08 AM
тАО10-15-2008 02:08 AM
Please let me know how to check whether mountd is running option -n.
since mountd can also be running as
"mountd -i -n".
In that case if i issue this command
ps -aef |grep "[m]ountd -n"
i wont't get apropriate output right.
Could you Please let me know how to do that..
$ ps -aef |grep "[m]ountd *"
root 525191 524289 0.0 15:28:43 ?? 0:00.02 /usr/sbin/mountd -i
root 525826 524289 0.0 15:36:00 ?? 0:00.02 /usr/sbin/mountd -i -n
$ps -aef |grep "[m]ountd -n"
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-15-2008 04:13 AM
тАО10-15-2008 04:13 AM
Re: mountd is running option -n
You could just use two grep statements...
$ ps -aef | grep mountd | grep "\-n"
Cheers,
Rob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-15-2008 06:15 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-15-2008 05:02 PM
тАО10-15-2008 05:02 PM
Re: mountd is running option -n
Hmm, I would have expected this last grep not to work. I.e. quotes and backslash removed by the shell, unless in ''.
It works but it may be safer to use: grep -e -n
Or of course Steven's is better.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-15-2008 10:14 PM
тАО10-15-2008 10:14 PM
Re: mountd is running option -n
I found one more solution.
Please look at it..
ps -ef | grep mountd | grep -w "\-\n" |grep -v grep
=======================
$ ps -ef | grep mountd | grep -w "\-\n" |grep -v grep
root 534225 524289 0.0 11:44:04 ?? 0:00.01 /usr/sbin/mountd -i -n
============================
This also works right..
Thanks,
Shammer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-15-2008 11:14 PM
тАО10-15-2008 11:14 PM
Re: mountd is running option -n
There's seldom only one solution to any
programming problem. The optimal solution
probably doesn't require running grep three
times, but you might never notice the extra
work. Getting the right answer is normally
more important than maximizing efficiency,
but doing both is even better.
> $ ps -ef | grep mountd [...]
You'd better hope that no one runs a program
named "I_am_not_the_real_mountd_program" (or
any number of other possibilities).
Some apparently right answers will fail
sooner than others when they get out to the
real world.
urtx# ps -ef | grep mountd
[...]
root 293292 1409 0.0 02:09:58 pts/3 0:00.01 I am not the real mountd program.sh -n
Many things are possible.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-16-2008 12:41 AM
тАО10-16-2008 12:41 AM
Re: mountd is running option -n
Thanks..