LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-24-2019, 10:07 AM   #1
Robert_S
LQ Newbie
 
Registered: Feb 2019
Posts: 6

Rep: Reputation: Disabled
Setting temporary pathing in bash script.


I'm trying to get nethack to run. I got it built, but it's not finding the sysconf file, which is there. I can see it.

I'm thinking it's just making a generic call, but because the path to sysconf is not in $PATH, it's not finding it.

I only want the pathing for when I run the game. I don't want to make it permanent in my .profile.

Is this possible?
 
Old 02-24-2019, 10:10 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 13,587

Rep: Reputation: 4347Reputation: 4347Reputation: 4347Reputation: 4347Reputation: 4347Reputation: 4347Reputation: 4347Reputation: 4347Reputation: 4347Reputation: 4347Reputation: 4347
PATH is only used to find executables, not for config files. That should be something else.
Code:
PATH=<value> command args
can be used to specify PATH (or any other variable) only for a single command.
 
Old 02-24-2019, 10:33 AM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 13,400
Blog Entries: 9

Rep: Reputation: 3655Reputation: 3655Reputation: 3655Reputation: 3655Reputation: 3655Reputation: 3655Reputation: 3655Reputation: 3655Reputation: 3655Reputation: 3655Reputation: 3655
why are you compiling it?
which distro are you using?
on Ubuntu alone there's 4 different versions in the repos.
 
Old 02-24-2019, 11:03 AM   #4
Robert_S
LQ Newbie
 
Registered: Feb 2019
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
why are you compiling it?
which distro are you using?
on Ubuntu alone there's 4 different versions in the repos.
Slackware
 
Old 02-24-2019, 11:04 AM   #5
Robert_S
LQ Newbie
 
Registered: Feb 2019
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
PATH is only used to find executables, not for config files. That should be something else.
Code:
PATH=<value> command args
can be used to specify PATH (or any other variable) only for a single command.
Okay, I'll have to look at the code.

ADDENDUM: Please disregard. I must have been doing something wrong or a subsequent compile worked or something, because it suddenly started to see the file. All is well.

Last edited by Robert_S; 02-24-2019 at 12:27 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Pathing: Directory vs Executable and Relative vs Absolute Selecta Linux - Newbie 8 09-17-2015 08:25 AM
[SOLVED] Can't remove temporary files using bash script pljvaldez Programming 8 11-11-2010 12:10 PM
iptables bash script to add offending ip's to temporary chain NinjaGuru Programming 1 01-08-2008 11:05 AM
9.3, Firefox and Adobe Reader Pathing Problem bmk SUSE / openSUSE 13 10-03-2006 01:24 PM
Problem with pathing NewtonIX Linux - Newbie 3 11-01-2003 05:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration