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 > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
help me in sending parameters from sqlplus script to unix shell script Hara Shell Programming and Scripting 2 01-29-2008 03:31 PM
Shell Script: want to insert values in database when update script runs ring Shell Programming and Scripting 1 10-25-2007 03:06 AM
bash: ./<scriptname>: No such file or directory Heidi.Ebbs SUN Solaris 10 06-29-2007 07:23 AM
how to convert unix .ksh script to windows .batch script 2.5lt V8 Shell Programming and Scripting 1 11-28-2006 12:52 PM
echo Scriptname uXion Shell Programming and Scripting 1 06-05-2006 09:16 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 04-08-2007
NinjaXman NinjaXman is offline
Registered User
  
 

Join Date: Apr 2007
Posts: 2
run script without ./scriptname

Hi everyone,

I'm very new, I just wrote a script "Hello World" LOL

How can I execute the script without the ./myscript.

I want to just type "myscript" basically from anywhere without the " ./ ".

Thanks a bunch,
NinjaX
  #2 (permalink)  
Old 04-08-2007
blowtorch's Avatar
blowtorch blowtorch is offline Forum Advisor  
Supporter
  
 

Join Date: Dec 2004
Location: Singapore
Posts: 2,350
For that you have to do one of two things:
1. Put the script in one of the directories specified in your $PATH variable
2. Change your $PATH variable to include the directory that your script is in
  #3 (permalink)  
Old 04-08-2007
NinjaXman NinjaXman is offline
Registered User
  
 

Join Date: Apr 2007
Posts: 2
Thanks Torch

I'm a long way from smart, but I do feel smarter now.
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 12:43 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