How can I use Net::SSH2 or Net::SSH::Perl in krb5 authen env?

2012-08-31 Thread chenlin rao
Hello all: I usually like to use Net::SSH2 or Net::SSH::Perl module to send commands to the cluster. But now, these servers change to be authenticated by kerberos5.When I kinit and try my old scripts, it failed! $ssh2->auth_list return "gssapi-keyex" and "gssapi-micpasswd", but nothing rela

Re: ENV variable or others things

2012-04-27 Thread Zapp
strict; > use warnings; > > use base qw( Exporter ); > our @EXPORT = qw( %MyConfig ); > our @EXPORT_OK = qw( ); > our %EXPORT_TAGS = ( > all => [ @EXPORT, @EXPORT_OK ], > ); > > our %MyConfig = ( > abc => 'abc', > ddd => 'ddd',

Re: ENV variable or others things

2012-04-27 Thread Shawn H Corey
> why? anybody knows? Thanks! > If you want to create a configuration file: $ cat MyConfig.pm #! use strict; use warnings; use base qw( Exporter ); our @EXPORT = qw( %MyConfig ); our @EXPORT_OK = qw( ); our %EXPORT_TAGS = ( all => [ @EXPORT, @EXPORT_OK ], ); our %MyConfig = ( abc =>

Re: ENV variable or others things

2012-04-27 Thread timothy adigun
Hi zapp, Please my comments below: 2012/4/27 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 )

Re: ENV variable or others things

2012-04-27 Thread Zapp
于 2012-4-27 15:41, Octavian Rasnita 写道: > From: "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 (

Re: ENV variable or others things

2012-04-27 Thread Octavian Rasnita
From: "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='

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: Insecure $ENV{PATH} while running with -T switch at /usr/local/share/perl5/MIME/Lite.pm

2010-08-19 Thread Jim Gibson
whether my code is > causing this exception or the underlying MIME::Lite::TT::HTML or > MIME::Lite. > > Insecure $ENV{PATH} while running with -T switch at > /usr/local/share/perl5/MIME/Lite.pm line 2689., referer: > http://192.168.0.88/cgi-bin/dashboard.cgi > (Program sn

Insecure $ENV{PATH} while running with -T switch at /usr/local/share/perl5/MIME/Lite.pm

2010-08-19 Thread Mimi Cafe
::Lite. Insecure $ENV{PATH} while running with -T switch at /usr/local/share/perl5/MIME/Lite.pm line 2689., referer: http://192.168.0.88/cgi-bin/dashboard.cgi In my mobile I have this sub for sending mail and it has always worked until I switched on the -T. sub sendmail { my (%params

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.

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, 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-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

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: Getting USER env variable in Windows -- How to?

2009-12-09 Thread Ron Bergin
On Dec 9, 7:01 am, tony1234567...@yahoo.co.uk (Tony Esposito) wrote: > I need to get the current USER env var in a Windows Perl program.  Does > anyone know how this is done?  I have done it on UNIX/Linux. > > Thx. perl -e "print $ENV{'USERNAME'}" -- To unsubsc

RE: Getting USER env variable in Windows -- How to?

2009-12-09 Thread Bob McConnell
From: Tony Esposito > I need to get the current USER env var in a Windows Perl > program.  Does anyone know how this is done?  I have done > it on UNIX/Linux. I believe it is labeled USERNAME in the MS-Windows environment. Bob McConnell -- To unsubscribe, e-mail: beginners

Getting USER env variable in Windows -- How to?

2009-12-09 Thread Tony Esposito
I need to get the current USER env var in a Windows Perl program.  Does anyone know how this is done?  I have done it on UNIX/Linux. Thx.

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: 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-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 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 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 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 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 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
> 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 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
>> >> 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 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

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

Re: How to set env variable

2009-03-04 Thread Gunnar Hjalmarsson
ramesh.marimu...@wipro.com wrote: 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. s/env variable/PATH/ Type help path -- Gunnar Hjalmarsson Email: http://www.gunn

Re: How to set env variable

2009-03-04 Thread Dermot
2009/3/4 : > 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. Environment variables are stored in the %ENV hash. I don't want to tell

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: 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

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/

Re: Removing "+" in $ENV{QUERY_STRING}

2008-02-25 Thread Randal L. Schwartz
> "Manoj" == Manoj <[EMAIL PROTECTED]> writes: Manoj> Never worked with CGI...It's a new module for me...Digging it...Thanks Manoj> again. And beginners-cgi is a better list for web things. beginners is everything non-web. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1

