Hi Piyush, On Wed, 26 Jun 2013 18:47:08 +0530 Piyush Verma <114piy...@gmail.com> wrote:
> Hi Guys, > > I need some help. > I am running some code using command line and code is running fine. > This command line is very big so I have written shell script for that which > takes input and create this command line. > Till here no problem code is running nicely. > > I have written one more script in 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. 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 other notes: 1. perl-5.10.0 is old and deprecated. You should upgrade to perl-5.16.3 or perl-5.18.0. 2. File::Find has some alternatives on CPAN: https://metacpan.org/module/DAGOLDEN/Path-Class-Rule-0.008/lib/Path/Class/Rule.pm#SEE-ALSO > I am not able to find any clear picture why I am facing this issue. > (environment problem or something else) > > Please help me to find out the way so that I can debug this thing. > > Below is wrapper script picture:- > > Python script > | > Shell Script > | > Perl Command > Please try reducing the problem to a self-contained, reproducing, example. Regards, Shlomi Fish -- ----------------------------------------------------------------- Shlomi Fish http://www.shlomifish.org/ Why I Love Perl - http://shlom.in/joy-of-perl Alan: Hello, Miss Mandrake. I’m Alan. [she shakes his hand.] John: John. [shakes his hand.] Alan: We’re mighty vampires. Selina: [Amusingly] Selina Mandrake, mighty pirate. Please reply to list if it's a mailing list post - http://shlom.in/reply . -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/