%ENV

2005-09-08 Thread Gergely Buday
Hi there, why is the script #!/usr/bin/perl foreach $key (sort keys %ENV) { print "$key=$ENV{$key}\n"; } returns much less variable than $ set using bash? - Gergely -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://l

env

2002-11-05 Thread Chris Knipe
Lo everyone, How do I read environment variables with perl? -- me -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

env

2008-12-05 Thread David Ehresmann
What is the difference between: %ENV %ENV_VARS thanks. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

$ENV

2001-06-07 Thread Luinrandir Hernson
I have tried perldoc -f env perldoc -f http perldoc -f %env perldoc -f $env to find documentation on %ENV. no luck anyone???

%ENV?

2004-03-15 Thread Mike Ni
Hey friends, Could anyone tell me where to find the man page for the "%ENV"? I didn't have too muck luck on www.perl.org nor with CPAN site. Perhaps I got the wrong ideal about perl's man page. Yet, I just can't seem to find the man page about "%ENV". I

Re: %ENV

2005-09-08 Thread John W. Krahn
Gergely Buday wrote: > Hi there, > > why is the script > > #!/usr/bin/perl > foreach $key (sort keys %ENV) { > print "$key=$ENV{$key}\n"; > } > > returns much less variable than > > $ set > > using bash? set is a bash built-in command

Re: %ENV

2005-09-08 Thread Nahalingam Kanakavel
above line, then it will show this thing also. prompt$ export MY_OWN='name' now you try, see the changes. On 9/8/05, Gergely Buday <[EMAIL PROTECTED]> wrote: > > Hi there, > > why is the script > > #!/usr/bin/perl > foreach $key (sort keys %ENV) { > pri

Re: %ENV

2005-09-08 Thread Tony Frasketi
rote: Hi there, why is the script #!/usr/bin/perl foreach $key (sort keys %ENV) { print "$key=$ENV{$key}\n"; } returns much less variable than $ set using bash? - Gergely -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://l

Re: %ENV

2005-09-08 Thread Wiggins d'Anconia
Please bottom post Tony Frasketi wrote: > I've had problems with this in this the past and found your solution to > work as long as I run my script from the bash command line. > > However if the script is run from a web page, I still do not get the > value of the environment variable that I h

ENV(Y)?