RE: Removing "+" in $ENV{QUERY_STRING}

2008-02-25 Thread Manoj
Thanks Justin... Never worked with CGI...It's a new module for me...Digging it...Thanks again. -Original Message- From: Justin Hawkins [mailto:[EMAIL PROTECTED] Sent: Monday, February 25, 2008 11:25 PM To: [EMAIL PROTECTED] Cc: beginners@perl.org Subject: Re: Removing "

Re: Removing "+" in $ENV{QUERY_STRING}

2008-02-25 Thread Justin Hawkins
[EMAIL PROTECTED] wrote: 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

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

Re: Env variables readable by an application

2007-12-28 Thread Travis Thornhill
ternal resource. Take a look at IPC::SharedCache** or one of the other IPC modules*** on CPAN. Depending on your needs a simple file might suffice though. Unfortunately you're right. I waded through perldocs and found that there is no way I can set env variables that other processes can

Re: Env variables readable by an application

2007-12-27 Thread Chas. Owens
On Dec 28, 2007 2:24 AM, Travis Thornhill <[EMAIL PROTECTED]> wrote: snip > Is there a way to do this? In other words, is there a way to > set env variables that ANY user and ANY application can see? snip No, environmental variables are a per-process thing. Child processes inher

Env variables readable by an application

2007-12-27 Thread Travis Thornhill
I have an application that executes a user-defined script. The application sets certain environment variables that the script uses to determine which phase it is in. I want to be able to set other env variables to set other conditions usable by the script. Is there a way to do this

updating Bundle::CPAN in a cygwin XP env

2007-07-06 Thread oryann9
I am running this command: $ perl -MCPAN -e 'install Bundle::CPAN;' and it hangs on the taint check. So I tried it manually and was receiving permission denied errors. See the bottom. snip Checking if your kit is complete... Looks good Writing Makefile for Cwd CPAN: YAML loaded ok (v0.65) snip

Re: Set up env variables on Linux

