CD Writing - wodim & Subprocess

6 views
Skip to first unread message

Grantbow

unread,
Sep 26, 2010, 9:08:35 PM9/26/10
to XO Toaster
The binary executable we have chosen to write our data to external USB
CD burners is wodim. We have been working to redirect and interpret
the stdout and stderr while wodim is working (worst case after wodim
is finished) using the Python Subprocess module. We have been working
to understand the semantics of exactly how Subprocess works (and how
the underlying fork and exec works) and how the stdout data is
buffered and flushed back to the calling python script. No code has
been committed to our git repository for this yet.

We would like to provide feedback while a CD is burning, perhaps in
the form of a large clock counting down the time/bytes remaining.

We also need to provide a basic user interface outside of the journal
for the 700 MB iso images we are burning. The simplest way is to
provide a simple UI to provide a full path name, whether the iso is on
the local disk (possible with a 1.5 machine or sugar on a stick) or
the iso is on another USB stick in the case of XO 1.0 machines.

Comments welcome.

Grant

akle...@sonic.net

unread,
Sep 26, 2010, 10:51:39 PM9/26/10
to xoto...@googlegroups.com, gl...@glenjarvis.com
Grant, (and Glen, if we can pique your interest to help us:-)

See the three attachments.

I'm at a complete loss as to why tt1 works but pycmd (which calls countN)
does not.

I mentioned what we are doing to Glen Jarvis when I ran into him at
baypiggies Thursday and he mentioned that he had worked on something like
this in the past and his memory is that it can't be done. I was hoping to
prove him wrong but haven't been able to.

I'll cc him as well because he did seem interested and he might be able to
shed some light.

cheers,
alex

pycmd
tt1
countN
Reply all
Reply to author
Forward
0 new messages