Hi!

On Sun, Apr 29, 2012 at 02:49, Mohammed Rashad
<[email protected]> wrote:
> Hi,
> Thanks. I saw that you are using system command to execute a process. Is
> there any alternative to execute process, PIPE ing stdout and stderr to a
> std::stringstream without writing to file?
I think, it is possible, at least on Unix, but has not been done yet :)


>
> On Sat, Apr 28, 2012 at 9:24 PM, Nagaev Boris <[email protected]> wrote:
>>
>> Hello!
>>
>> How does the process report its progress?
>
> Currently there is no method that reports the process progress. Also I am
> using a library and it had a 100's of executables.
> Its  a difficult task to rewrite them and to maintain it seperately
>
>>
>> I can suggest you to create temp text file from the process and write
>> from time to time percentage (like 55%) to it. And read from this file
>> to Wt application and show it to user (using WProgressBar::setValue)
>> from time to time.
>>
>> offtopic:
>>
>> I have written library wt-classes, based on Wt, part of which is a
>> module to run command line processes from web:
>> http://starius.ru/wt-classes/reference/group__wbi.html
>>
>> Example (web interface for Unix xxd tool):
>> http://starius.ru/wt-classes/examples/xxd-wt
>>
> This is awesome and you are done and is doing a wonderful job!
>
>
>>
>> More information about wt-classes:
>> https://bitbucket.org/starius/wt-classes
>> Downloads: https://bitbucket.org/starius/wt-classes/downloads
>>
>> On Sat, Apr 28, 2012 at 18:28, Mohammed Rashad
>> <[email protected]> wrote:
>> >
>> > I am executing some process from web. I currently use cmd 2>&1 to pipe
>> > stdout and stderr to wt textbox
>> >
>> > Now I want to show the progress of process which i spawned using a
>> > progressbar
>> >
>> > Is it possible in Wt?
>> >
>> >
>> > @offtopic:
>> >
>> > does any one know any library which I can use with Wt to start process,
>> > read
>> > outputs and also get some info to update a WProgressBar
>> >
>> > I tried Boost.Process, pstreams. None of them worked getting different
>> > outputs every time. It works sometimes and sometimes it wont work
>> >
>> > --
>> > Regards,
>> >    Rashad
>> >
>> >
>> >
>> > ------------------------------------------------------------------------------
>> > Live Security Virtual Conference
>> > Exclusive live event will cover all the ways today's security and
>> > threat landscape has changed and how IT managers can respond.
>> > Discussions
>> > will include endpoint security, mobile security and the latest in
>> > malware
>> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> > _______________________________________________
>> > witty-interest mailing list
>> > [email protected]
>> > https://lists.sourceforge.net/lists/listinfo/witty-interest
>> >
>>
>>
>> ------------------------------------------------------------------------------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and
>> threat landscape has changed and how IT managers can respond. Discussions
>> will include endpoint security, mobile security and the latest in malware
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> witty-interest mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
>
>
>
> --
> Regards,
>    Rashad
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to