[REBOL] rebol on MacOSX Server
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>=