![]() |
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 |
| bash: ./<scriptname>: No such file or directory | Heidi.Ebbs | SUN Solaris | 10 | 06-29-2007 07:23 AM |
| OM not found | aladdin | UNIX for Dummies Questions & Answers | 4 | 05-02-2007 01:42 AM |
| run script without ./scriptname | NinjaXman | UNIX for Dummies Questions & Answers | 2 | 04-08-2007 11:39 AM |
| how can i check in csh if command found or not found ? | umen | Shell Programming and Scripting | 2 | 03-03-2007 07:38 PM |
| echo Scriptname | uXion | Shell Programming and Scripting | 1 | 06-05-2006 09:16 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
I have started to write Korn scripts on the client's AIX 4.2 servers and there is this small problem that puzzles me.
I code all my scripts the same way: - first line contains : #!/bin/ksh - I do this console command on every scripts: chmod +x scriptname But still, on some occasions, when running a script (ex: called scriptname.sh), I get an error that I do not understand: /bin/ksh: scriptname.sh: not found. It does not always happen but when it happens, its when I am trying to run a new script for the first time. Once it starts to happen, the only way to run that script is to : ksh scriptname.sh If a script never had this from the start, it will never happen to it. When logging in with my user-id, the first thing I do is sudo su - Why is this happening ? Am I forgetting to do something ? I do not recall if it is happening on specific servers or not. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|