10-09-2008
Thanks for the reply. But my question is how to check any process's home directory.
ps -ef | grep pmon
This will give you pid and ... all the info.
Suppose if I want to know the home(working) directory of that process in sun there is a command pwdx. pwdx <pid> will show you the home direcotry of any process.
What is the equivalent on HP. Or how can I check any process home/working direcotry?
Thanks,
10 More Discussions You Might Find Interesting
1. HP-UX
Hi,
I need to add some comments in the generated executables ( exes and .sl ).
I used to use mcs command in solaris.
What is the equivalent in HP.
On googling and searching the HP site, it gave me to a link of STK for HP from True64, which isn't working.
Is there any substitute or... (5 Replies)
Discussion started by: vibhor_agarwali
5 Replies
2. Solaris
Does Solaris 10 have an equivalent to FreeBSD's `locate'?
If not, what is the best way to search for files (allowing regexp) throughout the system? (5 Replies)
Discussion started by: Russell
5 Replies
3. Programming
Hi,
Is there any system call which changes the time of symbolic link apart from utime? or if tere is no system call any other option of how to do it?
Thanks (4 Replies)
Discussion started by: naan
4 Replies
4. HP-UX
Hi Guys,
Does hp-ux has mksysb equivalent with aix? Or something similar that you can save the system config.
Or you just backup the boot image, that's it.
Thanks in advance,
itik (3 Replies)
Discussion started by: itik
3 Replies
5. Shell Programming and Scripting
I am using "ps ax" command in one of my scripts . AIX has x flag for ps . is there any equilent command for ps ax in solaris ?
Thanks (1 Reply)
Discussion started by: talashil
1 Replies
6. UNIX for Dummies Questions & Answers
Hi guys
I cant use zgrep on a SunOS
Do you know any alternative for it?
i need to use
zgrep -c
grep works fine
but zgrep is not supported (4 Replies)
Discussion started by: khestoi
4 Replies
7. Programming
HI,
i wish to convert a millsec value to a readable string format.
the one option is to use strftime.
However this is a bit costly (1-5 micros).
is there a a faster way to do so with just string manipulation
(Note i have the date object which has the time details but wish o avoid strftime) (2 Replies)
Discussion started by: wojtyla
2 Replies
8. Shell Programming and Scripting
I don't want to have to resort to
/()/
though that does work.
Effectively, I need to be able to implement
/(?:(?:regexp1){0})(regexp2)\D/
to basically match regexp2 as long as it is present and regexp1 is NOT.
So, how to do
/(regexp){0}/
? (2 Replies)
Discussion started by: Vi-Curious
2 Replies
9. Shell Programming and Scripting
I want to have a regex line equivalent to the following:
!\bfalse\b
basically search for not exact string "false" (5 Replies)
Discussion started by: streetfighter2
5 Replies
10. UNIX for Dummies Questions & Answers
I need alternate command as pwdx does not work on
HP-UX mymachine B.11.31 U ia64 3223107173 unlimited-user license (6 Replies)
Discussion started by: mohtashims
6 Replies
LEARN ABOUT HPUX
databases
databases(5) GNATS configuration files databases(5)
NAME
databases - the known set of GNATS databases
DESCRIPTION
The databases configuration file is a site-wide configuration file containing the list of GNATS databases that are available either on the
host itself or remotely over the network, together with some parameters associated with each database. It is located in the directory
/usr/share/gnats.
The file contains one line for each database. For databases located on the host itself, each line consists of three fields separated by
colons:
database name:short description:/path/to/database
The first field is the database name. This is the name used to identify the database when invoking programs such as query-pr or send-pr,
either by using the --database option of the program or by setting the GNATSDB environment variable to the name of the database. The sec-
ond field is a short human-readable description of the database contents, and the final field is the directory where the database contents
are kept.
For a database that is located across a network, but which should be accessible from this host, the entry for the database should look like
this:
database name:short description of database::hostname:port
The first two fields are the same as for local databases, the third field is empty (notice the two adjacent `:' symbols, indicating an
empty field), the fourth field is the hostname of the remote GNATS server, and the fifth field is the port number that the remote GNATS
server is running on.
Note that if you add a new local database, you must create its data directory, including appropriate subdirectories and administrative
files after adding an entry to databases. This is best done using the mkdb tool.
Lines beginning with a # are ignored.
The database name default is special; this is the entry used if no database name is specified via a --database option or the GNATSDB envi-
ronment variable.
SEE ALSO
Keeping Track: Managing Messages With GNATS (also installed as the GNU Info file gnats.info)
databases(5), dbconfig(5), delete-pr(8), edit-pr(1) file-pr(8), gen-index(8), gnats(7), gnatsd(8), mkcat(8), mkdb(8), pr-edit(8), query-
pr(1), queue-pr(8), send-pr(1).
COPYING
Copyright (c) 1993, 2000, 2003, Free Software Foundation, Inc.
Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are
preserved on all copies.
Permission is granted to copy and distribute modified versions of this manual under the conditions for verbatim copying, provided that the
entire resulting derived work is distributed under the terms of a permission notice identical to this one.
Permission is granted to copy and distribute translations of this manual into another language, under the above conditions for modified
versions, except that this permission notice may be included in translations approved by the Free Software Foundation instead of in the
original English.
GNATS
August 2003 databases(5)