Find node of a command


 
Thread Tools Search this Thread
Operating Systems Linux Find node of a command
# 1  
Old 02-17-2004
Question Find node of a command

I want to know how to find a node path of a unix command. I tried the command which, but it didn't find the "makekey" command node path... Are there any tricks about the "which" command? Should I use this command on a special level of directories? Moreover, I am accessing in remote the computers of my university, would this change anything?
Comments, if i do "which perl", it tells me "/bin/perl", so which works... and makekey is supposed to be on the station...
Thank you for your help.
# 2  
Old 02-17-2004
Error ok...

I found the command makekey in /usr/lib, but appearently, which is looking in the PATH variable in the which /usr/lib isn't. So what option on which or what other command should I use to reach makekey in /usr/lib?
Thanks so much.
# 3  
Old 02-17-2004
makekey is not intended to be run by a user. It's a program that is used by other programs (or was used... it's not used much anymore). Programs like that do not belong in the PATH anywhere. And the "which" command primarily looks at stuff on the PATH.

Redhat does not have "makekey" that I can find. Which distro are you using?

HP-UX does still have a makekey. They have a man page for it too. And the man page gives the path. Did you try "man makekey"?

The only other option would be "find".
# 4  
Old 02-17-2004
well well well

Ok, I'm using Putty to access remotely to the server of my University. Thing is it is a Sun Solaris. And there is makekey in /usr/lib. But no makekey in the man pages, even if I go in the proper directory (/usr/lib). I just found where it was because i looked through google the man pages and as you said it was written /usr/lib... Can you tell me more about find?
Thanks for your express answer.
Emilie.
# 5  
Old 02-17-2004
You really should post Solaris questions in the Solaris forum, not in the linux forum. And I know "find" has a man page. Use "man find".
# 6  
Old 02-17-2004
ok i'll do that, thanks.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Command to see the status of managed node from CLI of HMC?

Folks, Asking a silly question - is there a way to know the status(Power Off/Running) of a managed node from CLI of HMC, alike the way we see it for the LPARs running on the node from 'vtmenu'? Most of us use the UI to see the status of the LPARs/Managed node - but just inquisitive to know if... (4 Replies)
Discussion started by: thisissouvik
4 Replies

2. HP-UX

Mount FIle systems from node-1 onto node-2

Hi, We have HP UX service guard cluster on OS 11.23. Recently 40+ LUNs presented to both nodes by SAN team but I was asked to mount them on only one node. I created required VGs/LVs, created VxFS and mounted all of them and they are working fine. Now client requested those FS on 2nd node as... (4 Replies)
Discussion started by: prvnrk
4 Replies

3. Homework & Coursework Questions

Accessing one UNIX node from another node of the same server

Hi Experts, I am in need of running a script from one node say node 1 via node 2. My scheduling tool dont have access to node2 , so i need to invoke the list file from node1 but the script needs to run from node2. because the server to which i am hitting, is having access only for the node... (5 Replies)
Discussion started by: arun1377
5 Replies

4. Shell Programming and Scripting

Find Node and replace line(s) preceding in xml file

Hello, I have an xml file whose contacts are like below: <Node>Apple <B>Value1</B> <B>Value2</B> <B>Value3</B> </Node> <Node>Mango <B>Value1</B> <B>Value2</B> <B>Value3</B> </Node> <Node>Apple <B>Value1</B> <B>Value2</B> <B>Value3</B> </Node> <Node>Bannana (3 Replies)
Discussion started by: umarsatti
3 Replies

5. Shell Programming and Scripting

How to use grep & find command to find references to a particular file

Hi all , I'm new to unix I have a checked project , there exists a file called xxx.config . now my task is to find all the files in the checked out project which references to this xxx.config file. how do i use grep or find command . (2 Replies)
Discussion started by: Gangam
2 Replies

6. Solaris

SVM metaset on 2 node Solaris cluster storage replicated to non-clustered Solaris node

Hi, Is it possible to have a Solaris cluster of 2 nodes at SITE-A using SVM and creating metaset using say 2 LUNs (on SAN). Then replicating these 2 LUNs to remote site SITE-B via storage based replication and then using these LUNs by importing them as a metaset on a server at SITE-B which is... (0 Replies)
Discussion started by: dn2011
0 Replies

7. Linux

Simplified find command to find multiple file types

Hi, I'm using the following command to find the multiple requierd file types and its working fine find . -name "*.pl" -o -name "*.pm" -o -name "*.sql" -o -name "*.so" -o -name "*.sh" -o -name "*.java" -o -name "*.class" -o -name "*.jar" -o -name "*.gz" -o -name "*.Z" -type f Though... (2 Replies)
Discussion started by: vickramshetty
2 Replies

8. Shell Programming and Scripting

shell call xalan to transform xml with xslt, but can not find root node

hi experts: i am using xslt to transform xml in shell. But can not find root node of source xml, if i remove the naming space definition in source xml, it works fine. So our the question is how to let xslt know the naming space of srouce xml file? Thanks for your kindly help in... (0 Replies)
Discussion started by: summer_cherry
0 Replies

9. UNIX for Dummies Questions & Answers

how to find a file named vijay in a directory using find command

I need to find whether there is a file named vijay is there or not in folder named "opt" .I tried "ls *|grep vijay" but it showed permission problem. so i need to use find command (6 Replies)
Discussion started by: amirthraj_12
6 Replies

10. Shell Programming and Scripting

command find returned bash: /usr/bin/find: Argument list too long

Hello, I create a file touch 1201093003 fichcomp and inside a repertory (which hava a lot of files) I want to list all files created before this file : find *.* \! -maxdepth 1 - newer fichcomp but this command returned bash: /usr/bin/find: Argument list too long but i make a filter all... (1 Reply)
Discussion started by: yacsil
1 Replies
Login or Register to Ask a Question