sathiya.sw has asked for the wisdom of the Perl Monks concerning the following question:

Monks,

How to find how much space is available free in DVD / CD RW. Is there any module / method available to do it ?

Requirement is, according to the remaining free space need to decide writing again in that CD / DVD - RW.
Sathiyamoorthy
  • Comment on how to find the free amount of space in rw - cd/dvd

Replies are listed 'Best First'.
Re: how to find the free amount of space in rw - cd/dvd
by marto (Cardinal) on Jan 03, 2009 at 10:26 UTC
Re: how to find the free amount of space in rw - cd/dvd
by spx2 (Deacon) on Jan 04, 2009 at 15:53 UTC
    I'd just parse the 4th column of df -h <mountpoint>. About the decision of wether to write or not to the DVD, if the problem is optimizing so that you waste as little space as possible then it's possible that the problem falls into the Knapsack category.