The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



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
Executing a script through GUI snvijaysankar UNIX for Dummies Questions & Answers 2 06-02-2008 04:49 AM
[AIX] executing script piooooter UNIX for Dummies Questions & Answers 1 05-26-2006 12:53 AM
RSH use for executing a script frustrated1 Shell Programming and Scripting 6 10-02-2003 08:24 AM
Executing ksh script from cgi hodges Shell Programming and Scripting 1 05-27-2003 10:57 AM
Executing Ps in script Claude Shell Programming and Scripting 1 11-22-2001 02:01 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-03-2005
big123456 big123456 is offline
Registered User
  
 

Join Date: May 2005
Posts: 200
executing script

Hello ;
I have a script myscript.sh. If I type at prompt
myscript.sh
I will receive
ksh: myscript.sh: not found
but if I type
./myscript.sh
it works .
What should I do to be able to run myscript just typing
myscript.sh
Many thanks before.
  #2 (permalink)  
Old 06-03-2005
rahul123_libra rahul123_libra is offline
Registered User
  
 

Join Date: May 2005
Posts: 46
Thumbs up execute the script

Hello

U r not able to execute the script as the script is in ur current directory and ur current directory is not set in the $PATH variable .

At ur prompt type :-

PATH=$PATH:.;

and then execute the script .

2) answer to 2nd question

./myscript will execute the script in ur current directory overriding the PATH variable .

Cheers
Rahul
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:13 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0