Since I've had problems with (process), I tried to use (exec) instead. When I read the documentation I was very happy; it does exactly what I need.
With (exec), I would run the command, and it would return the output of the command as a list of strings. Ok, that is almost what I need, but I need to send the command some specific input. Great! (exec) allows that, with usage:
Code: Select all
(exec "command" "input to command") => ?
The documentation doesn't say that (exec cmd input) has different output than (exec cmd). But, it doesn't return a list of strings. Instead it returns a number. Whether it is a process id or the exit value of the program, I don't know.
Lutz, could exec with user supplied input be updated to return the same string list I've come to expect from the simpler form?
Again, this is with newLisp 10.6.2.
Cavemen in bearskins invaded the ivory towers of Artificial Intelligence. Nine months later, they left with a baby named newLISP. The women of the ivory towers wept and wailed. "Abomination!" they cried.