Chris Nehren
2010-06-16 07:50:54 UTC
I'm trying to use new_process to call a Unix filter (specifically, I
want to use a Perl program I wrote to filter article text in slrn).
However, it throws an exception even with the examples from the docs.
Here's one such example:
#!/usr/local/bin/slsh
require("process");
variable pgm = ["/usr/home/apeiron/bin/fix_articles"];
obj = new_process (pgm; write={1,2}, read=0);
% doesn't get here
Then when I try to run it:
$ cat google_bad_quoting | ./filter.sl
Unable to typecast Null_Type to String_Type
Traceback: fdopen
/usr/local/share/slsh/process.sl:338:new_process:Type Mismatch
Am I doing something wrong here? I'm running against s-lang version
2.2.2.
want to use a Perl program I wrote to filter article text in slrn).
However, it throws an exception even with the examples from the docs.
Here's one such example:
#!/usr/local/bin/slsh
require("process");
variable pgm = ["/usr/home/apeiron/bin/fix_articles"];
obj = new_process (pgm; write={1,2}, read=0);
% doesn't get here
Then when I try to run it:
$ cat google_bad_quoting | ./filter.sl
Unable to typecast Null_Type to String_Type
Traceback: fdopen
/usr/local/share/slsh/process.sl:338:new_process:Type Mismatch
Am I doing something wrong here? I'm running against s-lang version
2.2.2.
--
Thanks and best regards,
Chris Nehren
Unless noted, all content I post is CC-BY-SA.
Thanks and best regards,
Chris Nehren
Unless noted, all content I post is CC-BY-SA.