public inbox for speakup@linux-speakup.org
 help / color / mirror / Atom feed
* export as a normal user
@  Tyler Spivey
   ` Gregory Nowak
  0 siblings, 1 reply; 4+ messages in thread
From: Tyler Spivey @  UTC (permalink / raw)
  To: speakup

i'm not totally sure about this, but it should work as i describe below:
try:
source script-file
if the script file contains commands they will run, and exported vars will be exported.


^ permalink raw reply	[flat|nested] 4+ messages in thread
* export as a normal user
@  Gregory Nowak
   ` Aaron Howell
  0 siblings, 1 reply; 4+ messages in thread
From: Gregory Nowak @  UTC (permalink / raw)
  To: speakup

Hi all.

If I log in as a normal user, and have something like "export VAR='string'" in my '$HOME/.profile', that value exports just fine.

However, if I try to export as a normal user from any other script besides $HOME/.profile, the values don't get exported, even though I can export them just fine if I do it by hand at a bash prompt. Can someone please explain why this is, and how can I change it? Thanks in advance.
Greg



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~ UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
 export as a normal user Tyler Spivey
 ` Gregory Nowak
  -- strict thread matches above, loose matches on Subject: below --
 Gregory Nowak
 ` Aaron Howell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).