Please Stop (Was: environment variables in perl)

2011-07-18 Thread Shawn H Corey
Could someone please remove lel...@claimspages.com from the mailing list so I won't get any more of these annoying messages? Original Message Subject: Re: Re: environment variables in perl Date: Mon, 18 Jul 2011 09:31:05 -0400 From: RightFax E-mail Gateway To: sha

Re: environment variables in perl

2011-07-18 Thread Shawn H Corey
On 11-07-18 09:24 AM, Christian Walde wrote: On Mon, 18 Jul 2011 13:44:39 +0200, Shawn H Corey wrote: In Windows, there is only one environment. That means if a child process changes it, its parent can access the change. In Linux, each process has its own environment. The child process inheri

Re: environment variables in perl

2011-07-18 Thread Christian Walde
On Mon, 18 Jul 2011 13:44:39 +0200, Shawn H Corey wrote: In Windows, there is only one environment. That means if a child process changes it, its parent can access the change. In Linux, each process has its own environment. The child process inherits its parent's at the time of the fork and

Re: environment variables in perl

2011-07-18 Thread Shawn H Corey
On 11-07-18 07:29 AM, Irfan Sayed wrote: if i do in perl like this : print "Environment is : $ENV{'build'}\n"; then it does not pint anything can someone please suggest ?? In Windows, there is only one environment. That means if a child process changes it, its parent can access the change.

environment variables in perl

2011-07-18 Thread Irfan Sayed
hi, i am executing one shell script within perl script. now what i need is , i need to make available all the variables set by that shell script to perl script for example following is the shell script build="abc" export build echo $build now the value of $build i need to access in perl script

environment variables in perl

2011-07-18 Thread Irfan Sayed
hi, i am executing one shell script within perl script. now what i need is , i need to make available all the variables set by that shell script to perl script for example following is the shell script build="abc" export build echo $build now the value of $build i need to access in perl script

Re: How to get environment variables from child shell

2010-05-28 Thread Paul Johnson
On Thu, May 27, 2010 at 04:51:45PM -0700, Bob Sadri wrote: > Hi > I have a perl script that calls a csh script. The csh script sources some > environment variables (among others). When the control comes back to my > perl script I like to use the environment variables set in th

Re: How to get environment variables from child shell

2010-05-27 Thread Steve Bertrand
On 2010.05.27 20:15, Marilyn Sander wrote: > > On May 27, 2010, at 4:58 PM, Jim Gibson wrote: > >> On 5/27/10 Thu May 27, 2010 4:51 PM, "Bob Sadri" >> scribbled: >> >>> Hi >>> I have a perl script that calls a csh script. The csh scri

Re: How to get environment variables from child shell

2010-05-27 Thread Marilyn Sander
On May 27, 2010, at 4:58 PM, Jim Gibson wrote: > On 5/27/10 Thu May 27, 2010 4:51 PM, "Bob Sadri" > scribbled: > >> Hi >> I have a perl script that calls a csh script. The csh script sources some >> environment variables (among others). When the cont

Re: How to get environment variables from child shell

2010-05-27 Thread Jim Gibson
On 5/27/10 Thu May 27, 2010 4:51 PM, "Bob Sadri" scribbled: > Hi > I have a perl script that calls a csh script. The csh script sources some > environment variables (among others). When the control comes back to my > perl script I like to use the environment variables

How to get environment variables from child shell

2010-05-27 Thread Bob Sadri
Hi I have a perl script that calls a csh script. The csh script sources some environment variables (among others). When the control comes back to my perl script I like to use the environment variables set in the csh script. However, since this has happened in the child shell environment I am not

Re: Using System to read mixed cased environment variables on Windows

2008-06-28 Thread sisyphus
On Jun 29, 1:18 am, [EMAIL PROTECTED] (Rob Dixon) wrote: . . > > All of the keys of %ENV are capitalized for Windows as the environment > variable > names aren't case-sensitive. > However, I'm finding that system() honours case-preservation. From my reply to the same thread in comp.lang.perl.misc

Re: Using System to read mixed cased environment variables on Windows