2005-10-14 Thread gustav
Hi there! I'd like to get a list of enviromentvariables from the *NIX-system. I'd like it in the format... ENV1=x1 ENv2=x2 ENV3=x3 and so on... I think I have to use ENV-command. (http://perldoc.perl.org/Env.html) Is that right? I don't understand how I get this kind of listing

RE: env

2002-11-05 Thread Timothy Johnson
They're automatically stored in the %ENV hash. Note that if you are using NT/2000/XP, you cannot use this hash to PERMANENTLY change environment variables. -Original Message- From: Chris Knipe [mailto:savage@;savage.za.org] Sent: Tuesday, November 05, 2002 11:13 AM To: [EMAIL PROT

Re: env

2002-11-09 Thread LRMK
%ENV hash contains all the environment vars run this pice of code foreach $key (sort keys %ENV){ print "$key = $ENV{$key}\n"; } - Original Message - From: "Chris Knipe" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 06,

$ENV{'REMOTE_ADDR'}

2003-08-14 Thread Dan Muey
Howdy, I realize that $ENV{'REMOTE_HOST'} and $ENV{'REMOTE_ADDR'} are handled differently and can be spoofed so don't worry I'm not basing any security on them. What I was wondering is on most unix and apache setups does Perl's $ENV{'REMOTE_ADDR&#x

Re: env

2008-12-05 Thread James Moser
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Dec 5, 2008, at 1:20 PM, David Ehresmann wrote: What is the difference between: %ENV %ENV_VARS %ENV is a special variable in Perl that contains the environment variables of your current environment. I have never seen %ENV_VARS and it

ENV HTTP_REFERER?

2001-06-06 Thread Dianne Van Dulken
Hi, I was hoping someone would be able to give me a clue how I could find the referer IP. If I use the Environment HTTP_REFERER, it will work in IE, but not in Netscape. Does anyone know of a method that allows me to read this? This is my first post, so I hope it is OK. Thanks Dianne

Re: $ENV

2001-06-07 Thread John Joseph Trammell
On Thu, Jun 07, 2001 at 07:51:50PM -0400, Luinrandir Hernson wrote: > I have tried > perldoc -f env > perldoc -f http > perldoc -f %env > perldoc -f $env > > to find documentation on %ENV. no luck > anyone??? perldoc perlvar -f is for builtin functions -- Just Another Perl Hacker.

Re: $ENV

2001-06-07 Thread Kevin Meltzer
perldoc perlvar Basically, it holds information about yout current environment. perl -wle 'print qq{$_ => $ENV{$_}\n} for keys %ENV'; Cheers, Kevin On Thu, Jun 07, 2001 at 07:51:50PM -0400, Luinrandir Hernson ([EMAIL PROTECTED]) spew-ed forth: > I have tried > perldoc

Re: $ENV

2001-06-07 Thread Philip Peeters
Hi Luinrandir, I had the same problem a while ago. I don't know where I finally got the information, but I now tend to use a little script that shows me all available %ENV :)) #!/usr/bin/perl use CGI # set flush right away after every write or print $|=1; # Get a

ENV & $HOME

2001-06-26 Thread Adam Theo
Hello, Adam Theo here; i am looking for a way my perl program can automatically get the home directory of the user. i have come accross the ENV module, and think it will work, but wish to know if it is a standard module with all perl distributions? linux, windows, mac, etc? also, what does

Re: %ENV?

2004-03-15 Thread Wiggins d Anconia
> Hey friends, > > Could anyone tell me where to > find the man page for the "%ENV"? > > I didn't have too muck luck on www.perl.org > nor with CPAN site. Perhaps I got the wrong ideal > about perl's man page. Yet, I just can't seem > to f

Re: %ENV?

2004-03-15 Thread Randy W. Sims
On 03/15/04 17:37, Mike Ni wrote: Hey friends, Could anyone tell me where to find the man page for the "%ENV"? I didn't have too muck luck on www.perl.org nor with CPAN site. Perhaps I got the wrong ideal about perl's man page. Yet, I just can't seem to find the m

Re: %ENV?

2004-03-15 Thread Randy W. Sims
On 03/15/04 22:25, Mike Ni wrote: Hey Randy, Am I right to think that each hasing pair are made of "name of environment variable" such as "PATH" and the "value" of the env variable? Yes, the environment variable names are the keys in the hash, and the value of

RE: %ENV?

2004-03-16 Thread Roberts Mr Richard L
is there any 'refresh' (in the browser) variable set in the ENV hash? sierrasurf -Original Message- From: Randy W. Sims [mailto:[EMAIL PROTECTED] Sent: Monday, March 15, 2004 10:56 PM To: Mike Ni Cc: [EMAIL PROTECTED] Subject: Re: %ENV? On 03/15/04 22:25, Mike Ni wrote: &

Re: %ENV?

2004-03-16 Thread Wiggins d Anconia
doc -f keys http://danconia.org > > > --- Wiggins d Anconia <[EMAIL PROTECTED]> wrote: > > > Hey friends, > > > > > > Could anyone tell me where to > > > find the man page for the "%ENV"? > > > > > > I didn't have too muck

RE: %ENV?

2004-03-16 Thread Mike Ni
I didn't get the chance to verify it. However, I think the %ENV will conver every single environment variables that have been defined by the users. You can write a small testing perl and dump out the %env. Hope this will help. Mike --- Roberts Mr Richard L <[EMAIL PROTECTED

$ENV{'HTTP_USER_AGENT'

2002-02-08 Thread Bernd Lach
Hi there, I have a problem in detecting any kind of environment variables. I always get a premature script error , when I launch sth like this. #!C:/Perl/bin/perl.exe -w use diagnostics; use strict; use CGI; $browser = $ENV{'HTTP_USER_AGENT'}; if ($browser =~ /Mozilla/) { #

$ENV{remote_user}?

2002-02-21 Thread IT Workflow - Terry Honeyford
ENV's back from the server, in particular the one my script is looking for - ($ENV{remote_user}) has anyone any idea why this is happening? TIA Terry

Regarding ENV PATH

2004-11-17 Thread Anish Kumar K.
Hi I have a PL file in say /home/anish And in the program I have specified the $BASE_ROOT=/home/anish suppose i move the program to /home/abctest The problem I am facing is the directory structure is failingas in the PL files it ishardcoded as /home/anish IS there any way using $ENV

Re: ENV(Y)?

2005-10-14 Thread Beau E. Cox
Hi Gustav - At 2005-10-13, 23:13:33 you wrote: >Hi there! > >I'd like to get a list of enviromentvariables from the *NIX-system. > >I'd like it in the format... >ENV1=x1 >ENv2=x2 >ENV3=x3 > >and so on... > >I think I have to use ENV-command. (http:/

Re: ENV(Y)?

2005-10-14 Thread gustav
gt;ENv2=x2 >>ENV3=x3 >> >>and so on... >> >>I think I have to use ENV-command. (http://perldoc.perl.org/Env.html) Is >>that right? I don't understand how I get this kind of listing. Please put >>me in right direction.. >> >> >>I

Re: ENV(Y)?

2005-10-14 Thread gustav
;> >> At 2005-10-13, 23:13:33 you wrote: >>>Hi there! >>> >>>I'd like to get a list of enviromentvariables from the *NIX-system. >>> >>>I'd like it in the format... >>>ENV1=x1 >>>ENv2=x2 >>>ENV3=x3 >>>

RE: $ENV{'REMOTE_ADDR'}

2003-08-14 Thread Dan Muey
> Dan Muey wrote: > > Howdy, > > > > I realize that $ENV{'REMOTE_HOST'} and $ENV{'REMOTE_ADDR'} > are handled > > differently and can be spoofed so don't worry I'm not basing any > > security on them. > > I'm

RE: $ENV{'REMOTE_ADDR'}

2003-08-14 Thread Dan Muey
> Dan Muey wrote: > > > Dan Muey wrote: > > > > Howdy, > > > > > > > > I realize that $ENV{'REMOTE_HOST'} and $ENV{'REMOTE_ADDR'} are > > > > handled differently and can be spoofed so don't worry I'm not &

RE: $ENV{'REMOTE_ADDR'}

2003-08-14 Thread Dan Muey
I think what I'll do is just log $ENV{'REMOTE_HOST'} and $ENV{'REMOTE_USER'} into a mysql database so I can review that info to watch for abusers. Since they are logging in that will help verify most everybody and if a user wants to give out his login info to other fo

RE: $ENV{'REMOTE_ADDR'}

2003-08-14 Thread Bob Showalter
Dan Muey wrote: > > Dan Muey wrote: > > > Howdy, > > > > > > I realize that $ENV{'REMOTE_HOST'} and $ENV{'REMOTE_ADDR'} are > > > handled differently and can be spoofed so don't worry I'm not > > > basing any secu

RE: $ENV{'REMOTE_ADDR'}

2003-08-14 Thread Bob Showalter
Dan Muey wrote: > Howdy, > > I realize that $ENV{'REMOTE_HOST'} and $ENV{'REMOTE_ADDR'} are handled > differently and can be spoofed so don't worry I'm not basing any > security on them. I'm no security expert, but how can these be spoofed?

Insecure $ENV{PATH}

2003-08-30 Thread PANNEER SELVAN
Hi, I am running a perl program with -T -W switches.. while executing system function , i am getting an error like Insecure $ENV{PATH} while running with -T switch at try.pl Any idea of solving this problem? - D.P.S

Env. var LC_ALL

2003-09-11 Thread Gisle Askestad
Hi I'm using RedHat 8.0 and Perl 5.8.0 I'm trying to install Time:HiRes from CPAN which is needed to use the File::Tail module. When running "Make" i get the error: Makefile:91: *** missing separator. Stop. Makefile.PL says: NOTE: if you get an error like this (the line number may vary): Makef

Re: ENV HTTP_REFERER?

2001-06-07 Thread Kevin Meltzer
; print "Content-type: text/html\n\n"; print qq{$_ => $ENV{$_}\n} for keys %ENV; If you are still having problems, I suggest sending questions to the beginners-cgi list, as that is the list for Perl/CGI type questions. HTH & Cheers, Kevin On Thu, Jun 07, 2001 at 11:35:49AM +1000,

Re[2]: $ENV

2001-06-09 Thread Tim Musson
CGI Environment "; foreach $env_var (keys %ENV) { print "$env_var = $ENV{$env_var}\n"; } print " \n"; Thursday, June 07, 2001, 8:01:37 PM, you wrote: PP> Hi Luinrandir, PP> I had the same problem a while ago. I don't know where I finally got PP> the inform

Re: ENV & $HOME

2001-06-26 Thread Michael Fowler
password database, using the current UID. There are variations, such as (getpwnam $ENV{LOGNAME})[7] and (getpwnam $ENV{USER})[7]. > i have come accross the ENV module, and think it will work, but wish to > know if it is a standard module with all perl distributions? It is. Env.pm is just a

Re: $ENV{'HTTP_USER_AGENT'

2002-02-08 Thread Kliment Ognianov
Bernd Lach wrote: >Hi there, > >I have a problem in detecting any kind of environment >variables. > >I always get a premature script error , when I launch sth like >this. > > >#!C:/Perl/bin/perl.exe -w >use diagnostics; >use strict; > >use CGI; &g

RE: $ENV{'HTTP_USER_AGENT'

2002-02-08 Thread Camilo Gonzalez
If you're trying to view your results in a browser, you need to generate HTTP headers. -Original Message- From: Bernd Lach [mailto:[EMAIL PROTECTED]] Sent: None To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: $ENV{'HTTP_USER_AGENT' Hi there, I have a problem in detect

Re: $ENV{'HTTP_USER_AGENT'

2002-02-08 Thread Jeff 'japhy' Pinyan
On , Bernd Lach said: >#!C:/Perl/bin/perl.exe -w >use diagnostics; >use strict; You're using strict and -w, good. >use CGI; > >$browser = $ENV{'HTTP_USER_AGENT'}; Oops. You didn't declare $browser. my $browser = $ENV{HTTP_USER_AGENT}; -- Jef

Re: $ENV{remote_user}?

2002-02-21 Thread Johannes Franken
On Thu, Feb 21, 2002 at 02:42:31PM -, IT Workflow - Terry Honeyford wrote: > but when I use Apache 1.3.22 I don't get as many $ENV's back from > the server, in particular the one my script is looking for - > ($ENV{remote_user}) In apache's httpd.conf, you s

$ENV{remote_user} - solved

2002-02-22 Thread IT Workflow - Terry Honeyford
; the server, in particular the one my script is looking for - > ($ENV{remote_user}) In apache's httpd.conf, you should enable these lines: LoadModule auth_module modules/mod_auth.so AddModule mod_auth.c and define an authentication realm for your

Insecure $ENV{PATH} message

2009-11-28 Thread Huub van Niekerk
Hi, I started getting this error after upgrading from Fedora 11 to 12. The line of code hasn't been changed: open my $LPR, '|-', qw/lpr -PDeskJet940C/ or die "can't fork lpr: $!"; The error is: "Insecure $ENV{PATH} while running with -T switch at" poin

Env::Sourced - false error

2010-07-28 Thread HACKER Nora
Hi list, Maybe one of you has a clue why I get a false error message when using Env::Sourced. My (test-)script is as follows: #!/usr/bin/perl -w use strict; use warnings; require Env::Sourced; # "require" necessary in main programme, just not changed for testing my $w_c

Re: Regarding ENV PATH

2004-11-17 Thread Remo Sanges
/home/anish IS there any way using $ENV{"PATH"} by which we can fix this issues...or any other alternative.. If you want to put the file into the home of users, an alternative you can be to use the variable $ENV{'HOME'} so it will depend by the user that launch the script HTH Re

Re: Regarding ENV PATH

2004-11-17 Thread Gunnar Hjalmarsson
using $ENV{"PATH"} by which we can fix this issues...or any other alternative.. use File::Basename; my $BASE_ROOT = dirname $0; -- Gunnar Hjalmarsson Email: http://www.gunnar.cc/cgi-bin/contact.pl -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

no main, perlembed env

2005-03-28 Thread toolscripts
perlembed for perl-5.8.6 : I'm trying to do something like this: int useargs(int argc, char **argv, char **env) { PERL_SYS_INIT3(&argc,&argv,&env); ... } The trouble is I don't think I'm supposed to retrieve the env pointer in the wxWidgets SDK I'm using. Bas

help with BerkeleyDB::ENV

2005-06-15 Thread [EMAIL PROTECTED]
$base . "/joe.db"; my $db_env = new BerkeleyDB::Env -Config => {DB_DATA_DIR => $base . "/data", DB_LOG_DIR => $base . "/logs", DB_TMP_DIR => $base . "/tmp" } -Flags => DB_CREATE, -ErrFile =

Re: Re: ENV(Y)?

2005-10-14 Thread Beau E. Cox
Hi gustav - At 2005-10-13, 23:42:22 you wrote: >Hi! > >Just a quick question. Can I set or unset an enviromentvariable through >this Hash? I just need a yes ... :-) >If No, please give explanation... Not really. If you do something like: $ENV{SOMEVAR} = 'somevalu

Re: Re: ENV(Y)?

2005-10-14 Thread gustav
//www.varupiraten.se/ > Hi gustav - > > At 2005-10-13, 23:42:22 you wrote: >>Hi! >> >>Just a quick question. Can I set or unset an enviromentvariable through >>this Hash? I just need a yes ... :-) >>If No, please give explanation... > > Not really. > >

Re: Re: ENV(Y)?

2005-10-14 Thread Gustav Wiberg
, 2005 6:19 PM Subject: Re: Re: ENV(Y)? Please remove my email address from your list, thanks Tom On 10/14/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hi again! I've been looking around... And one thing I don't get. You tell me that > SOMEVAR will be available to you i

RE: Re: ENV(Y)?

2005-10-14 Thread Gomez, Juan
: Thomas J Hughes Cc: beginners@perl.org Subject: Re: Re: ENV(Y)? Hi! I got your mail from the Perl-malinglist. You have to unscribe from that list manually yourself. Best regards /G http://www.varupiraten.se/ - Original Message - From: "Thomas J Hughes" <[EMAIL PROTECTED]

Perl - Add env,.variable?

2005-10-27 Thread gustav
Hi there! I want to add an environment variable in Perl. Is there any built-in function for achieving this? /G @varupiraten.se -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

env vars using perl

2003-09-25 Thread Asif Iqbal
Hi all I am a newbie in perl. I can use this to get all the env variables #!/bin/perl foreach $key ( sort keys %ENV ) { print "$key $ENV{$key}\n"; } Now how can I use this trick to get all the web env variables ? I am using apache on unix (solaris 8) ? Please help Thanks

Env, crontab, perl script

2003-07-29 Thread loan tran
Hello all, I have a perl script that accesses Sybase Database. It works fine if I manually run it, but when I set up a cronjob to run the script, I got the following error. I suspect this has to do with env, but i just dont know how fix it? Could you please help. Thank you. * The error

Re: Insecure $ENV{PATH}

2003-08-30 Thread Bob Showalter
PANNEER SELVAN wrote: > Hi, > > I am running a perl program with -T -W switches.. while > executing system function , i am getting an error like > > Insecure $ENV{PATH} while running with -T switch at try.pl > > Any idea of solving this problem? Yo

RE: Env. var LC_ALL

2003-09-11 Thread Dan Muey
> Hi Howdy > > I'm using RedHat 8.0 and Perl 5.8.0 > > I'm trying to install Time:HiRes from CPAN which is needed to > use the File::Tail module. When running "Make" i get the error: > > Makefile:91: *** missing separator. Stop. > > Makefile.PL says: > > NOTE: if you get an error like thi

Re: Env. var LC_ALL

2003-09-12 Thread Gisle Askestad
Hi And thank you for replying to my problem. I tried: setenv LC_ALL=C It returned: bash: setenv: command not found "set env LC_ALL=C" does not return any error, but printenv does not show LC_ALL=C in the environment variables. man setenv and man printenv, even printenv works fine. My Re

Re: Env. var LC_ALL

2003-09-12 Thread Todd W.
"Gisle Askestad" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > I'm trying to install Time:HiRes from CPAN which is needed to use the > File::Tail module. When running "Make" i get the error: > > Makefile:91: *** missing separator. Stop. > > Makefile.PL says: > > NOTE: if you get

Re: Env. var LC_ALL

2003-09-12 Thread Todd W.
Makefile:91: *** missing separator > >>then set the environment variable LC_ALL to "C" and retry. > >> > >> > >>Anyone knows where or how to set envionment variable LC_ALL to "C"? > >> > >setenv LC_ALL=C (or similar based on OS/ve

Re: Env. var LC_ALL

2003-09-12 Thread Matthew Harrison
hi, setenv is a c shell internal. with bash use export LC_ALL=C On Fri, Sep 12, 2003 at 01:12:54PM +0200, Gisle Askestad wrote: > Hi > And thank you for replying to my problem. > > I tried: setenv LC_ALL=C > It returned: bash: setenv: command not found > &

Removing "+" in $ENV{QUERY_STRING}

2008-02-25 Thread manojkumarg
Hello List, I am trying to build a webpage where I can enter hostname in a text box and up on hitting the key this searches multiple .csv files and prints them in the webpage itself. I am facing a problem with $ENV(QUERY_STRING} which take “+” when the textbox is entered with spaces in the

the ENV command? parameter?

2001-06-07 Thread Bradshaw, Brian
Hi list. I am trying to learn PERL and decipher some code somone else wrote. I have the code snip -- $ENV{'QUERY_STRING'} -- I have not found this in the archives, so I am hoping someone will answer this: I cannot figure out exaclty what the ENV is.The book says it contains t

Re[2]: ENV & $HOME

2001-06-30 Thread Tim Musson
ux, windows, mac, etc? also, what does ENV do for windows and >> mac users, since those are not typically milti-user OSes? and >> finally, while i have found the ENV, does anyone know of a better >> way to do this? thank you for your time. MF> I know Windows has environment

$ENV and print question

2001-07-19 Thread Sekhar, Ravi
may be doing wrong would be greatly appreciated. Thanks Robert Here is the script: #!/usr/bin/perl -w use strict; $mypath = $ENV(PATH); $myeditor= $ENV{EDITOR}; $mytest = 123; $mytest2 = "Perl" print " Test Home : $mypath\n" print " Editor : $myeditor\n" pri

Pushing and Popping ENV

2001-10-24 Thread Daryl J. Hoyt
Hi, I would like to run a script that would significantly change the environment several times. I was wondering if there is a way to push and pop the environment table in Perl so I could always start with the original environment table. Any ideas. Thanks, Daryl J. Hoyt Performance Enginee

changing %ENV in parent

2002-07-06 Thread David T-G
also need to call that from cron jobs and the like (I figure I'll rewrite alias files after changes and then source them as usual, but if I can avoid sourcing path files that would be nice). I want to add to $ENV{'PATH'} in the parent process from my script. Generally I know this

witing to %ENV permanently

2001-11-19 Thread maarten hilgenga
Hi all, When I try to change the value of the environmental variable DNM on a linux machine, DNM only changes when the script is running. Can anyone tell me how to change its value permanently? Thanx Maarten Hilgenga -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

Basic Question on %ENV

2001-11-26 Thread RArul
Friends, Here is a basic question on %ENV hash. I gave a pronto statement as thus: perl -e "print $ENV{ComputerName};" and it printed the correct information. On my MS-DOS prompt when I gave the SET command, I noticed that the environmental variable for ComputerName to be

How to set env variable

2009-03-04 Thread ramesh.marimuthu
Hi, How to set env variable? I'm using PERL in WINDOWS. My question phrasing may be wrong. Actually my question is I need to run Perl from anywhere from my system. regards, -ramesh P Save a tree...please don't print this e-mail unless you really need to Please do not print this em

Re: Insecure $ENV{PATH} message

2009-11-29 Thread Dave Tang
On Sun, 29 Nov 2009 16:30:56 +1000, Huub van Niekerk wrote: Hi, Hello, I started getting this error after upgrading from Fedora 11 to 12. The line of code hasn't been changed: open my $LPR, '|-', qw/lpr -PDeskJet940C/ or die "can't fork lpr: $!"; The

Re: Insecure $ENV{PATH} message

2009-11-29 Thread Huub van Niekerk
>> >> open my $LPR, '|-', qw/lpr -PDeskJet940C/ or die "can't fork lpr: $!"; >> > > $ENV{"PATH"} = ""; > > at the start of the script, it doesn't seem to complain any more. > Hope that helps, > Thank you,

Re: Insecure $ENV{PATH} message

2009-11-29 Thread Dave Tang
On Sun, 29 Nov 2009 23:39:58 +1000, Huub van Niekerk wrote: open my $LPR, '|-', qw/lpr -PDeskJet940C/ or die "can't fork lpr: $!"; $ENV{"PATH"} = ""; at the start of the script, it doesn't seem to complain any more. Hope that helps,

Re: Insecure $ENV{PATH} message

2009-11-29 Thread Huub van Niekerk
> Try specifying the full path for lpr > > %whereis lpr > lpr: /usr/bin/lpr.cups /usr/bin/lpr /usr/share/man/man1/lpr.1.gz > > So on my box, /usr/bin/lpr > > If you look at that article I sent you previously, it gives some > explanation for why you need to rese

Re: Insecure $ENV{PATH} message

2009-11-29 Thread Uri Guttman
>> If you look at that article I sent you previously, it gives some >> explanation for why you need to reset $ENV{"PATH"} (from memory). >> HvN> Ok, I've tried various combinations ending up with: HvN> $PATH{"lpr"} = "/usr/bin/lpr&quo

Re: Insecure $ENV{PATH} message

2009-11-29 Thread Huub van Niekerk
> there is no %PATH variable in perl. if you read the post about clearing > the PATH in the ENVIRONMENT, you would just set that value in the %ENV > hash. > > uri If you mean like this, it doesn't work. $ENV{"lpr"} = "/usr/bin/lpr"; Nor do $ENV{"

Re: Insecure $ENV{PATH} message

2009-11-29 Thread Owen
>> there is no %PATH variable in perl. if you read the post about >> clearing >> the PATH in the ENVIRONMENT, you would just set that value in the >> %ENV >> hash. >> >> uri > > If you mean like this, it doesn't work. > > $ENV{"lp

Re: Insecure $ENV{PATH} message

2009-11-29 Thread Uri Guttman
>>>>> "HvN" == Huub van Niekerk writes: >> there is no %PATH variable in perl. if you read the post about clearing >> the PATH in the ENVIRONMENT, you would just set that value in the %ENV >> hash. >> >> uri HvN> If you me

Re: Insecure $ENV{PATH} message

2009-11-29 Thread Uri Guttman
>>>>> "O" == Owen writes: >>> there is no %PATH variable in perl. if you read the post about >>> clearing >>> the PATH in the ENVIRONMENT, you would just set that value in the >>> %ENV >>> hash. >>>

Re: Insecure $ENV{PATH} message

2009-11-29 Thread Shawn H Corey
Huub van Niekerk wrote: > Hi, > > I started getting this error after upgrading from Fedora 11 to 12. The > line of code hasn't been changed: > > open my $LPR, '|-', qw/lpr -PDeskJet940C/ or die "can't fork lpr: $!"; > > The error is

Re: Insecure $ENV{PATH} message

2009-11-29 Thread Huub van Niekerk
-PDeskJet940C/ or die "can't fork lpr: $!"; >> >> The error is: "Insecure $ENV{PATH} while running with -T switch at" >> pointing at the line above. From articles on the net I understand it >> has something to do with '|-', though I'm no

Re: Insecure $ENV{PATH} message

2009-12-03 Thread Peter Scott
code hasn't been changed: >>> >>> open my $LPR, '|-', qw/lpr -PDeskJet940C/ or die "can't fork lpr: $!"; >>> >>> The error is: "Insecure $ENV{PATH} while running with -T switch at" >>> pointing at the line abov

Re: Env::Sourced - false error

2010-07-29 Thread C.DeRykus
On Jul 28, 10:59 pm, nora.hac...@stgkk.at ("HACKER Nora") wrote: > Hi list, > > Maybe one of you has a clue why I get a false error message when using > Env::Sourced. My (test-)script is as follows: > > #!/usr/bin/perl -w > use strict; > use warnings; > requir

AW: Env::Sourced - false error

2010-08-17 Thread HACKER Nora
Hi, Sorry for the late answer, I was kept busy at work and had no time to dig in ... > IIUC, couldn't you just set oraenv directly at runtime: > > $oraenv = "$w_conf/ora$orapat.env"; # coalesce path + filename > ^ > $ENV{ oraenv } = "

Re: Env::Sourced - false error

2010-08-17 Thread C.DeRykus
w_conf/ora$orapat.env"; # coalesce path + filename > >      ^ > >     $ENV{ oraenv } =  "$w_conf/ora$orapat.env"; > > Charles, thanks for your answer - maybe I understood something wrong in > the documentation for Env::Sourced? > IIUC, with your above syntax I

AW: Env::Sourced - false error

2010-08-17 Thread HACKER Nora
Hi Charles, > Hm, If you can't set oraenv directly at runtime, delaying the > import will still work. > >require Env::Sourced; > > ... # determine version, etc. > >Env::Sourced->import( qw{first/file/to/include.sh /second/file/to/ > include.

ENV variable or others things

2012-04-27 Thread Zapp
when I use bash, I can write a file ( a.sh ) like : abc='abc' ddd='aaa' ... then I can load it in other file: source a.sh echo $abc $ddd # it always work! but in perl , how can I do like that ? I write a file ( my_env.pl ) like: #!/usr/bin/perl -w my $abc='abc'; my $ddd="ddd"; and in my.pl : #!/

Re: Re: Re: ENV(Y)?

2005-10-14 Thread Beau E. Cox
Hi Custav - At 2005-10-14, 02:23:59 you wrote: >Hi again! > >I've been looking around... > >And one thing I don't get. You tell me that > SOMEVAR will be available to >you in your program and any programs you spawn( with 'system' or >backtics). But after your perl script ends, SOMEVAR is lost) a

Re: Re: Re: ENV(Y)?

2005-10-14 Thread gustav
AHA!! Ok, thanx! Now I understand it better... :-) /G http://www.varupiraten.se/ > Hi Custav - > > At 2005-10-14, 02:23:59 you wrote: >>Hi again! >> >>I've been looking around... >> >>And one thing I don't get. You tell me that > SOMEVAR will be available >> to >>you in your program and any prog

RE: Perl - Add env,.variable?

2005-10-27 Thread Thomas Bätzler
<[EMAIL PROTECTED]> asked: > I want to add an environment variable in Perl. Is there any > built-in function for achieving this? $ENV{'variablename'} = $value; Just remember that you can't modify the environment of your parent process, but only that of your own (sub

PATH env variable and open()

2006-07-26 Thread Travis Thornhill
Does anyone have any idea why setting $ENV{"PATH"} = "" would cause the open() function to fail? The file I'm trying to open exists, and some debug printing shows that I'm in the directory where it exists. Travis.

Re: env vars using perl

2003-09-25 Thread Pete Emerson
Asif Iqbal wrote: I can use this to get all the env variables ... Now how can I use this trick to get all the web env variables ? I am using apache on unix (solaris 8) ? It's the same way. Here's code that works for me: #!/usr/bin/perl -w use strict; use CGI qw(:standard); print hea

Re: env vars using perl

2003-09-25 Thread Asif Iqbal
Thanks a lot, thats exactly what I wanted On Thu, 25 Sep 2003, Pete Emerson wrote: > Asif Iqbal wrote: > > > I can use this to get all the env variables > ... > > Now how can I use this trick to get all the web env variables ? I am using > > apache on unix (solaris

Re: env vars using perl

2003-09-26 Thread Randal L. Schwartz
>>>>> "Pete" == Pete Emerson <[EMAIL PROTECTED]> writes: Pete> It's the same way. Here's code that works for me: Pete> #!/usr/bin/perl -w Pete> use strict; Pete> use CGI qw(:standard); Pete> print header; Pete> print start_html; Pete&

help with (do $ENV{HOME})

2003-02-16 Thread ktb
I've read the faq on "do" and looked around the web but can't discover what I'm doing wrong. I have a file named "text" with the following line it it - $name = "kent"; My prog contains the following - #!/usr/bin/perl use diagnostics; use strict; use w

Re: Env, crontab, perl script

2003-07-29 Thread Wiggins d'Anconia
loan tran wrote: Hello all, I have a perl script that accesses Sybase Database. It works fine if I manually run it, but when I set up a cronjob to run the script, I got the following error. I suspect this has to do with env, but i just dont know how fix it? Could you please help. Thank you

  1   2   3   >