|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
limit of command length
Hi!
Can you please help me with one question? Does rexec command have some limitation of the length of the deliveded cmd? Thanks in advance, Anta |
| Sponsored Links | ||
|
|
#2
|
|||
|
|||
|
Probably it does, but there are many implementations, so if it is undocumented, you will have to experiment, or look at the source.
rexec is insecure and should be replaced by ssh if at all possible anyway. Any command handled by the exec() system call needs to be less than ARG_MAX, which is a constant defined in the kernel. POSIX requires ARG_MAX to be 4,096 bytes, but on modern systems, it's usually significantly larger. Shameless self-promotion: How long can the command line be? |
| The Following User Says Thank You to era For This Useful Post: | ||
DerekAsirvadem (01-07-2011) | ||
| Sponsored Links | ||
|
|
#3
|
||||
|
||||
|
Quote:
There you also write: Quote:
However, SunOS 4 knows "sysconf(_SC_ARG_MAX)". Quote:
Quote:
|
| The Following User Says Thank You to s.mascheck For This Useful Post: | ||
DerekAsirvadem (01-07-2011) | ||
| Sponsored Links | ||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| awk: Program length limit ? | DerekAsirvadem | Shell Programming and Scripting | 9 | 01-11-2011 08:30 AM |
| Is there a limit for a code line length in C? | alex_5161 | Programming | 8 | 06-23-2010 11:53 AM |
| AWK limit for (length) function? | CKT_newbie88 | Shell Programming and Scripting | 3 | 05-03-2009 10:57 PM |
| Is the Length of User ID for AIX Limit to 8 Characters? | meihua_t | AIX | 2 | 04-07-2008 02:04 AM |
| grep line length limit | hnhegde | Shell Programming and Scripting | 3 | 10-02-2006 11:47 AM |
|
|