[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Why can't I execute a script??



[ script doesn't run because "." not in path ]
> 
> Ways of solving the problem:
> 
> 1. Create ~/bin and add that to your path.  Put all private executables
>    in ~/bin  You may want to set up you compiler to put freshly compiled
>    files there too.  This works well and has no security problems.
>    If you don't want to put your script in ~/bin, put a symbolic link to
>    it there instead.
> 
> 2. Add "." to path.  (Not recommended, but the script will run)
> 
> 3. Change all local commands in the script to ./command
> 
> 4. Put links to your script and other local executables somewhere in path,
>    or move everything into a path directory.

5. Add a line

setenv PATH "$PATH":.

on the top of your csh script.  Seems easiest to me.

HTH,
Eric



-- 
 E.L. Meijer (tgakem@chem.tue.nl)          | tel. office +31 40 2472189
 Eindhoven Univ. of Technology             | tel. lab.   +31 40 2475032
 Lab. for Catalysis and Inorg. Chem. (TAK) | tel. fax    +31 40 2455054


Reply to: