Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

rebol on MacOSX Server

 [1/2] from: kjetil::helpinhand::com at: 2-Feb-2001 17:01


<flushleft><fontfamily><param>Arial</param><x-tabstops><param>0L;28L;56L;84L;112L;140L;168L;196L;224L;252L;280L;308L;336L;</param>We have a problem that may be solved in versions later than 2.2.0.2.4 - we need send arguments to the script that is longer than 255 characters. We currently access the script from java via Runtime.getRuntime().exec(Path and arguments) but this does'nt support very long arguments, therefore we made a small Obj-c class to handle this. It's possible to send longer arguments to shell scripts but rebolscripts is not registering anything at all. (we catch the arguments with system/script/args and to debug we wrote it directly to file). The Obj-c class uses NSPipe and sets the argument with setArgument, another approach could be to not use setArgument but launch the task and then write to the script using a filehandle, but if system/script/args does'nt read more than 255 this would be pointless. Have anyone experience with this? rgds Kjetil </x-tabstops></fontfamily></flushleft>=

 [2/2] from: holger:rebol at: 2-Feb-2001 11:07


On Fri, Feb 02, 2001 at 05:01:54PM +0100, kjetil wrote:
> We have a problem that may be solved in versions later than 2.2.0.2.4 - > we need send arguments to the script that is longer than 255
<<quoted lines omitted: 3>>
> this. It's possible to send longer arguments to shell scripts but > rebolscripts is not registering anything at all.
REBOL does not have any limitation on the length or number of arguments. It accepts the arguments in the usual Unix way from argc and argv. If arguments are cut off along the way then this is most likely done either by the part of MacOSX that launches another program or by libc in the glue code that calls main(). -- Holger Kruse [holger--rebol--com]

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted