[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Program Help Needed
I've attached a couple of Perl scripts which I use to burn CD's. Basically,
they show two different ways to burn CD's. "make_cd" will first create an
ISO image from "mkisofs", and then use "cdrecord" to burn the CD.
"make_multi" will burn a multi session CD 'on the fly' using a pipe from
"mkisofs" to "cdrecord".
There is some locking in "make_cd" which prevents multiple people from
trying to burn more than 1 CD at a time, as this is used at work on a
'shared' CD.
Just a couple of examples to maybe get someone started.
Cheers,
Rob
> -----Original Message-----
> From: Tom Droege [mailto:tdroege2@earthlink.net]
> Sent: January 16, 2003 7:21 AM
> To: tass@listserv.wwa.com
> Subject: Program Help Needed
>
>
> One of you that is good at this sort of thing might take on a helpful
> project for me.
>
> I am now networked (thanks to Rob Creager) and can see the
> data taking
> computer from my Linux office computer(s).
>
> I need a script that will do the following to write a nights
> data from a
> single computer to CDs:
>
> 1) prompt for a directory - typical /mnt/leejohn/newfol
> 2) prompt for a starting file name. Just the last 4 numbers
> before the
> .fits should be enough. I now turn on well before dusk and
> just take data
> until dawn. There are "bad" files at the beginning and end
> of a run. I
> will typically examine the files to see where the good ones start and
> end. Or whether the data is so bad that I discard the whole evening.
> 3) prompt for an ending file name. Note the data usually
> wraps around
> midnight, so 4 digits are needed. So with files with names like
> hira2654509.fits I might give a starting file of 4500 and an
> ending file of
> 5017
> 4) prompt to load the first disk.
> 5) write 40 V and 40 I files to the first disk.
> 6) prompt for the second disk.
> 7) continue until done.
> 8) if there is room, write all the other files in the directory to
> disk. This is only a couple of megabytes but it is useful to
> record all
> the programs used in the data taking in case I later want to
> know which
> version of the program I was running.
>
> A script in perl or bash would be OK for me. It does not
> have to work the
> first time as I can debug it. I just don't know all the
> tricks to get
> something like this going. A later modification will be to
> do the same
> thing using DVD disks. Here one disk will usually do the
> evening. If
> someone wants to take this on, let me know and I will work with you
> privately. In general I like to spread the projects around
> so preference
> is given to someone who has not done a project with me
> before. Hopefully
> one of you will step forward.
>
> Tom Droege
>
>
make_cd
make_multi