[Tutor] Looking for some guidance.

Joshua Banks syn_ack at comcast.net
Thu Feb 5 15:55:52 EST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thursday 05 February 2004 12:17 pm, Roger Merchberger wrote:
> /usr/local/bin is good, but it can get cluttered as you start
> installing more software on the system...

Ahhhhh.. I was wondering why this directory was bone dry. All exec's are 
in "/usr/bin" for normal software that gets installed. It's been like 
this for 6 mnths. I believe this happend because of the way that I 
intially partioned my drive..... Anyways, thanks though.. One less 
think I have to curious about know. Heh..

> 1) you remember to put the bangpath line as the first line of the
> script, like:
>
> #!/usr/bin/python           -or-
> #!/bin/env /usr/bin/python  (I think, I don't use this method myself)

Yup. I just use #!/usr/bin/python

> 2) make sure you set the script executible:
>
> chmod 755 samplescript.py   --if you want *any* userid to run it, or
> chmod 744 samplescript.py   --if you want only your userid to run it.

I've been using "chmod +x file.py" But I understand what your saying 
here.

> If you wanted to make a directory for your scripts that's world
> findable, but not /usr/local/bin for clarity, make one up, like:
>
> /usr/local/pyscripts
>
> and edit your /etc/profile to say something like this:
>
> PATH=${PATH}:/usr/local/pyscripts
> export PATH
>
> [[ the previous line is heavily dependant on the flavor of shell you
> run. If you're running bash, this *should* work, but it is untested,
> so YMMV. ;-) ]]

Ahhhhhh Yesssss. YOU ROCK... that's what I was looking for. Cool. ...... 
Thanks Roger. 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFAIq3Yp9X7q/XgeyYRAha+AKCYxWUoyYjhZr9HY1syrE02M5sI9QCghMx7
fMoSBCXIQeZNv2zeUFIFaiE=
=vLFP
-----END PGP SIGNATURE-----




More information about the Tutor mailing list