LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 12-06-2014, 12:26 PM   #16
django84
LQ Newbie
 
Registered: Nov 2014
Location: Rome, Italy
Distribution: Ubuntu, Busybox
Posts: 10

Original Poster
Rep: Reputation: Disabled

I tried to include the alias cmds also in the /etc/profile file, but they are not yet recognized after the boot.
As a test, I also tried to declare a variable end export it globally, to see if it was working.
I edited /etc/profile to this:
Code:
# cat profile                                                                                                           
alias ciccio1='/mnt/0/a'                                                                                                
MARK=0008                                                                                                               
ENV=/etc/shrc                                                                                                           
HOSTNAME=`hostname`                                                                                                     
                                                                                                                        
export ENV HOSTNAME MARK
After the boot, that variable is not yet listed in export -p, nor it is echoed by "echo $MARK" .
I tried to include this variable "MARK" also in the path.sh file attached in my previous post:
Code:
# cat path.sh                                                                                                           
MARK=008                                                                                                                
PATH=/usr/local/bin:/usr/bin:/bin                                                                                       
[ $(id -u) -eq 0 ] && PATH="/usr/local/sbin:/usr/sbin:/sbin:$PATH"                                                      
export PATH MARK
but it is still not listed in the exported variables (obviously PATH variable is listed!)
This is what is listed in the exported variable list:
Code:
# export -p                                                                                                             
export HOME='/'                                                                                                         
export PATH='/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin'                                                             
export PREVLEVEL='N'                                                                                                    
export PWD='/'                                                                                                          
export RUNLEVEL='3'                                                                                                     
export TERM='linux'
I'm starting to run out of ideas...
 
  


Reply



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
How to automate installation commands? ASTRAPI Linux - Newbie 4 04-28-2014 03:33 PM
trying to automate wget commands Spawn10 General 5 09-22-2010 09:49 PM
How to automate 'net cat' commands ? b0nd Linux - General 2 08-27-2008 06:52 AM
Automate Commands at Boot up Ace Blackwell Linux - Newbie 1 04-21-2008 12:09 PM

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

All times are GMT -5. The time now is 04:17 AM.

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
Open Source Consulting | Domain Registration