Re: exporting a variable to global shells

2007-05-15 Thread cga2000
On Tue, May 15, 2007 at 01:10:41AM EDT, Alex Samad wrote: > what about something like this > > > NL=' > ' > IFS=$NL > set -- $(find "$IND" -regextype posix-egrep -type f -iregex > ".*\.(ogg)" > -printf "%P\n") > unset IFS > >

Re: exporting a variable to global shells

2007-05-14 Thread Alex Samad
On Mon, May 14, 2007 at 02:49:21PM -0700, Bob McGowan wrote: > Alex Samad wrote: > >On Mon, May 14, 2007 at 09:13:32AM -0700, Bob McGowan wrote: > >>cga2000 wrote: > >>>On Fri, May 11, 2007 at 12:33:12PM EDT, Bob McGowan wrote: > >>> > >>> > >>> > 3. in the parent script, where you use your s

Re: exporting a variable to global shells

2007-05-14 Thread cga2000
On Mon, May 14, 2007 at 05:49:21PM EDT, Bob McGowan wrote: > Further processing would then need be done on the string to break it up > into pieces, or not, as dictated by the needs of the caller. My 'child > | read a b c d' is a quick way to read in the multiple lines output by > your method

Re: exporting a variable to global shells

2007-05-14 Thread Bob McGowan
Alex Samad wrote: On Mon, May 14, 2007 at 09:13:32AM -0700, Bob McGowan wrote: cga2000 wrote: On Fri, May 11, 2007 at 12:33:12PM EDT, Bob McGowan wrote: 3. in the parent script, where you use your script, change it to be: So: $ echo a b c d | read x y z p $ echo $x $y $z $p a

Re: exporting a variable to global shells

2007-05-14 Thread Alex Samad
On Mon, May 14, 2007 at 09:13:32AM -0700, Bob McGowan wrote: > cga2000 wrote: > >On Fri, May 11, 2007 at 12:33:12PM EDT, Bob McGowan wrote: > > > > > > > >> 3. in the parent script, where you use your script, change it to be: > >> > >> HTTP_proxy=$(getproxyip) > > > >.. you can take it one t

Re: exporting a variable to global shells

2007-05-14 Thread Bob McGowan
cga2000 wrote: On Fri, May 11, 2007 at 12:33:12PM EDT, Bob McGowan wrote: 3. in the parent script, where you use your script, change it to be: HTTP_proxy=$(getproxyip) .. you can take it one tiny step further by using an array: . child: cz=($c0 $c1 $c2)/* .. $c4 .. etc.

Re: exporting a variable to global shells

2007-05-12 Thread cga2000
On Fri, May 11, 2007 at 12:33:12PM EDT, Bob McGowan wrote: > 3. in the parent script, where you use your script, change it to be: > > HTTP_proxy=$(getproxyip) .. you can take it one tiny step further by using an array: . child: cz=($c0 $c1 $c2)/* .. $c4 .. etc.

Re: exporting a variable to global shells

2007-05-11 Thread Douglas Allan Tutty
On Fri, May 11, 2007 at 08:53:18AM -0500, Ron Johnson wrote: > > On 05/11/07 08:24, Jan-Florian Hilgenberg wrote: > > Hi guy's, first I am german, so ignore my bad english please ;-) > > > > i want to get a variable out of a child shell in it parent shell, the sense > > is, that I want to use the

Re: exporting a variable to global shells

2007-05-11 Thread Andrew Sackville-West
On Fri, May 11, 2007 at 08:53:18AM -0500, Ron Johnson wrote: > On 05/11/07 08:24, Jan-Florian Hilgenberg wrote: > > Hi guy's, first I am german, so ignore my bad english please ;-) > > > > i want to get a variable out of a child shell in it parent shell, the sense > > is, that I want to use the Pr

Re: exporting a variable to global shells

2007-05-11 Thread Andrew Sackville-West
On Fri, May 11, 2007 at 03:35:30PM +0100, Karl E. Jorgensen wrote: > On Fri, May 11, 2007 at 03:24:46PM +0200, Jan-Florian Hilgenberg wrote: > > > But i wish that my System get a IP for ethernet on every bootup, I know > > there is the option to put a process in the background by "command &", wher

Re: exporting a variable to global shells

2007-05-11 Thread Bob McGowan
Jan-Florian Hilgenberg wrote: Hi guy's, first I am german, so ignore my bad english please ;-) i want to get a variable out of a child shell in it parent shell, the sense is, that I want to use the ProxyServer of my school automaticly if it is pingable, the script isn't hard but the variable i

Re: exporting a variable to global shells

2007-05-11 Thread Liam O'Toole
On Fri, 11 May 2007 15:24:46 +0200 "Jan-Florian Hilgenberg" <[EMAIL PROTECTED]> wrote: > Hi guy's, first I am german, so ignore my bad english please ;-) No problem. I assure you, it's a lot better than my German :-) > > i want to get a variable out of a child shell in it parent shell, the > se

Re: exporting a variable to global shells

2007-05-11 Thread Karl E. Jorgensen
On Fri, May 11, 2007 at 03:24:46PM +0200, Jan-Florian Hilgenberg wrote: > Hi guy's, first I am german, so ignore my bad english please ;-) Kein problem. (or is it "Keine problem"? feminimum for "problem" is so much more appropriate than neutrum/maskulinum...) > i want to get a variable out of a

Re: exporting a variable to global shells

2007-05-11 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/11/07 08:24, Jan-Florian Hilgenberg wrote: > Hi guy's, first I am german, so ignore my bad english please ;-) > > i want to get a variable out of a child shell in it parent shell, the sense > is, that I want to use the ProxyServer of my school a

exporting a variable to global shells

2007-05-11 Thread Jan-Florian Hilgenberg
Hi guy's, first I am german, so ignore my bad english please ;-) i want to get a variable out of a child shell in it parent shell, the sense is, that I want to use the ProxyServer of my school automaticly if it is pingable, the script isn't hard but the variable isn't fully global after exporting