From: Luca Ferrari <fluca1978@infinito.it>
To: linux-admin@vger.kernel.org
Subject: Re: cdrom and multisession
Date: Tue, 24 Aug 2004 18:29:44 +0200 [thread overview]
Message-ID: <200408241829.44692.fluca1978@infinito.it> (raw)
In-Reply-To: <2899.192.168.99.70.1093363900.squirrel@192.168.99.70>
On Tuesday 24 August 2004 18:11 Scott Taylor's cat walking on the keyboard
wrote:
Hi Scott,
I'm not asking you to do my homework, just a suggestion.
>
> Use a rewritable aproach?
>
I believe this will imply to dump the original content, add the new and
rewrite it all. If so, I don't like it, otherwise please explain what you're
thinking about.
> > Otherwise, how can I iterate automatically on all the session of a cd to
> > search for a specific file?
>
> How can you write a program if you don't know how to use a loop to iterate
> through a set or increment an integer to a maximum value?
>
Who said that? Do you think I'm not able to iterate other a set of values? Did
you understand that from my e-mail address?
> First you'll need to know the number of sessions on your CD, or make your
> program guess with an 'or die' (or equiv) if mounting fails.
>
That's what I was thinking. Imagine I've got a cd in the driver, and I don't
know how many sessions are there in the cd, but I know that the cd contains,
in one of the session, a file I want to read. What I was asking here is if
there is a way to know how many session are present, thus to easily iterate
without making my program to try mounting the cd and stopping at the first
fail, to reach the file I'm looking for. I'd like to do this in bash.
>Not really quite sure what you are trying to ask us here.
If you don't know the answer, please don't post.
Luca
--
Luca Ferrari,
fluca1978@infinito.it
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2004-08-24 16:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-23 13:15 cdrom and multisession Luca Ferrari
2004-08-24 15:44 ` Luca Ferrari
2004-08-24 16:11 ` Scott Taylor
2004-08-24 16:29 ` Luca Ferrari [this message]
2004-08-25 18:51 ` Stephen Samuel
2004-08-27 1:54 ` cdrom and multisession add2cd script Gustavo Guillermo Perez
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200408241829.44692.fluca1978@infinito.it \
--to=fluca1978@infinito.it \
--cc=linux-admin@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).