[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
- Re: wait_for_file ?? [print via pipes - help testing on Windows?], (continued)
- Re: wait_for_file ?? [print via pipes - help testing on Windows?], Marco Atzeri, 2010/09/17
- Re: wait_for_file ?? [print via pipes - help testing on Windows?], Marco Atzeri, 2010/09/17
- Re: wait_for_file ?? [print via pipes - help testing on Windows?], bpabbott, 2010/09/17
- Re: wait_for_file ?? [print via pipes - help testing on Windows?], Marco Atzeri, 2010/09/17
- Re: wait_for_file ?? [print via pipes - help testing on Windows?], bpabbott, 2010/09/17
- Re: wait_for_file ?? [print via pipes - help testing on Windows?], Marco Atzeri, 2010/09/18
- Re: wait_for_file ?? [print via pipes - help testing on Windows?],
Ben Abbott <=
- Re: wait_for_file ?? [print via pipes - help testing on Windows?], Michael D Godfrey, 2010/09/18
- Re: wait_for_file ?? [print via pipes - help testing on Windows?], Ben Abbott, 2010/09/18
- Re: wait_for_file ?? [print via pipes - help testing on Windows?], Michael D Godfrey, 2010/09/18
- Re: wait_for_file ?? [print via pipes - help testing on Windows?], Shai Ayal, 2010/09/18
- Re: wait_for_file ?? [print via pipes - help testing on Windows?], Michael D Godfrey, 2010/09/18
- Re: wait_for_file ?? [print via pipes - help testing on Windows?], Michael D Godfrey, 2010/09/18
- Re: wait_for_file ?? [print via pipes - help testing on Windows?], Ben Abbott, 2010/09/19
- Re: wait_for_file ?? [print via pipes - help testing on Windows?], Michael D Godfrey, 2010/09/19
- Re: wait_for_file ?? [print via pipes - help testing on Windows?], Ben Abbott, 2010/09/19
- Re: wait_for_file ?? [print via pipes - help testing on Windows?], Michael D Godfrey, 2010/09/19