Progress bar
[1/3] from: brasilv:tin:it at: 21-Nov-2005 12:41
Hi List,
I've a cmd like this:
> call/output/wait cmd-iso none
Where cmd-iso is the call to cdrecord
I would like to know how to show a progress bar for this command and hide
the shell window.
Thank you, Silvia
[2/3] from: gabriele::colellachiara::com at: 21-Nov-2005 13:01
Hi Silvia,
On Monday, November 21, 2005, 12:41:54 PM, you wrote:
>> call/output/wait cmd-iso none
SB> Where cmd-iso is the call to cdrecord
SB> I would like to know how to show a progress bar for this command and hide
SB> the shell window.
Unfortunately, you can't. However, if you have /Pro and library
access, it is possible to do it using something like my async-call
function (the Windows version is based on Nenad's code):
http://www.colellachiara.com/soft/async-call-definition.r
HTML docs in:
http://www.colellachiara.com/soft/client.html#sect15.5.
Note, though, that you won't be able to use the script as is,
because it is written as a module for the Network Detective... but
you can just copy and paste the code out of it. You'll need to
change the code to suit your needs and remove any dependencies it
may have that you don't need. Maybe someone can help you with
it... otherwise I'll see if I can find some free time.
Regards,
Gabriele.
--
Gabriele Santilli <gabriele-rebol.com> --- http://www.rebol.com/
Colella Chiara software division --- http://www.colellachiara.com/
[3/3] from: kpeters-vu::ware::com at: 21-Nov-2005 22:37
Hi Silvia ~
assuming you are referring to Joerg Schilling's cdrecord for UNIX:
Before you even worry about progress bars etc. - how is your application
going to talk to cdrecord?
I may be mistaken but I don't think that there are any callback hooks
for you to employ - your REBOL thus wouldn't know about the progress
cdrecord is making.
Maybe there's a way to redirect cdrecord's output to file and to read
its percentages from there?
Regards,
Kai
>Hi List,
>I've a cmd like this:
<<quoted lines omitted: 3>>
>the shell window.
>Thank you, Silvia
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted