LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 10-15-2006, 10:58 AM   #1
BlueSpirit
Member
 
Registered: Jun 2006
Distribution: Slackware
Posts: 144

Rep: Reputation: 15
Script in /etc/profile.d/ won't won't work!?


Hello,

Like you probably know, if you want to set permanantly an environment variable, you can write it in /etc/profile.d/ in Slackware.

I already did 1 script in /etc/profile.d/ before (when I was on Slackware 10.2), but now, I don't know why, but I can't.

I would like to set the environment variable "LESSHISTFILE" to "-".

So, I did in /etc/profile.d/ a file named "lesshst.sh", and I wrote in it :

Quote:
# Disable the "LESSHISTFILE" environment variable
# i.e. NO $HOME/.lesshst
LESSHISTFILE="-"
export LESSHISTFILE
then, I did CTRL+ALT+BACKSPACE (shutdown Xserver), I logged out (logout).

After, I relogged in "root", I opened an "rxvt", did the "set" command to see if LESSHISTFILE=- was there, but there was NOTHING about lesshistfile.

So, to do a test, I did a script with "export TEST101=on-hello", just to see if this was working, and it wasn't working!!! (I did the same things than before, with the "lesshst.sh" script)

The syntax of my scripts is OK, so what can it be?

The other scripts in /etc/profile.d works, why not mines?


Thanx for help!

Blue

P.S.: When I wrote the commands in /etc/profile, it was working...

Last edited by BlueSpirit; 10-15-2006 at 11:02 AM.
 
Old 10-15-2006, 11:21 AM   #2
BlueSpirit
Member
 
Registered: Jun 2006
Distribution: Slackware
Posts: 144

Original Poster
Rep: Reputation: 15
Well sorry,

I did a permissions error.

Now its with +x and it works...

Sorry LOL

Now, ill not have anymore the $HOME/.lesshst
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
/etc/profile doesn't work for setting a global PATH ttilt Mandriva 2 04-15-2004 01:27 PM
Mozilla doesn't work for user-profile furryspider Linux - Software 3 02-28-2004 11:15 AM
got ALSA to work in root, need help getting it to work in my user profile ic3 Slackware 2 11-28-2003 10:32 PM
Is there a .profile script in Linux? rsuri Linux - Newbie 1 07-31-2003 12:39 PM
shell script to find user(s) profile j-me Programming 2 01-31-2003 11:16 AM


All times are GMT -5. The time now is 06:45 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration