Results 1 to 4 of 4
Hi everone,
I have copied a script to a directory that appears in $PATH but when I check:
Code:
$] which <script> .
I get:
Code:
<script>: Command not found.
...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 01-20-2013 #1Just Joined!
- Join Date
- Jan 2013
- Posts
- 2
Shell doesn't recognize script
Hi everone,
I have copied a script to a directory that appears in $PATH but when I check:
I get:Code:$] which <script> .
I have checked that the script is executable.Code:<script>: Command not found.
Any Ideas ?
- 01-21-2013 #2Just Joined!
- Join Date
- May 2011
- Location
- Brazil
- Posts
- 21
Hey,
After that, run echo $?
What is the response?
- 01-21-2013 #3
hi and welcome
Is the dot at the end of the which command a typo?
Also, can you please post the output of
Code:echo $PATH ls -la <PATH_TO_YOUR_SCRIPT>
You must always face the curtain with a bow.
- 01-21-2013 #4Just Joined!
- Join Date
- Jan 2013
- Posts
- 2
I found the problem. I'm running under tcsh
and after copying script you need to run 'rehash' command


Reply With Quote
