The stupid question is the question not asked | |
PerlMonks |
Re: Disc burningby trippledubs (Deacon) |
on Jun 07, 2019 at 19:40 UTC ( [id://11101110]=note: print w/replies, xml ) | Need Help?? |
fork and flock and a lock that blocks. The child pid (fork) locks a file using flock, once that lock is achieved (correctly), you can use the CD-ROM. Inside that locked region of code, you can log to a file to record the status. You could also wait on the child to get the exit status.
In Section
Seekers of Perl Wisdom
|
|