Re: uninitialized value $cwd_untainted in chdir at /usr/local/lib/perl5/5.10.0/File/Find.pm

2013-06-26 Thread Shlomi Fish
ed indirectly I am facing the issue > that $cwd_untainted undefined in chdir at > /usr/local/lib/perl5/5.10.0/File/Find.pm line 768. This seems like it's related to Perl and tainting: http://perldoc.perl.org/perlsec.html#Taint-mode Check if you are running under tainting. A few ot

uninitialized value $cwd_untainted in chdir at /usr/local/lib/perl5/5.10.0/File/Find.pm

2013-06-26 Thread Piyush Verma
python which does some other task and after that it calls shell script with same command line. Here I got the problem- When perl command is executed indirectly I am facing the issue that $cwd_untainted undefined in chdir at /usr/local/lib/perl5/5.10.0/File/Find.pm line 768. I am not able to find any

Re: How to chdir using SFTP or SSH on Win32

2008-05-21 Thread Rob Dixon
Sturdevant, Robert W Mr CTR USA AMC wrote: > > Yeah, I got all that but unfortunately I need a workaround due to a coding > error on the server end. The server-end SFTP logic is a rewrite of an > earlier FTP app that still expects a CD before the GET. Any ideas? Magic? Are you sure this isn't ord

Re: How to chdir using SFTP or SSH on Win32

2008-05-21 Thread Rob Dixon
Sturdevant, Robert W Mr CTR USA AMC wrote: > > Yeah, I got all that but unfortunately I need a workaround due to a coding > error on the server end. The server-end SFTP logic is a rewrite of an > earlier FTP app that still expects a CD before the GET. Any ideas? Magic? There is no cd command in S

RE: How to chdir using SFTP or SSH on Win32

2008-05-21 Thread Sturdevant, Robert W Mr CTR USA AMC
:[EMAIL PROTECTED] Sent: Wednesday, May 21, 2008 12:15 PM To: beginners@perl.org Cc: Sturdevant, Robert W Mr CTR USA AMC Subject: Re: How to chdir using SFTP or SSH on Win32 Sturdevant, Robert W Mr CTR USA AMC wrote: > Hi list, > > I asked this question a few days ago on the perl-win32-u

Re: How to chdir using SFTP or SSH on Win32

2008-05-21 Thread Rob Dixon
sing either a full or relative path with the filename something like this: > > $sftp->get( $remotename, $localname ); # where $remotename = > '/Home/OUT/myfile.txt' > > But I have a remote system with a custom server app that rejects the > path and requires a chdir to th

Re: How to chdir using SFTP or SSH on Win32

2008-05-21 Thread Steve Bertrand
$sftp->chdir( $path ); #cd to the OUT folder $sftp->get( $shortname, $localname); # get the file using only the file name I see no way to do $sftp->chdir. Will $sftp->do_opendir() work? Steve -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-

How to chdir using SFTP or SSH on Win32

2008-05-21 Thread Sturdevant, Robert W Mr CTR USA AMC
->get( $remotename, $localname ); # where $remotename = '/Home/OUT/myfile.txt' But I have a remote system with a custom server app that rejects the path and requires a chdir to the correct file location. To fetch a file I need to do something like this: $sftp->chdir( $path ); #cd t

Re: Hi... Help regarding chdir

