Click to See Complete Forum and Search --> : Xterm- passing .profile????


Gaxus
07-30-2002, 04:51 AM
HMmmm

Well I want to pass the file 'profile' into xterm so when I load it , all my settings are up...

Is there a way to do this???!?!

SIDE NOTE- kinda related....

I also want to do the same thing with SU-- pass the root/.profile into it so all the paths and stuff are set up.....

The only way I can think of is to 'source' the profile....... yet when I try:

'xterm -e source /etc/profile'

it comes up with "Can't execvp source: No such file or directory"

Now I hardly know what 'source' is ....... even if I try to "find /* -mount -type f | grep source" I don't see it!!!

Anyway.....
Even if that worked, there would be the problem of keeping the xterm window open......

Thanks in advance. :confused:

Gaxus
07-30-2002, 02:38 PM
Thanks for all the help:mad:

LOL well I figured it out anyway and all it took was a visit to the BASH HOW-TO :D

Basically, I needed to ADD for both my users a '.bashrc' file - with all the stuff contained in my '.profile'.... dunno why this is , but it worked :p

Gaxus
07-30-2002, 02:58 PM
Nearly forgot- had to run xterm like this 'xterm -ls' as a login shell....

mdwatts
07-30-2002, 05:55 PM
Originally posted by Gaxus
Thanks for all the help:mad:



The volunteers that spend hours and hours of their day trying to help other members on this site are not always Linux gurus and thus do not know the answer to every single question posted. I for one have to work during the day. We do try...

I for one knew that the .profile is not sourced when starting a xterm. You have to use .bashrc or .bash_profile.

Pity I didn't see your post earlier and I would have saved you from having to read the documentation. :D

Gaxus
07-30-2002, 06:21 PM
It's glad to know you didn't do it on purpose :D

The volunteers that spend hours and hours of their day trying to help other members on this site are not always Linux gurus and thus do not know the answer to every single question posted. I for one have to work during the day. We do try...

I know you guys try.... BUT IT AINT GOOD ENOUGH, IT JUST AINT!!!!!!! :o

LOL If I hurt anyone's feelings with my previous post I apologize. I meant no disrespect, just a little joking around. Learn to take my posts with a grain of salt and you will all be fine.... :D

...... for a while :rolleyes: ;)