Shell - argv limits
JB
sundown at pacifier.com
Wed Jun 28 20:48:19 EDT 2017
No I have not but it is certainly
very interesting info.
Thank you,
JB
> On Jun 28, 2017, at 5:43 PM, Richard Gaskin via use-livecode <use-livecode at lists.runrev.com> wrote:
>
> JB wrote:
>
> > When using argv it has a character limit. I think it
> > might be different on different systems but you can
> > probably use a few thousand characters for each
> > argument. You can have as many arguments as
> > memory can handle. Probably thousands. You
> > should refer to a file for larger data.
>
> Have you looked into passing data with pipes (stdin/stdout)?
>
> If the process will be long-running and used for multiple events, sockets may be another option.
>
> Reading up on how some folks pass data between processes on Linux servers it seems the shared memory RAM disk automatically mounted at /run/shm can be useful. In some brief tests here it was about 9 times faster than my fastest SSD, and a lot simpler than sockets. In LC SHM works great with normal file I/O commands.
>
> --
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web
> ____________________________________________________________________
> Ambassador at FourthWorld.com http://www.FourthWorld.com
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
More information about the use-livecode
mailing list