Date: Fri, 19 Mar 1999 16:45:44 -0700 (MST) From: Brett Taylor <brett@peloton.physics.montana.edu> To: charon@freethought.org Cc: questions@FreeBSD.ORG Subject: Re: commands to execute programs Message-ID: <Pine.BSF.4.05.9903191637110.4752-100000@peloton.physics.montana.edu> In-Reply-To: <3.0.5.32.19990319152508.00980d60@mail>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, On Fri, 19 Mar 1999 charon@freethought.org wrote: > Is there any way to find out what the command for a program (installed > from the ports) will be without guessing? Sure - do a: more pkg/PLIST from whatever port directory you happen to be in. Look for things like bin/some_darn_executable It shouldn't be too hard to guess. > However, I installed x-files and can't figure out the command ('which > x-files' and 'which xfiles' fail. A 'which files' finds something, > but I don't know what program it is - it doesn't identify itself when > executed, and I also installed filerunner and can't find that - 'which > filerunner' comes up empty.). For example, doing it for these two ports we have: x-files peloton: {27} more /usr/ports/x11-fm/x-files/pkg/PLIST bin/X-Files (only bin) filerunner bin/fr (only bin - and I wonder why the PLIST isn't sorted alphabetically) There you go. > Also, why do some programs (like rc5des) have to be run with a full > pathname and others can be run with just the program name? Is it that > the latter type are in /usr/local/bin? Your path is messed up? Try typing cat $PATH It'll give you your path as it's set now. If you don't see /usr/local/bin in there you should add it, and /usr/X11R6/bin too, to your .cshrc or .bashrc or whatever. For .cshrc you would want a line roughly like: set path = (~/bin /bin /usr/{sbin,bin,games} /usr/local/bin /usr/X11R6/bin) (all one line - line broken so it mails right) Note if you're running the rc5des client, and it's not in a directory that's in your path you will have to give the explicit path. If I was running it, I'd shove it in ~/bin (which is in my path) so I could just type rc5des and I'd be off. You should NOT however add a "." (which means look in current directory for executables). This is a bad practice and can lead to much disaster. Hope this helps! Brett *********************************************************** Brett Taylor brett@peloton.physics.montana.edu * brett@daemonnews.org * * http://www.daemonnews.org/ * *********************************************************** To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9903191637110.4752-100000>