2008-06-28 Thread Rob Dixon
Dr.Ruud wrote: > ThierryLam schreef: > >> system("set PYTHON"); >> system("set ProgramFiles"); >> >> Output is: >> PYTHON=C:\Python24\python.exe >> PROGRAMFILES=C:\Program Files >> >> You'll notice that through system, the environment variable >> ProgramFiles is all in upper case. Is there a way

Re: Using System to read mixed cased environment variables on Windows

2008-06-28 Thread Dr.Ruud
ThierryLam schreef: > system("set PYTHON"); > system("set ProgramFiles"); > > Output is: > PYTHON=C:\Python24\python.exe > PROGRAMFILES=C:\Program Files > > You'll notice that through system, the environment variable > ProgramFiles is all in upper case. Is there a way to preserve the > mixed ca

Re: Using System to read mixed cased environment variables on Windows

2008-06-28 Thread Rob Dixon
ThierryLam wrote: > > On Windows XP Pro 32 bit, if I want to output environment variables > PYTHON or ProgramFiles, I use the set command which output the > following: > > C:\set PYTHON > PYTHON=C:\Python24\python.exe > C:\set ProgramFiles > ProgramFiles=C:\Progra

Re: Using System to read mixed cased environment variables on Windows

2008-06-27 Thread Jeff Peng
On Sat, Jun 28, 2008 at 1:52 AM, ThierryLam <[EMAIL PROTECTED]> wrote: > > You'll notice that through system, the environment variable > ProgramFiles is all in upper case. Is there a way to preserve the > mixed case of the environment variable through system(...)? > Could use a regex, but maybe

Using System to read mixed cased environment variables on Windows

2008-06-27 Thread ThierryLam
On Windows XP Pro 32 bit, if I want to output environment variables PYTHON or ProgramFiles, I use the set command which output the following: C:\set PYTHON PYTHON=C:\Python24\python.exe C:\set ProgramFiles ProgramFiles=C:\Program Files If I used Perl 5.003_07 and use the system subroutine to

Re: How to manipulate environment variables in parent process?

2006-11-15 Thread Jay Savage
On 11/12/06, siegfried <[EMAIL PROTECTED]> wrote: Is it possible to write a perl script to manipulate the environment variables in a windows CMD.EXE shell? Normally, you can manipulate environment variables, but they only have effect for sub processes. I need to change the val

Re: RE: How to manipulate environment variables in parent process?

2006-11-15 Thread Tom Phoenix
ut its knowledge and consent. The parent process in your case is no exception: If the child were able to change the parent's environment, the parent couldn't trust its own data. So each process has its own table of environment variables (copied from its parent's table at laun

Re: How to manipulate environment variables in parent process?

2006-11-14 Thread Matt Johnson
siegfried wrote: >>> I think the best I could hope for would be to write a perl script that >>> generated a bat file and then I manually execute the bat file. I don't >>> think there is anyway to automate the execution of the bat file. >> I'm sure that there is; if you can't put it into its own bat

Re: How to manipulate environment variables in parent process?

2006-11-14 Thread Rob Dixon
siegfried wrote: I think the best I could hope for would be to write a perl script that generated a bat file and then I manually execute the bat file. I don't think there is anyway to automate the execution of the bat file. I'm sure that there is; if you can't put it into its own bat file, you c

RE: How to manipulate environment variables in parent process?

2006-11-14 Thread siegfried
>> I think the best I could hope for would be to write a perl script that >> generated a bat file and then I manually execute the bat file. I don't >> think there is anyway to automate the execution of the bat file. > >I'm sure that there is; if you can't put it into its own bat file, you >could ha

Re: How to manipulate environment variables in parent process?

2006-11-12 Thread Tom Phoenix
On 11/12/06, siegfried <[EMAIL PROTECTED]> wrote: Is it possible to write a perl script to manipulate the environment variables in a windows CMD.EXE shell? Yes, if the shell allows it, or if you start the shell yourself. I need to change the values of environment variables for the

How to manipulate environment variables in parent process?

2006-11-12 Thread siegfried
Is it possible to write a perl script to manipulate the environment variables in a windows CMD.EXE shell? Normally, you can manipulate environment variables, but they only have effect for sub processes. I need to change the values of environment variables for the parent process. I have a

RE: set environment variables

2005-07-18 Thread arjun.mallik
- TELECOM SOLUTIONS) Cc: [EMAIL PROTECTED]; beginners@perl.org Subject: Re: set environment variables "Because it's up-side down. Why is that? It makes replies harder to read. Why not? Please don't top-post." - Sherm Pendley, Mac OS X list [EMAIL PROTECTED] wrote: > Hi , &g

