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

* Re: export as a normal user
   export as a normal user Tyler Spivey
@  ` Gregory Nowak
  0 siblings, 0 replies; 4+ messages in thread
From: Gregory Nowak @  UTC (permalink / raw)
  To: speakup

Yeah, that did it. Thanks.
Greg


On Wed, Aug 14, 2002 at 08:43:55PM +0000, Tyler Spivey wrote:
> 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.
> 
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup


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

* Re: export as a normal user
   Gregory Nowak
@  ` Aaron Howell
  0 siblings, 0 replies; 4+ messages in thread
From: Aaron Howell @  UTC (permalink / raw)
  To: speakup

Greg,
They are actually getting exported, but from within the context of the shell running the script, not from within your login shell's context.
So they are only visible while that shell (and hence the script) is active.
There's a way around this, but I can never remember how its done, its something to do with using exec I think.
Regards
Aaron
On Wed, Aug 14, 2002 at 09:15:27PM -0500, Gregory Nowak wrote:
> 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
> 
> 
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup

-- 
     +----------------------------------------------------------+
    /             |\      _,,,---,,_                           /|
   /              /,`.-'`'    -.  ;-;;,_                      / |
  /              |,4-  ) )-,_. ,\ (  `'-'                    /  |
 /             '---''(_/--'  `-'\_)                         /   |
+----------------------------------------------------------+    |
| Aaron Howell                  Kitten Internet            |    |
| aaron@kitten.net.au           Internet consultancy,      |    |
| Phone: +61-417-625550         System administration,     |    |
| fax: +61-7-36010099           system design/integration. |    |
| icq: 6715521                  http://www.kitten.net.au   |    |
|                                                          |    |
|                                                          |    +
|                                                          |   /
|                                                          |  /
|                                                          | /
|                                                          |/
+----------------------------------------------------------+





^ 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).