octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: wait_for_file ?? [print via pipes - help testing on Windows?]


From: Ben Abbott
Subject: Re: wait_for_file ?? [print via pipes - help testing on Windows?]
Date: Sat, 18 Sep 2010 10:59:09 -0400

On Sep 18, 2010, at 12:33 AM, Marco Atzeri wrote:

> --- Ven 17/9/10, bpabbott <address@hidden> ha scritto:
> 
> This looks good to me. Does the short script below run and produce the 
> "test.txt" file containg "Hello World"?
> 
>   pid = popen ("cat > test.txt", "w");
>   fprintf (pid, "Hello World");
>   waitpid (pid);
>   pclose (pid);
> 
> Ben
> 
> yes

I recall the gl2ps renderer includes an fclose(pid). What happens with ...

  pid = popen ("cat > test.txt", "w");
  fprintf (pid, "Hello World");
  fclose (pid);
  waitpid (pid);
  pclose (pid);

Ben


reply via email to

[Prev in Thread] Current Thread [Next in Thread]