freelanceprogrammers.org Forum Index » Perl

Max number of command line arguments


View user's profile Post To page top
kgopal_sh Posted: Sat Jan 21, 2006 10:47 am


Joined: 24 Dec 2005

Posts: 8
Max number of command line arguments
Hi,
I have one doubt , while executing the program we are giving the
command line arguments .. right.. then this arguments having any fixed
number .
I mean what are the maximum number of command line arguments that we
can give at the execution time.

Anybody can reveal this ...

Thanks
gopi.
Reply with quote
Send private message
View user's profile Post To page top
Rob_Wilson_98 Posted: Tue Jan 24, 2006 7:59 pm


Joined: 02 Aug 1999

Posts: 11
Max number of command line arguments
--- In Perl_Official@yahoogroups.com, "kgopal_sh" <kgopal_sh@y...> wrote:
>
> Hi,
> I have one doubt , while executing the program we are giving the
> command line arguments .. right.. then this arguments having any fixed
> number .
> I mean what are the maximum number of command line arguments that we
> can give at the execution time.
>
> Anybody can reveal this ...
>
> Thanks
> gopi.
>

This is operating system or shell dependent. I believe the limitation
is more the length of the command line in characters than it is the
length in tokens.
http://support.microsoft.com/default.aspx?scid=kb;en-us;830473 for
Windows, >300 for Unix but can be tweaked by the admin.


If the length of arguments is getting a bit long, you may want to
consider providing switches (Getopt::Std or Getopt::Long) or enclosing
the parameter in quote characters so a long string becomes one argument.
Reply with quote
Send private message
Post new topic Reply to topic
Display posts from previous:   
 

All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
China Wholesale - Electronics Products
Character Studio - Tutorials and Help