2007-06-13 Thread Paul Lalli
On Jun 13, 1:26 am, [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote: > I'm pretty new to Perl. I was trying to write up a perl script that > can help set up my working env, for example, once log into Linux > server, run the perl script, it'll move to another folder and > config

Re: Set up env variables on Linux

2007-06-13 Thread Dean
On Jun 13, 6:26 am, [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote: > Hi All, > > I'm pretty new to Perl. I was trying to write up a perl script that > can help set up my working env, for example, once log into Linux > server, run the perl script, it'll move to another folder

Re: Set up env variables on Linux

2007-06-13 Thread Mumia W.
On 06/13/2007 12:26 AM, [EMAIL PROTECTED] wrote: Hi All, I'm pretty new to Perl. I was trying to write up a perl script that can help set up my working env, for example, once log into Linux server, run the perl script, it'll move to another folder and configure some env variables

Re: Set up env variables on Linux

2007-06-13 Thread Madan Kumar Nath
  # come back to orignal dir Thanx Madan [EMAIL PROTECTED] wrote: Hi All, I'm pretty new to Perl. I was trying to write up a perl script that can help set up my working env, for example, once log into Linux server, run the perl script, it'll move to another folder an

Set up env variables on Linux

2007-06-13 Thread [EMAIL PROTECTED]
Hi All, I'm pretty new to Perl. I was trying to write up a perl script that can help set up my working env, for example, once log into Linux server, run the perl script, it'll move to another folder and configure some env variables. I tried using `cd dest_folder`

Re: READ TEXT FILE AND SET EACH LINE AS ENV VARIABLE.

2006-10-14 Thread perl pra
thanks a lot . it works.. --perlpra On 10/14/06, Dr.Ruud <[EMAIL PROTECTED]> wrote: "perl pra" schreef: > Subject: READ TEXT FILE AND SET EACH LINE AS ENV VARIABLE. Don't shout. > Is there any other way of using the values in text file as varibales > in

Re: READ TEXT FILE AND SET EACH LINE AS ENV VARIABLE.

2006-10-14 Thread Dr.Ruud
"perl pra" schreef: > Subject: READ TEXT FILE AND SET EACH LINE AS ENV VARIABLE. Don't shout. > Is there any other way of using the values in text file as varibales > in perl script. Use a hash. See Uri Guttman's reply of yesterday in the "read from a file

Fwd: READ TEXT FILE AND SET EACH LINE AS ENV VARIABLE.

2006-10-14 Thread perl pra
/perl -w my $FILE="C:\\Documents and Settings\\Desktop\\perlscrip\\samp.txt"; open(OF,$FILE) or die("Could not file."); while($line = ) { system("SET $line"); } close(OF); print "$ENV{va}"; the above script does not show any errors and does not set va as

READ TEXT FILE AND SET EACH LINE AS ENV VARIABLE.

2006-10-14 Thread perl pra
/perl -w my $FILE="C:\\Documents and Settings\\Desktop\\perlscrip\\samp.txt"; open(OF,$FILE) or die("Could not file."); while($line = ) { system("SET $line"); } close(OF); print "$ENV{va}"; the above script does not show any errors and does not set va as

Re: PATH env variable and open()

2006-07-27 Thread Ken Foskey
On Wed, 2006-07-26 at 11:28 -0700, Travis Thornhill wrote: > 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 dire

Re: PATH env variable and open()

2006-07-26 Thread JupiterHost.Net
Travis Thornhill wrote: Does anyone have any idea why setting $ENV{"PATH"} = "" would cause Are you running setuid or in taint mode by chance? the open() function to fail? The file I'm trying to open exists, and some debug open(...) or die "open fail

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: Why not to use env (was Re: Perl executable pathname needs to be hardwired?)

2005-12-03 Thread Chris Devers
On Sat, 3 Dec 2005, Randal L. Schwartz wrote: > >>>>> "Chris" == Chris Devers <[EMAIL PROTECTED]> writes: > > Chris> My understanding is that the Python idiom is to avoid putting the full > Chris> path, in favor of something like > > Chris

Why not to use env (was Re: Perl executable pathname needs to be hardwired?)

2005-12-03 Thread Randal L. Schwartz
>>>>> "Chris" == Chris Devers <[EMAIL PROTECTED]> writes: Chris> My understanding is that the Python idiom is to avoid putting the full Chris> path, in favor of something like Chris> #!/usr/bin/env python This won't work if env is not in /us

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

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]

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]

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: 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: 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: 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 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: 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(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 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:/

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

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

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 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 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

%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

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 =

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

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

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

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?

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

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 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-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-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 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

%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

How do I read a Property File into ENV.

2004-03-09 Thread Viraj Purang
I have a list of 20-30 properties ("name=value" associations) that I need to read in at runtime.Is there a simpler way of doing it than parsing each line thru . Viraj B. Purang Arzoon Inc. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: ENV variables and custom 404 error page

2004-03-02 Thread Bryan Harris
> Bryan Harris wrote: >>> # do this. make sure that this line is the >>> # ONLY thing you print out to the browser. >>> print "Location: http://rightplace.com/\n\n";; >> >> >> Wow, this is cool! Where is this documented? I'm interested in >> learning about other things like this..

RE: ENV variables and custom 404 error page

2004-03-02 Thread Bob Showalter
Bryan Harris wrote: > > # do this. make sure that this line is the > > # ONLY thing you print out to the browser. > > print "Location: http://rightplace.com/\n\n";; > > > Wow, this is cool! Where is this documented? I'm interested in > learning about other things like this... This

Re: ENV variables and custom 404 error page

2004-03-01 Thread WC -Sx- Jones
Bryan Harris wrote: print "Location: http://rightplace.com/\n\n";; Wow, this is cool! Where is this documented? I'm interested in learning about other things like this... http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=Perl+CGI+Apache&btnG=Google+Search 1,720,000 possibilities Try

Re: ENV variables and custom 404 error page

2004-03-01 Thread Bryan Harris
> # do this. make sure that this line is the > # ONLY thing you print out to the browser. > print "Location: http://rightplace.com/\n\n";; Wow, this is cool! Where is this documented? I'm interested in learning about other things like this... -- To unsubscribe, e-mail: [EMAIL P

Re: ENV variables and custom 404 error page

2004-03-01 Thread Morbus Iff
>I have a custom 404 error page that uses that shows the URL of the page that >couldn't be found using var="REDIRECT_URL". Is there a way to take this >variable, such as "/folder/wrong.html", strip out everything except >"folder", match "folder" and redirect (launch the web page) to >"folder/index.

ENV variables and custom 404 error page

2004-03-01 Thread Gregg O'Donnell
I have a custom 404 error page that uses that shows the URL of the page that couldn't be found using var="REDIRECT_URL". Is there a way to take this variable, such as "/folder/wrong.html", strip out everything except "folder", match "folder" and redirect (launch the web page) to "folder/index.ht

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&

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-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

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

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 > &

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 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

  1   2   3   >