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
How to make a script to run everytime a new file is copied into a directory?? ks_reddy Shell Programming and Scripting 2 04-15-2009 10:58 AM
How Can I Make Subdirectories In A Directory? kprescod4158 Shell Programming and Scripting 7 12-04-2007 09:15 PM
make directory script malaysoul Shell Programming and Scripting 0 02-11-2007 11:10 AM
Need script to make big directory structure kamur Shell Programming and Scripting 2 11-07-2005 07:48 PM
how do i make a new directory? raichuu UNIX for Dummies Questions & Answers 3 03-25-2002 01:52 AM

Reply
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 2 Weeks Ago
C_James C_James is offline
Registered User
  
 

Join Date: Nov 2009
Posts: 1
Make a script accessible from any directory

I wrote a small fortran program that I want to control with a bash script. The bash script builds a parameter file that is used by the fortran program. I want to make it so I can access the script from any directory on my computer. How do I do that? Or what key words should I search for to find the answer?

Thanks for the help
  #2 (permalink)  
Old 2 Weeks Ago
TonyFullerMalv's Avatar
TonyFullerMalv TonyFullerMalv is offline Forum Advisor  
Registered User
  
 

Join Date: Sep 2008
Location: Malvern, Worcs. U.K.
Posts: 730
Whatever directory you put the script in, add it to the user's PATH, or else install the script in a directory already in the user's path (e.g. /usr/local/bin ?), the script will need to ensure that the parameter file is created where the user calling has permission to write to so /tmp, /var/tmp or ${HOME} are the usual choices, the Fortran program will therefore need to look in that pre-agreed location!
Reply

Bookmarks

Tags
global accessible

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 07:57 PM.


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