2007-12-20 Thread Chas. Owens
On Dec 19, 2007 2:05 PM, Tom Phoenix <[EMAIL PROTECTED]> wrote: > On 12/19/07, Chas. Owens <[EMAIL PROTECTED]> wrote: > > > On Dec 19, 2007 2:29 AM, Ravindra Ugaji <[EMAIL PROTECTED]> wrote: > > > > chdir ( '/opt/application') || die (&q

Re: Hi... Help regarding chdir

2007-12-19 Thread Paul Lalli
On Dec 19, 2:29 am, [EMAIL PROTECTED] (Ravindra Ugaji) wrote: > I am trying the following code to change the directory > > chdir ( '/opt/application') || die ("Can't change directory: $!\n"); > tried this also > chdir "/opt/application" || die &quo

Re: Hi... Help regarding chdir

2007-12-19 Thread Tom Phoenix
On 12/19/07, Chas. Owens <[EMAIL PROTECTED]> wrote: > On Dec 19, 2007 2:29 AM, Ravindra Ugaji <[EMAIL PROTECTED]> wrote: > > chdir ( '/opt/application') || die ("Can't change directory: $!\n"); > > tried this also > > chdir "/opt/app

Re: Hi... Help regarding chdir

2007-12-19 Thread Chas. Owens
On Dec 19, 2007 2:29 AM, Ravindra Ugaji <[EMAIL PROTECTED]> wrote: > Hi Monks, > I am trying the following code to change the directory > > chdir ( '/opt/application') || die ("Can't change directory: $!\n"); > tried this also > chdir "/opt/ap

Re: Hi... Help regarding chdir

2007-12-19 Thread Tom Phoenix
On 12/18/07, Ravindra Ugaji <[EMAIL PROTECTED]> wrote: > Hi Monks, The Perl Monks are two doors down, on the left. But maybe we can help you here. > I am trying the following code to change the directory > > chdir ( '/opt/application') || die ("Can't change

Re: Hi... Help regarding chdir

2007-12-19 Thread Roberto Etcheverry
It should work unless the user you are using to run the script doesn't have the rights to chdir to that directory. Ravindra Ugaji wrote: > Hi Monks, > I am trying the following code to change the directory > > chdir ( '/opt/application') || die ("Can't change

Hi... Help regarding chdir

2007-12-19 Thread Ravindra Ugaji
Hi Monks, I am trying the following code to change the directory chdir ( '/opt/application') || die ("Can't change directory: $!\n"); tried this also chdir "/opt/application" || die "Can't change directory: $!\n"; But i am unable to change

RE: chdir

2005-09-14 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Christopher Spears wrote: > So what should I do? > > -Chris What are you trying to do? I fyou are trying to setup an enironment, but don't want to remain within perl, then need some type of shell script. If you stay and work within Perl, then you are located where you want to be. Wags

chdir

2005-09-14 Thread Christopher Spears
So what should I do? -Chris -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: chdir

2005-09-14 Thread John W. Krahn
Christopher Spears wrote: > Here is a snippet of code I am working on: > > while (1) { >print "cd $path: Y or N?\n"; >chomp($answer = ); > >if ($answer =~ /^[nN]$/) { > print "Enter a path: "; > my $path = ; > cho

chdir

2005-09-14 Thread Christopher Spears
Here is a snippet of code I am working on: while (1) { print "cd $path: Y or N?\n"; chomp($answer = ); if ($answer =~ /^[nN]$/) { print "Enter a path: "; my $path = ; chomp($path); chdir $path or die "Can't cd to $path";

Re: chdir and mkdir

2005-07-26 Thread Jan Eden
Randal L. Schwartz wrote on 26.07.2005: >The following message is a courtesy copy of an article >that has been posted to perl.beginners as well. > >>>>>> "Jan" == Jan Eden <[EMAIL PROTECTED]> writes: > >Jan> chdir "/some/dir";

Re: chdir and mkdir

2005-07-26 Thread Randal L. Schwartz
>>>>> "Jan" == Jan Eden <[EMAIL PROTECTED]> writes: Jan> chdir "/some/dir"; This might have failed... Jan> mkdir "newsubdir/" or die "$!"; which would make this in the wrong directory. Are you checking that? -- Randal L

Re: chdir and mkdir

2005-07-26 Thread John W. Krahn
Jan Eden wrote: > > John W. Krahn wrote on 26.07.2005: > >>Jan Eden wrote: >> >>>this does not work: >>> >>>mkdir "/some/dir/newsubdir" or die "$!"; >>That works for me. What error message do you get? >> > I get "File exists". /some/dir does exist, but newsubdir does not. The message "File exis

Re: chdir and mkdir

2005-07-26 Thread Jan Eden
Xavier Noria wrote on 26.07.2005: >On Jul 26, 2005, at 11:31, Jan Eden wrote: >> But I wonder why my initial example works for you. File::Path doc >> says: >> >> 'The "mkpath" function provides a convenient way to create >> directories, even if your "mkdir" kernel call won't create more >> t

Re: chdir and mkdir

2005-07-26 Thread Xavier Noria
On Jul 26, 2005, at 11:31, Jan Eden wrote: But I wonder why my initial example works for you. File::Path doc says: 'The "mkpath" function provides a convenient way to create directories, even if your "mkdir" kernel call won't create more than one level of directory at a time. ' But my sy

Re: chdir and mkdir

2005-07-26 Thread Jan Eden
Hi John, John W. Krahn wrote on 26.07.2005: >Jan Eden wrote: >> Hi, > >Hello, > >> this does not work: >> >> mkdir "/some/dir/newsubdir" or die "$!"; > >That works for me. What error message do you get? > I get "File exists". /some/dir does exist, but newsubdir does not. >Have you tried the mk

Re: chdir and mkdir

2005-07-26 Thread John W. Krahn
Jan Eden wrote: > Hi, Hello, > this does not work: > > mkdir "/some/dir/newsubdir" or die "$!"; That works for me. What error message do you get? Have you tried the mkpath() function from the File::Path module? perldoc File::Path John -- use Perl; program fulfillment -- To unsubscribe,

Re: chdir and mkdir

2005-07-26 Thread Jan Eden
Jan Eden wrote on 26.07.2005: >Hi, > >this does not work: > >mkdir "/some/dir/newsubdir" or die "$!"; > >while this does: > >chdir "/some/dir"; mkdir "newsubdir/" or die "$!"; > >In the shell, I can obviously execu

chdir and mkdir

2005-07-26 Thread Jan Eden
Hi, this does not work: mkdir "/some/dir/newsubdir" or die "$!"; while this does: chdir "/some/dir"; mkdir "newsubdir/" or die "$!"; In the shell, I can obviously execute the former. Is it true that in Perl, I can create a directory only wi

AW: Chdir doesn't work under Apache?

2004-02-17 Thread Renger van Nieuwkoop
: Dienstag, 17. Februar 2004 15:33 An: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Betreff: RE: Chdir doesn't work under Apache? The first three things to note: 1) CHDIR to C: works, CHDIR to UNC paths (//server/what/the/file) cannot and will not. *Map a drive* or use it as a path (ie, direct

RE: Chdir doesn't work under Apache?

2004-02-17 Thread David le Blanc
The first three things to note: 1) CHDIR to C: works, CHDIR to UNC paths (//server/what/the/file) cannot and will not. *Map a drive* or use it as a path (ie, direct all commands to '$directories/stuff'. 2) Make sure the user running APACHE as a user, and not 'local system&

RE: Strange behaviour of chdir in mapped drives

2003-06-30 Thread Tim Johnson
ct: RE: Strange behaviour of chdir in mapped drives On the last point, does this happen even when using the Task Scheduler utility and running the script as a specified account? I'm working on a script that needs to run periodically throughout the day and intend to use the WinNT Task Schedu

RE: Strange behaviour of chdir in mapped drives

2003-06-30 Thread Akens, Anthony
EMAIL PROTECTED] Sent: Monday, June 30, 2003 9:47 AM To: 'Tim Johnson'; Akens, Anthony; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: Strange behaviour of chdir in mapped drives On the last point, does this happen even when using the Task Scheduler utility and running the script

RE: Strange behaviour of chdir in mapped drives

2003-06-30 Thread Smith Jeff D
ED] Subject: RE: Strange behaviour of chdir in mapped drives That's exactly right. You will run into the same problem if you try running your scripts in the scheduler. -Original Message- From: Akens, Anthony [mailto:[EMAIL PROTECTED] Sent: Monday, June 30, 2003 7:12 AM To: [EMAIL PROTECTE

RE: Strange behaviour of chdir in mapped drives

2003-06-30 Thread Tim Johnson
ur of chdir in mapped drives Is the drive you're trying to access actually mapped for the user you're running the cgi-bin as? Remember, in windows drive mappings are a per-user thing, so while yes it will work when you run it at a command line it's because you're logged in and hav

RE: Strange behaviour of chdir in mapped drives

2003-06-30 Thread Akens, Anthony
ver\share Tony -Original Message- From: beginner beginner [mailto:[EMAIL PROTECTED] Sent: Monday, June 30, 2003 8:57 AM To: [EMAIL PROTECTED] Subject: Re: Strange behaviour of chdir in mapped drives Hi, I have tried it through command line It is working When i used the same code and pu

Re: Strange behaviour of chdir in mapped drives

2003-06-30 Thread Rob Dixon
Beginner Beginner wrote: > Hi, >I have tried it through command line It is working When i used the same code and > put the file in cgi-bin and try to run > through explorer it didn't worked > > $basedir= "I:/tech/work/web/Documents"; > chdir($ba

Re: Strange behaviour of chdir in mapped drives

2003-06-30 Thread beginner beginner
Hi, I have tried it through command line It is working When i used the same code and put the file in cgi-bin and try to run through explorer it didn't worked $basedir= "I:/tech/work/web/Documents"; chdir($basedir) or die $!; $test=`dir /s /b *.*`; print $test; If I simply re

Re: Strange behaviour of chdir in mapped drives

2003-06-30 Thread Jenda Krynicky
ech\work\web\documents > > now i try to go inside this directory > > as > > $basedir="I:/tech/work/web/documents"; > > chdir($basedir); > > > > but this is not working I have tried the same with my local drives > > and it was working fine Don't

Re: Strange behaviour of chdir in mapped drives

2003-06-30 Thread Rob Dixon
ot;I:/tech/work/web/documents"; > chdir($basedir); > > but this is not working I have tried the same with my local drives and it was > working fine Don't know why > May be you guys can help me out to solve my problem. Hi Mr B. How do you know this isn't working?

Strange behaviour of chdir in mapped drives

2003-06-30 Thread beginner beginner
Hi All, I wanted to search for *.html file on Server which I can mount in my Windows XP: e.g. I drive mapped to tech\work\web\documents. as I:\tech\work\web\documents now i try to go inside this directory as $basedir="I:/tech/work/web/documents"; chdir($basedir); but this is n

Re: very confused - chdir not working

2002-10-13 Thread Michael Fowler
have any context for what the three lines you output are. The reason you can't chdir, though, is clear; now all you have to figure out is why you're getting an error. I can assure you it's not because either Perl or the chdir function is broken, so it must be something else. Perh

Re: very confused - chdir not working

2002-10-12 Thread mike
ne 55. > > this is ls in same directory, as you can see esound is there > > I don't have any context for what the three lines you output are. The > reason you can't chdir, though, is clear; now all you have to figure out is > why you're getting an error. I can assur

Re: very confused - chdir not working

2002-10-11 Thread Larry Coffin
At 11:40 AM -0400 10/11/02, mike wrote: >../build.pl >/root/cvs/esound # this the output of $dir3 >/ Is your output of 'print "$dir3\n"' : /root/cvs/esound / Or just: /root/cvs/esound From your code, I suspect the former since $dir3 is supposed to end with a "/"

Re: very confused - chdir not working

2002-10-11 Thread mike
On Fri, 2002-10-11 at 09:14, Michael Fowler wrote: > On Fri, Oct 11, 2002 at 06:50:00AM +0100, mike wrote: > > On Fri, 2002-10-11 at 05:36, Michael Fowler wrote: > > > On Fri, Oct 11, 2002 at 04:16:41AM +0100, mike wrote: > > > > Unfortunatel chdir does not work &g

Re: very confused - chdir not working

2002-10-11 Thread Michael Fowler
On Fri, Oct 11, 2002 at 06:50:00AM +0100, mike wrote: > On Fri, 2002-10-11 at 05:36, Michael Fowler wrote: > > On Fri, Oct 11, 2002 at 04:16:41AM +0100, mike wrote: > > > Unfortunatel chdir does not work > > > > In what way doesn't it work? Are you getting a

Re: very confused - chdir not working

2002-10-10 Thread Steve Grazzini
Mike <[EMAIL PROTECTED]> wrote: > On Fri, 2002-10-11 at 05:36, Michael Fowler wrote: >> On Fri, Oct 11, 2002 at 04:16:41AM +0100, mike wrote: >> > Unfortunatel chdir does not work >> >> In what way doesn't it work? Are you getting an error? How >

Re: very confused - chdir not working

2002-10-10 Thread mike
On Fri, 2002-10-11 at 05:36, Michael Fowler wrote: > On Fri, Oct 11, 2002 at 04:16:41AM +0100, mike wrote: > > Unfortunatel chdir does not work > > In what way doesn't it work? Are you getting an error? How are you > verifying it doesn't work? no errors but direct

Re: very confused - chdir not working

2002-10-10 Thread Michael Fowler
On Fri, Oct 11, 2002 at 04:16:41AM +0100, mike wrote: > Unfortunatel chdir does not work In what way doesn't it work? Are you getting an error? How are you verifying it doesn't work? > This is the script > > #!/usr/bin/perl -ww > open(BLD_LIST,"buildlist&qu

very confused - chdir not working

2002-10-10 Thread mike
Hi I am building the following script to recurse back and forth down a directory tree Unfortunatel chdir does not work This is the script #!/usr/bin/perl -ww open(BLD_LIST,"buildlist"); my @pkg=; my $ver=$ARGV[2]; my $name=$ARGV[0]; my $release=$ARGV[1]; foreach my $pkg (@pkg){ my

RE: chdir to parent directory

2002-07-06 Thread T. B. Booher
Yes, you are right. For some reason, there must have been another error in my code. Thanks. Tim -Original Message- From: Timothy Johnson [mailto:[EMAIL PROTECTED]] Sent: Friday, July 05, 2002 2:11 PM To: 'T. B. Booher'; [EMAIL PROTECTED] Subject: RE: chdir to parent

Re: chdir to parent directory

2002-07-05 Thread Michael Fowler
On Fri, Jul 05, 2002 at 10:37:10AM -0400, Shishir K. Singh wrote: > >chdir (".."); > > >chdir ("\\.."); > > chdir ('..'); > chdir ('../'); > > Use single quotes. so that special characters are treated as literals. > &qu

RE: chdir to parent directory

2002-07-05 Thread Timothy Johnson
Actually it does work. Try the following snippet of code. You will see that it prints out the files in c:/program files and then changes back to your c:/ directory. (you might want to try a smaller directory, but I wanted to choose one that I knew you had). chdir "c:/program files"

Re: chdir to parent directory

2002-07-05 Thread Randal L. Schwartz
>>>>> "T" == T B Booher <[EMAIL PROTECTED]> writes: T> Hello - I am trying to use ActiveState perl on windows and I am trying T> to figure out how to chdir to a parent directory. I have tried the T> following: T> chdir (".."); This shou

RE: chdir to parent directory

2002-07-05 Thread Shishir K. Singh
>Hello - I am trying to use ActiveState perl on windows and I am trying >to figure out how to chdir to a parent directory. I have tried the >following: >chdir (".."); >chdir ("\\.."); chdir ('..'); chdir ('../'); Use single quot

chdir to parent directory

2002-07-05 Thread T. B. Booher
Hello - I am trying to use ActiveState perl on windows and I am trying to figure out how to chdir to a parent directory. I have tried the following: chdir (".."); chdir ("\\.."); but no avail. Any ideas? tim

Re: Activestate, IIS, and "chdir"

2002-04-24 Thread drieux
On Tuesday, April 23, 2002, at 12:32 , John Bodoni wrote: > (part of) My code looks like this: > > chdir 'j:/wsinfo'; > system "dir /p"; you do understand that the chdir - moves this script to that location system() - invokes a

Re: Activestate, IIS, and "chdir"

2002-04-24 Thread Felix Geerinckx
on Tue, 23 Apr 2002 19:32:20 GMT, [EMAIL PROTECTED] (John Bodoni) wrote: > chdir 'j:/wsinfo'; > system "dir /p"; > > [...] > > When I execute it from a web browser, I get a directory of my web > server's wwwroot folder - less than stellar. Wh

Activestate, IIS, and "chdir"

2002-04-23 Thread John Bodoni
This is making my head hurt. In an effort to share my pain, I humbly ask the list for help. (part of) My code looks like this: chdir 'j:/wsinfo'; system "dir /p"; When I execute it from command line, I get a directory of j:\wsinfo - exactly what I wanted. When I execute i

Re: AARGHHH,..... chdir(yes - no)

2002-02-12 Thread david wright
Bob saved my sanity with these lines: "Now, I suspect that when you are prompted to enter a path at lines 22-23, you are entering backslashes. In this case, the backslashes *are* being passed to chdir(), and since they aren't part of the path name, the chdir() is failing. Backsl

RE: AARGHHH,..... chdir(yes - no)

2002-02-12 Thread Bob Showalter
> -Original Message- > From: david wright [mailto:[EMAIL PROTECTED]] > Sent: Monday, February 11, 2002 9:02 PM > To: [EMAIL PROTECTED] > Subject: AARGHHH,. chdir(yes - no) > > > Man, i am going crazy on this,... this is actually within a > package bu

Re: AARGHHH,..... chdir(yes - no)

2002-02-12 Thread david wright
Sean wrote: "I've been trying to wrap my brain around this for a little while, and I don't think I've been completely successful, but here's my stab at what's wrong. You stated, I think, that line 27 worked and line 29 did not. Line 27 was properly escaped

Re: AARGHHH,..... chdir(yes - no)

2002-02-11 Thread Sean O'Leary
I've been trying to wrap my brain around this for a little while, and I don't think I've been completely successful, but here's my stab at what's wrong. You stated, I think, that line 27 worked and line 29 did not. Line 27 was properly escaped... > 27

Re: directory is not change using "chdir"

2002-01-28 Thread William.Ampeh
This is what happened. The Perl process did change dir, but remember when it ends it goes with all its baggage, so the parent process does not have anything to do with the chdir. Try this: #!/opt/local/bin/perl $dirname = "./TEST"; chdir("$dirname"); #this sets

Re: chdir problem

2002-01-27 Thread sachin balsekar
Hi Dhiraj, The Script changes the directory while it is runningtry this... use CWD; $pw=getcwd; this will get u the present working directory after u chdir print getcwd...u'll find its in u r desired area...u could also check if the path exists so as to be sure before chdir...

Re: directory is not change using "chdir"

2002-01-26 Thread Matt C.
dir=getcwd; print "current dir: $dir\n"; #prints c:/path/$dir chdir("perl_crap"); # relative to where I am now. my $newdir=getcwd; print "Current dir: $newdir \n"; #prints c:/path/$dir/$newdir HTH, Matt --- Dhiraj P Nilange <[EM

Re: chdir problem

2002-01-26 Thread John W. Krahn
Dhiraj P Nilange wrote: > > Hello. Hello, > I have Windows98. I wrote a > small script just to change > directory. > > $a=chdir("bin"); > print $a; > > this script prints 1. So chdir returned > true after success. But in reality > directory is n

chdir problem

2002-01-26 Thread Dhiraj P Nilange
Hello. I have Windows98. I wrote a small script just to change directory. $a=chdir("bin"); print $a; this script prints 1. So chdir returned true after success. But in reality directory is not changed. The directory named "bin" exists in the current directory. Is this pr

directory is not change using "chdir"

2002-01-26 Thread Dhiraj P Nilange
Hello. I have Windows98. I wrote a small script just to change directory. $a=chdir("bin"); print $a; this script prints 1. So chdir returned true after success. But in reality directory is not changed. The directory named "bin" exists in the current directory. Is this pr

RE: CHDIR

2001-09-06 Thread Bob Showalter
> -Original Message- > From: THE SPENCERS [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, September 05, 2001 9:15 PM > To: [EMAIL PROTECTED] > Subject: CHDIR > > > Hello Team, > > Let me just start my saying I am a very big fan of PERL and this

CHDIR

2001-09-05 Thread THE SPENCERS
(3) Music directory me off in that directory to play around in . I know the command CD is a shell built-in and this may or may not be where my problem is. I have tried using the Function CHDIR and by using it I can do anything inside