Re: Help with strange program
output redirection is done by the shell. What you're doing is passing
strings to the *module's* argument list. If the module doesn't handle
you're not going to have any luck.
You can use Sh->system to have the shell do the work for you. You can
also do it yourself like this:
pctl yourself a new file descriptor group
open a file.
dup that file's fd to standard out.
On Sun, Feb 8, 2009 at 10:46 AM, Ishwar Rattan
> I am trying to write a limbo program that will
> write the output of du -n dir > outfile, the given code
> code sends the output to stdout. Is this the right way
> to do it output redirection??
> # Attempt to write output of du -n dir to a file
> # to get the effect of du -n . > outfile
> implement Execdu;
> include "sys.m";
> include "draw.m";
> include "sh.m";