[ale] Ogle Install?

Brian Pitts brian at polibyte.com
Wed May 21 01:57:03 EDT 2008


Marc Ferguson wrote:
> 
> On Tue, 2008-05-20 at 22:26 -0400, James Sumners wrote:
>> `which ogle`
> What do you mean which one?  I went to, 
> http://www.dtek.chalmers.se/groups/dvd/redhat.shtml, and downloaded 
> v0.9.2-ogle1 RH 7.x i586.

James was rather succinctly telling you that there is a command, called 
'which', that will tell you the path of the command that would be 
executed if you tried to run its argument. In other words, 'which ogle' 
means "Tell me what file should run if I type ogle and hit enter?"

All 'which' does is search through your path. I can run 'echo $PATH' and 
see that mine is

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

(This is rather boring, I need to copy my primary bashrc to this machine.)

I can run 'strace which ogle' and see that it is searching through my 
path until it finds ogle.

stat("/usr/local/sbin/ogle", 0x7fffb9b0c800) = -1 ENOENT (No such file 
or directory)
stat("/usr/local/bin/ogle", 0x7fffb9b0c800) = -1 ENOENT (No such file or 
directory)
stat("/usr/sbin/ogle", 0x7fffb9b0c800)  = -1 ENOENT (No such file or 
directory)
stat("/usr/bin/ogle", {st_mode=S_IFREG|0755, st_size=9586, ...}) = 0

-Brian


More information about the Ale mailing list