You are not logged in.

#1 2007-04-06 11:14:46

Shagbag
Member
Registered: 2006-10-25
Posts: 259

How do I make an 'sbin' or 'bin' executable? [RESOLVED]

To run 'xwinwrap', I have to 'cd /var/abs/local/xwinwrap' and then './xwinwrap'.  How do I set it up so that all I need to type in a BASH terminal is 'xwinwrap' and it will execute?

Last edited by Shagbag (2007-04-06 12:34:40)

Offline

#2 2007-04-06 11:26:58

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,914
Website

Re: How do I make an 'sbin' or 'bin' executable? [RESOLVED]

what about /var/abs/local/xwinwrap or a symlink or move it somewhere else ...;-)

a small bash script to call it. ...

/me thinks

Last edited by Mr Green (2007-04-06 11:27:21)


Mr Green

Offline

#3 2007-04-06 11:49:49

matahari
Member
From: Bandung, Indonesia
Registered: 2007-04-04
Posts: 59

Re: How do I make an 'sbin' or 'bin' executable? [RESOLVED]

we can just add /var/abs/local/ to $PATH right ?

Offline

#4 2007-04-06 11:57:26

Dieter@be
Forum Fellow
From: Belgium
Registered: 2006-11-05
Posts: 2,001
Website

Re: How do I make an 'sbin' or 'bin' executable? [RESOLVED]

yep, $PATH is your friend smile


< Daenyth> and he works prolifically
4 8 15 16 23 42

Offline

#5 2007-04-06 12:11:20

matahari
Member
From: Bandung, Indonesia
Registered: 2007-04-04
Posts: 59

Re: How do I make an 'sbin' or 'bin' executable? [RESOLVED]

just add this
export PATH=$PATH:/var/abs/local
to your .bashrc

Offline

#6 2007-04-06 12:34:24

Shagbag
Member
Registered: 2006-10-25
Posts: 259

Re: How do I make an 'sbin' or 'bin' executable? [RESOLVED]

Thanks everyone.  I managed to get it working by just prefixing /var/abs/local/xwinwrap.  I'll look into the $PATH thing as well as it's new to me.  Cheers.:)

Offline

#7 2007-04-06 13:22:06

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: How do I make an 'sbin' or 'bin' executable? [RESOLVED]

Thats not a good place to install your package. If it is package built by your package manager it should exist in your standard $PATH minus /usr/local/bin. If you installed manually ie ./configure make make install, it should be in /usr/loca/bin.

Offline

Board footer

Powered by FluxBB