freelanceprogrammers.org Forum Index » Perl
Max number of command line arguments
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.
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.
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
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
China Wholesale - Electronics Products
Character Studio - Tutorials and Help







