![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Command Not Found Error? | praswer | Red Hat | 2 | 07-18-2008 04:51 PM |
| Error ^M not found while using read command | raoscb | UNIX for Dummies Questions & Answers | 4 | 05-20-2008 10:37 AM |
| Ambiguous and Command not found Error in UNIX | koti_rama | Shell Programming and Scripting | 2 | 07-13-2007 09:42 AM |
| Ambiguous and Command not found Error in UNIX | koti_rama | UNIX for Dummies Questions & Answers | 2 | 07-12-2007 08:44 AM |
| why emacs caused "command not found" error | cy163 | UNIX for Dummies Questions & Answers | 1 | 05-01-2007 04:17 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Command not found Error
Hi All,
This might sound like a repeated problem but I feel it quite tough to find a solution. Here is the problem. Assume the directory structure: /a/b/c/d/e Current shell script is ksh There is a SomeScript.sh file in e folder it has -rwxr-xr-x permission. I belong to "Others" and I can execute it as per the permissions. This script uses some environmental variables like $ABCROOT and $CONFIG_DIR, (say) which are exported inside that .sh script (I believe. because I do not have access to the source code of this script. I can only run it). I did a CD to /a/b/c/d/e and tried executing this script using command csh SomeScript.sh It gave me error saying $ABCROOT=<some path>: command not found export: Command not found $CONFIG_DIR<some path>: command not found export: Command not found I then tried to include /a/b/c/d/e in $PATH by using export command. It did not work. I tried changing the shell to csh (it does not make sense anyway), it did not work even then. What am I doing wrong? Any one? I am using Sun OS |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|