Re: Command line limit for an arbitrary program?

2003-06-14 Thread Shaul Karl
On Fri, Jun 13, 2003 at 10:28:28AM +0300, Nadav Har'El wrote: From a quick glance on the kernel include files (unfortunately I'm not an expert enough on the Linux kernel to give you an authoritative answer) I see that 32 pages are allocated for arguments. At 4K per page, that comes out to a

Re: Command line limit for an arbitrary program?

2003-06-14 Thread Yedidyah Bar-David
On Sat, Jun 14, 2003 at 04:30:14PM +0300, Shaul Karl wrote: On Fri, Jun 13, 2003 at 10:28:28AM +0300, Nadav Har'El wrote: [snip] BTW, if you search google a bit more, you will find out that HURD (and maybe others?) do not have any limit. So if you want to be portable, do not assume

Re: Command line limit for an arbitrary program?

2003-06-13 Thread Muli Ben-Yehuda
On Fri, Jun 13, 2003 at 03:04:40AM +0300, Shaul Karl wrote: #include stdio.h int main(int argc, char* argv[]) { (argc 2 ) ? printf(Need to get an argument.\n) : printf(%s\n, argv[1]); return 0; }

Re: Command line limit for an arbitrary program?

2003-06-13 Thread Nadav Har'El
On Fri, Jun 13, 2003, Shaul Karl wrote about Command line limit for an arbitrary program?: 1. What is the limit for strlen(argv[1]) and where is it set? On Unix, command line arguments are passed from the running program to the executable which is going to replace it, with an execve() system

Command line limit for an arbitrary program?

2003-06-12 Thread Shaul Karl
Considering the following program: #include stdio.h int main(int argc, char* argv[]) { (argc 2 ) ? printf(Need to get an argument.\n) : printf(%s\n, argv[1]); return 0; } 1. What is the limit for

Re: Command line limit for an arbitrary program?

2003-06-12 Thread Yedidyah Bar-David
On Fri, Jun 13, 2003 at 03:04:40AM +0300, Shaul Karl wrote: Considering the following program: #include stdio.h int main(int argc, char* argv[]) { (argc 2 ) ? printf(Need to get an argument.\n) : printf(%s\n,