Re: set environment variables

2005-07-18 Thread Wiggins d'Anconia
emi-colon. It is because each call to 'system' creates its own exclusive subshell that the more obvious, system("export VAR=value"); system("some_other_command"); Does not work. http://danconia.org > > > > > > -Original Message- > From:

RE: set environment variables

2005-07-18 Thread arjun.mallik
---Original Message- From: Nishi Prafull [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 19, 2005 1:49 AM To: Perl Beginners List Subject: set environment variables Hi: I need to run a script noted by $cmd1 from within perl but before that i need to set the environment variable. how can i do it? I

set environment variables

2005-07-18 Thread Nishi Prafull
Hi: I need to run a script noted by $cmd1 from within perl but before that i need to set the environment variable. how can i do it? I tried my $TEMPHOME = "/tmp"; system($cmd1); But the script still complains the $TEMPHOME is not set. Thanks. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For addi

Re: set environment variables

2005-07-18 Thread Nishi Prafull
I ttied it inside the perl script, but does not seem to work. I did a echo for $TEMPHOME but it was not set. On 7/18/05, John W. Krahn <[EMAIL PROTECTED]> wrote: > Nishi Prafull wrote: > > Hi: > > Hello, > > > I need to run a script noted by $cmd1 from within perl but before that > > i need to

Re: set environment variables

2005-07-18 Thread Scott R. Godin
Nishi Prafull wrote: On 7/18/05, John W. Krahn <[EMAIL PROTECTED]> wrote: Nishi Prafull wrote: Hi: Hello, I need to run a script noted by $cmd1 from within perl but before that i need to set the environment variable. how can i do it? I tried my $TEMPHOME = "/tmp"; system($cmd1); But th

Re: set environment variables

2005-07-18 Thread John W. Krahn
Nishi Prafull wrote: > Hi: Hello, > I need to run a script noted by $cmd1 from within perl but before that > i need to set the environment variable. how can i do it? > I tried > my $TEMPHOME = "/tmp"; > system($cmd1); > > But the script still complains the $TEMPHOME is not set. > Thanks. You pr

RE: Environment variables

2005-02-22 Thread Jason Wozniak
Jay [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 22, 2005 10:41 AM To: Jason Wozniak Cc: beginners@perl.org Subject: Re: Environment variables On Mon, 21 Feb 2005 16:14:43 -0500, Jason Wozniak <[EMAIL PROTECTED]> wrote: > That's what I thought, but it doesn't work, which is why

Re: Environment variables

2005-02-22 Thread Jay
On Mon, 21 Feb 2005 16:14:43 -0500, Jason Wozniak <[EMAIL PROTECTED]> wrote: > That's what I thought, but it doesn't work, which is why I tried system. > > The below code: > > use DBI; > > my $database; > #my $address = "[EMAIL PROTECTED]"; > my $address = "[EMAIL PROTECTED]"; > my %attr; > my $

RE: Environment variables

2005-02-21 Thread Graeme St. Clair
ginners@perl.org Subject: RE: Environment variables That's what I thought, but it doesn't work, which is why I tried system. The below code: use DBI; my $database; #my $address = "[EMAIL PROTECTED]"; my $address = "[EMAIL PROTECTED]"; my %attr; my $dbh; open MAIL, &qu

RE: Environment variables

2005-02-21 Thread Jason Wozniak
g output: P01 P01 P01 P01 P01 The file /u01/app/oracle/check_list.txt contains several different sids, and if I print $_ it is reading them in. -Original Message- From: Scott Pham [mailto:[EMAIL PROTECTED] Sent: Monday, February 21, 2005 4:05 PM To: Jason Wozniak Subject: Re: Environmen

Environment variables

2005-02-21 Thread Jason Wozniak
Hello, I'm trying to write a paging script that connects to several databases in succession, and was attempting to write the script such that I would not have to hard code any user names, or passwords, by using an externally identified user. I can connect to the first database in t

RE: Working with Environment Variables

2004-12-02 Thread Dave Kettmann
> -Original Message- > From: JupiterHost.Net [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 02, 2004 10:56 AM > To: Perl List (E-mail) > Subject: Re: Working with Environment Variables > > > Hello Dave, > > > #!/usr/bin/perl > > > &

Re: Working with Environment Variables

2004-12-02 Thread JupiterHost.Net
Hello Dave, #!/usr/bin/perl use strict; use warnings; my $from1 = $ENV{'SIP_HF_FROM'}; print $from1; __END__ I get: Use of uninitialized value in print at test.pl line 8. When I type "set" at the command line, I do see the variable SIP_HF_FROM ... ... SHLVL=1 SIP_HF_FROM=sip:+16364424593 SIP_RURI=B

RE: Working with Environment Variables

2004-12-02 Thread Moon, John
-Original Message- From: Dave Kettmann [mailto:[EMAIL PROTECTED] Sent: Thursday, December 02, 2004 11:14 AM To: Perl List (E-mail) Subject: Working with Environment Variables Hi List, I am trying to get an environment variable into another variable (for ease of use) and I am having

Working with Environment Variables

2004-12-02 Thread Dave Kettmann
Hi List, I am trying to get an environment variable into another variable (for ease of use) and I am having trouble. It seems to only be with 2 certain variables as I can do the following: #!/usr/bin/perl use strict; use warnings; my $path1 = $ENV{'PATH'}; print $path1 __END__ And it will

RE: setting the environment variables in perl

2004-07-27 Thread perl.org
inside > the Perl script. The whole point of environment variables is so the > user can establish his environment *before* invoking your script. I agree with this in general, but sometimes the environment in which your Perl runs cannot define these variables for you. For instance, Interwoven

RE: setting the environment variables in perl

2004-07-27 Thread u235sentinel
Good point in fact Oracle (for example) recommends setting the environment before you even install Oracle. To do it any other way invites trouble and as Oracle would say, you're on your own :-) > jason corbett wrote: > > How does one go about assuring that the environment

RE: setting the environment variables in perl

2004-07-27 Thread Bob Showalter
jason corbett wrote: > How does one go about assuring that the environment variables are > properly set in perl? I read several books, but none go in depth > about how to write a script that includes all the required variables, > that way nothing gets left out. It's really not a

Re: setting the environment variables in perl

2004-07-27 Thread Flemming Greve Skovengaard
on corbett wrote: How does one go about assuring that the environment variables are properly set in perl? I read several books, but none go in depth about how to write a script that includes all the required variables, that way nothing gets left out. Please advise. JC [snipet] #!/usr/bin/perl -w

Re: setting the environment variables in perl

2004-07-27 Thread Paul Kraus
wrote: > How does one go about assuring that the environment variables are properly set in > perl? I read several books, but none go in depth about how to write a script that > includes all the required variables, that way nothing gets left out. > > Please advise. > > JC &g

setting the environment variables in perl

2004-07-27 Thread jason corbett
How does one go about assuring that the environment variables are properly set in perl? I read several books, but none go in depth about how to write a script that includes all the required variables, that way nothing gets left out. Please advise. JC [snipet] #!/usr/bin/perl -w $ENV

RE: setting environment variables in IIS

2003-08-14 Thread Kipp, James
> How can I set up environment variables to be used in the > script in IIS ? > use the %ENV hash. example: $ENV{PATH} = "/bin/foo:/usr/bin"; -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

setting environment variables in IIS

2003-08-10 Thread Sethi, Pradeep
Hi, How can I set up environment variables to be used in the script in IIS ? Thanks, Pradeep

Re: Environment variables

2003-03-21 Thread Todd W
"Ankit Gupta" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I want to print some linux environment variables that have already been set. > Could some one let me know which command I can use to get value of > environment variables. > he

Environment variables

2003-03-21 Thread Ankit Gupta
Hi, I want to print some linux environment variables that have already been set. Could some one let me know which command I can use to get value of environment variables. Regards, Ankit -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: persisting environment variables

2003-02-20 Thread Paul
--- Steve Main <[EMAIL PROTECTED]> wrote: > I have an Oracle "framework" that I am rewriting in Perl so it will > be more portable. I am pretty new to Perl (couple of months) and > I didn't realize that I couldn't "source" a Perl script like > I can with the Korn shell scripts. Are you running t

RE: persisting environment variables

2003-02-20 Thread Steve Main
s piece as is Thanks for your help everyone. -Original Message- From: Kipp, James [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 20, 2003 9:15 AM To: 'Steve Main'; perl beginners Subject: RE: persisting environment variables > It's a utility that allows user

RE: persisting environment variables

2003-02-20 Thread Kipp, James
> It's a utility that allows users to change their Oracle environments, > so when they logon they can run the utility and select an Oracle > environment to set (ORACLE_SID, ORACLE_HOME, etc). It also allows > them to change environments, say going from DEV to TEST. I > have a Korn > shell > sc

RE: persisting environment variables

2003-02-20 Thread Bob Showalter
Steve Main wrote: > Hello list, > > Does anyone know how to set an environment variable in Perl and then > have that variable persist after the Perl script has ended? > > I'm working in Unix. Really can't be done. A process cannot change its parent's environment. There are various hacks that ca

Re: persisting environment variables

2003-02-20 Thread Paul
--- Steve Main <[EMAIL PROTECTED]> wrote: > Does anyone know how to set an environment variable in Perl and then > have that variable persist after the Perl script has ended? > I'm working in Unix. Variables can be inherited by subshells, but never passed back up to a parent process. You Perl scr

RE: persisting environment variables

2003-02-20 Thread Steve Main
does this but I was trying to rewrite it in Perl. Working on Solaris. -Original Message- From: Kipp, James [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 20, 2003 8:52 AM To: 'Steve Main'; perl beginners Subject: RE: persisting environment variables > > Hello l

RE: persisting environment variables

2003-02-20 Thread Kipp, James
> > Hello list, > > Does anyone know how to set an environment variable in Perl and then > have that variable persist after the Perl script has ended? > > I'm working in Unix. > why not just set the env variable in your unix shell or startup scripts. what flavor of unix are you working with?

persisting environment variables

2003-02-20 Thread Steve Main
Hello list, Does anyone know how to set an environment variable in Perl and then have that variable persist after the Perl script has ended? I'm working in Unix. Thanks -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How to set environment variables

2003-02-17 Thread Paul
--- Madhu Reddy <[EMAIL PROTECTED]> wrote: > Hi, > I want to put MFILE=mdl_data.txt in ENV and want to > access later.. > i am trying following...I am getting error... > system(`MFILE=mdl_data.txt`); > $k6 = "MFILE"; > $key6 = $ENV{$k6}; > print "$key6 \n"; > how to do this ? The system() call

How to set environment variables

2003-02-17 Thread Madhu Reddy
Hi, I want to put MFILE=mdl_data.txt in ENV and want to access later.. i am trying following...I am getting error... system(`MFILE=mdl_data.txt`); $k6 = "MFILE"; $key6 = $ENV{$k6}; print "$key6 \n"; how to do this ? Thanx -Madhu __ Do you Yah

RE: Environment variables and Win32::ODBC

2002-11-07 Thread Daryl J. Hoyt
I think the line is supposed to be: use Win32::ODBC; Thanks, Daryl J. Hoyt Software Engineer Geodesic Systems < http://www.geodesic.com> < mailto:djh@;geodesic.com> -Original Message- From: Angel Iliev Kafazov [mailto:angel.kafazov@;mail.bg] Sent: Thursday, November 07, 2002 12:48 PM

Re: Checking environment variables...outputting to file

2002-06-11 Thread drieux
On Tuesday, June 11, 2002, at 09:14 , phumes1 wrote: > This way if someone runs the script from a command prompt I output it to > the screen using >CON: and if its run from a web browser then I redirect > it to a file and then read that file to the browser after completion > using >output.txt

RE: FETCHING ENVIRONMENT VARIABLES

2002-06-11 Thread Nikola Janceski
2002 3:08 PM > To: Nikola Janceski > Cc: phumes1; [EMAIL PROTECTED] > Subject: RE: FETCHING ENVIRONMENT VARIABLES > > > That's a lot of work, and Philip has said he doesn't know how to use a > hash. --

Re: FETCHING ENVIRONMENT VARIABLES

2002-06-11 Thread phumes1
_}\n" for (sort keys %ENV); > >On 06/11, phumes1 said something like: > > > > I have a problem...I don't know how to use a hash. :-( > > > > > > At 02:50 PM 6/11/2002 -0400, you wrote: > > >On Jun 11, phumes1 said: > > > > > > >

RE: FETCHING ENVIRONMENT VARIABLES

2002-06-11 Thread Jeff 'japhy' Pinyan
On Jun 11, Nikola Janceski said: >my @allenv = map { [$_, $ENV{$_} ] } keys %ENV; > >local $" = "--"; >foreach my $env (@allenv){ > print "@{$env}\n"; >} That's a lot of work, and Philip has said he doesn't know how to use a hash. for (sort keys %ENV) { print "$_ => '$ENV{$_}'\n";

RE: FETCHING ENVIRONMENT VARIABLES

2002-06-11 Thread phumes1
ach my $env (@allenv){ > print "@{$env}\n"; >} > > > -Original Message- > > From: Jeff 'japhy' Pinyan [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, June 11, 2002 2:50 PM > > To: phumes1 > > Cc: [EMAIL PROTECTED] > > Subj

RE: FETCHING ENVIRONMENT VARIABLES

2002-06-11 Thread Felix Geerinckx
on Tue, 11 Jun 2002 18:57:46 GMT, Nikola Janceski wrote: > couldn't he do: > > my @allenv = map { [$_, $ENV{$_} ] } keys %ENV; > > local $" = "--"; > foreach my $env (@allenv){ > print "@{$env}\n"; > } Personally, I prefer print "$_--$ENV{$_}\n" for (keys %ENV); -- felix --

RE: FETCHING ENVIRONMENT VARIABLES

2002-06-11 Thread Nikola Janceski
June 11, 2002 2:50 PM > To: phumes1 > Cc: [EMAIL PROTECTED] > Subject: Re: FETCHING ENVIRONMENT VARIABLES > > > On Jun 11, phumes1 said: > > >How can fetch all the environment variables and print them > to the screen? > > The %ENV hash holds all the environme

Re: FETCHING ENVIRONMENT VARIABLES

2002-06-11 Thread phumes1
I have a problem...I don't know how to use a hash. :-( At 02:50 PM 6/11/2002 -0400, you wrote: >On Jun 11, phumes1 said: > > >How can fetch all the environment variables and print them to the screen? > >The %ENV hash holds all the environment variables. > >If yo

Re: FETCHING ENVIRONMENT VARIABLES

2002-06-11 Thread Jeff 'japhy' Pinyan
On Jun 11, phumes1 said: >How can fetch all the environment variables and print them to the screen? The %ENV hash holds all the environment variables. If you know how to use a hash, you can display all the environment variables. -- Jeff "japhy" Pinyan [EMAIL PROTECT

FETCHING ENVIRONMENT VARIABLES

2002-06-11 Thread phumes1
Hi, How can fetch all the environment variables and print them to the screen? +---+ Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED

Re: Checking environment variables...outputting to file

2002-06-11 Thread phumes1
OK...thanks for all the great examples but because I'm running either manually from a command prompt our from a batch file via web browser they are both being executed as a command prompt. This is how ColdFusion sees it. SoI have a batch file with the following line. Note: The runme.exe i

Re: Checking environment variables...outputting to file

2002-06-11 Thread drieux
On Tuesday, June 11, 2002, at 09:58 , phumes1 wrote: > Weird. > > I put the below lines in my perl script and ran it from the command > prompt and from a web browser yet the results are telling me > that "You have started this script from the command prompt" > > Why? > > Is the HTTP_USER_AGENT

Re: Checking environment variables...outputting to file

2002-06-11 Thread phumes1
d this script from the command prompt \n"; } ># > >Good luck !! > >Regs David >----- > > > Hi, > > > > I thought of another way possibly...of doing this. > > > > Is there a way through environment variables (or someother way) to >

Fwd: Re: Checking environment variables...outputting to file

2002-06-11 Thread phumes1
+0200 (METDST) >From: David vd Geer Inhuur tbv IPlib <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED], [EMAIL PROTECTED] >Subject: Re: Checking environment variables...outputting to file > > >Hi, > >There should be many ENV that would only be set if you are using a >brow

Re: Checking environment variables...outputting to file

2002-06-11 Thread David vd Geer Inhuur tbv IPlib
else { print "You have started this script from the command prompt \n"; } # Good luck !! Regs David - > Hi, > > I thought of another way possibly...of doing this. > > Is there a way through environment variables (or someother way) to check to >

Checking environment variables...outputting to file

2002-06-11 Thread phumes1
Hi, I thought of another way possibly...of doing this. Is there a way through environment variables (or someother way) to check to see if the perl script is being run via command prompt or from a browser (web interface)? This way if someone runs the script from a command prompt I output it

Environment Variables help

2002-03-02 Thread Naika - EV1
Can anyone help with this? On a script that is writing to a file I'm able to get some of the variables but not others. Why? $ipaddress = "$ENV{'REMOTE_ADDR'}"; ## Works Fine $where_from = "$ENV{'HTTP_REFERER'}"; ## only seems to report the current page being viewed $host = "$ENV{'REMO

RE: How to export environment variables in Win32

2002-01-31 Thread Timothy Johnson
Download the Win32::AdminMisc module from http://www.roth.net/perl. The SetEnvVar() function will do what you want. Keep in mind that while new windows will have the new environment variables, the environment the script is running uner will still have to be set manually using the %ENV hash or

Re: How to export environment variables in Win32

2002-01-31 Thread Pozsar Balazs
gt; is far more clever. > > The original batch file setted two environment variables > which were available after running the script. That is, > if I did > c:> cvs-init.bat > > it has commands like > set CVSROOT=:pserver:user@aCVSserver:/usr/local/cvsroot > >

How to export environment variables in Win32

2002-01-31 Thread Adriano Rodrigues Ferreira
I thought it would be a good idea to replace a batch script (.bat) running on a Windows 2000 with a Perl script which is far more clever. The original batch file setted two environment variables which were available after running the script. That is, if I did c:> cvs-init.bat it has comma

RE: child processes and environment variables

2001-12-31 Thread Maciejewski, Thomas
cant control it ... my company appends it to all messages sent from the company sorry -Original Message- From: Andrea Holstein [mailto:[EMAIL PROTECTED]] Sent: Saturday, December 29, 2001 9:01 AM To: [EMAIL PROTECTED] Subject: Re: child processes and environment variables Thomas

Re: child processes and environment variables

2001-12-29 Thread Paul Johnson
On Fri, Dec 28, 2001 at 12:20:16PM -0500, Maciejewski, Thomas wrote: > I am having an issue when spawning a child I understand that this is not uncommon and should not cause undue concern. > it appears that the environment variable is not being passed to the child > process here is the code:

Re: child processes and environment variables

2001-12-29 Thread Andrea Holstein
Thomas Maciejewski wrote: > > -- > This message is intended only for the personal and confidential use of the >designated recipient(s) named above. If you are not the intended recipient of this >message you are hereby

child processes and environment variables

2001-12-28 Thread Maciejewski, Thomas
I am having an issue when spawning a child it appears that the environment variable is not being passed to the child process here is the code: my $kidpid = open($fh, "-|"); if (! $kidpid) { open(STDERR, "> /dev/null"); # rlog may complain; ignore.

child processes and environment variables

2001-12-28 Thread Maciejewski, Thomas
I am having an issue when spawning a child it appears that the environment variable is not being passed to the child process here is the code: my $kidpid = open($fh, "-|"); if (! $kidpid) { open(STDERR, "> /dev/null"); # rlog may complain; ignore.

Re: Environment Variables..

2001-12-14 Thread Michael Fowler
On Wed, Dec 12, 2001 at 02:10:37PM +1000, Lorne Easton wrote: > As in the attached code: The variables do not "unlink" when the program > exits or when I specify to unlink. What variables? What do you mean by unlink? Do you mean the variables are removed from memory? Provided you're running th

RE: Environment Variables..

2001-12-12 Thread Lorne Easton
As in the attached code: The variables do not "unlink" when the program exits or when I specify to unlink. I.E: If I run this program once, then run it again with incorrect domain specified it gives the same information. Is there any way of gracefully "exiting" and removing all the variables fro

RE: Reading Environment Variables

2001-11-27 Thread Bob Showalter
> -Original Message- > From: Mcgregory Pinto [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, November 27, 2001 3:02 PM > To: [EMAIL PROTECTED] > Subject: Reading Environment Variables > > > Hi all ... > > I´m working in a Unix environment, and I´ve two shell

Re: Reading Environment Variables

2001-11-27 Thread Michael Fowler
;zzz.sh") > my $grg = $ENV{GRG}; > print "$grg\n"; // must print 'zzz' > > How can i do this ??? You can't. A child process cannot affect a parent's environment variables. You'll have to do something else, such as assign `zzz.sh` (that is

Reading Environment Variables

2001-11-27 Thread Mcgregory Pinto
Hi all ... I´m working in a Unix environment, and I´ve two shell scripts xxx.sh and zzz.sh. This scripts change the value of environment variable GRG initialized with 'aaa'. The first fill with 'xxx' the second fill with 'zzz'. I need to call this scripts in a Perl script and get the variable GRG

Re: accessing environment variables

2001-10-19 Thread Greg . Froese
Thanks Brian and Marcus. $^O is exactly what I needed. _brian_d_foy <[EMAIL PROTECTED]> 10/19/2001 08:44 AM To: [EMAIL PROTECTED] cc: Subject:Re: accessing environment variables In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Greg F

Re: accessing environment variables

2001-10-19 Thread _brian_d_foy
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Greg Froese) wrote: > I want to be able to test whether I'm in Windows or Linux, and this seems > like a good way to do it. you want $^O, not an environment variable. take a look inside CGI.pm for some example code. :) -- brian d foy <[EMAI

RE: accessing environment variables

2001-10-19 Thread HOLLAND-MORITZ,MARCUS (A-hsgGermany,ex1)
--Original Message- | From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] | Sent: Friday, October 19, 2001 2:15 PM | To: [EMAIL PROTECTED] | Subject: accessing environment variables | | | How do I access Windows environment vars? | | I want to be able to test whether I'm in Windows or Linu

accessing environment variables

2001-10-19 Thread Greg . Froese
How do I access Windows environment vars? I want to be able to test whether I'm in Windows or Linux, and this seems like a good way to do it. If there is an easier/better way, I'm all ears. Thanks Greg

Re: passing an array ref by environment variables

2001-07-16 Thread Ondrej Par
On Saturday 14 July 2001 22:18, Jeff 'japhy' Pinyan wrote: > > # prog1 > use Data::Dumper; > $ENV{ARRAY} = Dumper \@array; > > # prog2 > @array = @{ eval $ENV{ARRAY} }; > I would be really careful with that axe :) evaluating anything that you get from enviroment variable is a security

Re: passing an array ref by environment variables

2001-07-14 Thread Jeff 'japhy' Pinyan
On Jul 14, P. Schaub said: >is it possible to pass an array referenz >by an environment variable to another perl script ? No. The environment is not magical like that -- the place in memory of the reference in program A is not special to program B. You'll have to send a serialized version som

passing an array ref by environment variables

2001-07-14 Thread P. Schaub
Hi out there, is it possible to pass an array referenz by an environment variable to another perl script ? no1.pl my @Array=('A','B','C'); $ENV{Array}=\@Array; `./no2.pl`; no2.pl foreach my $Part (\@{ENV{Arra

Re: Cannot detect environment variables

2001-06-10 Thread Matt Cauthorn
back as the response. > > > > Then I did this (in Bash, Linux-Mandrake 7.2): > > > > MYVARIABLE=astring > > perl -e 'print $ENV{MYVARIABLE}, "\n";' > > > > It spits out nothing...why doesn't PERL detect any of my environmen

Re: Cannot detect environment variables

2001-06-10 Thread Karen Cravens
On 10 Jun 2001, at 15:16, Markus Peter wrote: > On Sun, 10 Jun 2001, George Petri wrote: > > It spits out nothing...why doesn't PERL detect any of my environment > > variables? This is critical in some CGI programs that I intend to write (but > > Well - becaus

  1   2   >