Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Easy way to get any command to execute' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Easy way to get any command to execute
Authored by: cellocgw on Mar 10, '07 07:53:07AM

I see from the comments that many here are not familiar with Unix. Here's the way to run any command that is in your currrent directory.

[your_prompt]: ./CommandName

The trick is that many shells (tcsh, bash, etc) don't include the current working directory in their .cdpath list. "." is shorthand for "where I am right now," so "./command" will always work

Carl



[ Reply to This | # ]
Easy way to get any command to execute
Authored by: baltwo on Mar 31, '07 03:13:35PM

I'm confused by your comment. AFAICT, it implies that you don't need the path to lsregister. However, when I run this, it doesn't do what I inferred.

localhost:~ baltwo$ ./lsregister
-bash: ./lsregister: No such file or directory

Please clarify.



[ Reply to This | # ]