Experimental Physics and Industrial Control System
The ioc shell doesn't call its registered functions with individual arguments so the limit you're describing does not exist. iocsh handler functions are called with a single argument -- a pointer to an array of argument unions. The only limit that I can see is the amount of memory available to hold this array.
On Apr 20, 2011, at 9:53 AM, Hu, Yong wrote:
> I guess the limitation is determined by the C++/C language. As I recalled from some textbooks, 256 Max. arguments in one function call in C++ and 128 in C.
>
> But I guess nobody writes a function with tens of arguments. I did write a configuration function as ioc shell with 9 arguments which works well.
>
> Yong
>
>> -----Original Message-----
>> From: [email protected] [mailto:tech-talk-
>> [email protected]] On Behalf Of Jim Chen
>> Sent: Wednesday, April 20, 2011 12:36 PM
>> To: [email protected]
>> Subject: shell command arguments limitation?
>>
>> Hello,
>>
>> I remember there used to be a limitation for the number of arguments in
>> a single ioc shell command (configuration for example). What exact
>> number is it since R3.14.11 release or is there a one please?
>>
>> Thanks,
>>
>> Jim
>> Hytec Electronics Ltd.
>> Tel: +44 (0) 118 975 7770
>> Fax: +44 (0) 118 975 7566
>> Web: www.hytec-electronics.co.uk
>> Incorporated in England No 1246940
>> VAT NO GB 285 2479 27
>> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>>
>>
>>
>
>
--
Eric Norum
[email protected]
- Replies:
- Re: shell command arguments limitation? Andrew Johnson
- References:
- New sequencer bugfix release candidate Benjamin Franksen
- seq-2-0-13-rc2 Benjamin Franksen
- shell command arguments limitation? Jim Chen
- RE: shell command arguments limitation? Hu, Yong
- Navigate by Date:
- Prev:
RE: shell command arguments limitation? Hu, Yong
- Next:
Re: shell command arguments limitation? Andrew Johnson
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
<2011>
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
- Navigate by Thread:
- Prev:
RE: shell command arguments limitation? Hu, Yong
- Next:
Re: shell command arguments limitation? Andrew Johnson
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
<2011>
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025