On May 9, 2005, at 4:16 AM, Vamsi_Doddapaneni wrote:

Hi all,

Thanks for your help.

I am facing a new problem.

Here is the code part:

Although I don't understand why it's doing that you might have better luck (not to mention better code) if used the Perl "readdir" command.


 foreach $name(`ls $opt_i/*.xml`){
    chomp;
    push @f, $name;
        print "pushing elements=$name\n";
}
[EMAIL PROTECTED];

Now in the directory $opt_i if there are some 10 , 20 or even 100 its
working  well. But now I have some 305 odd xmls and the code is EXITING
WITH


sh: /usr/bin/ls: 0403-027 The parameter list is too long.


In unix prompt ls *.xml is working (giving out those 305 xmls)

Could anybody help me out?

Thanks and Regards
VAMSI
Satyam computers ltd


DISCLAIMER:
This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated.



“…ooooh short answer yes with an if, long answer no with a but…”

Reverend Lovejoy



Reply via email to