Some more information on my problem:
This is how I invoke the script: system("script");
Now, the question would be: How do I dump the output of this to a
file?
Thanks again.
--- In [email protected], "Sumit Chawla" <[EMAIL PROTECTED]> wrote:
>
> On 04 Apr 2007 05:56:09 -0700, sanofsans <[EMAIL PROTECTED]> wrote:
> >
> > Thank you for your answers. The problem is that the invoked
script is
> > written by somebody else, and I do not know how it works. All I
have
> > to do is to invoke it, and it displays an output. OR is there a
way
> > to dump the output to a file eventhough you do not know how the
> > invoked script works?
> >
> > Thanks again.
> >
> > --- In [email protected] <c-prog%40yahoogroups.com>, "Nico
Heinze"
> > <grollnar@> wrote:
> > >
> > > --- In [email protected] <c-prog%40yahoogroups.com>,
Thomas Hruska
> > <thruska@> wrote:
> > > >
> > > > sanofsans wrote:
> > > > > Hi folks, check this out!
> > > > >
> > > > > I wrote a C++ program in which a dialog box with an OK
button
> > > > > appears. This part works! When I click on OK, a perl
> > > > > script is invoked, and the result of that script should
appear
> > > > > in a DOS window. This does not work.
> > > <snip>
> > > > Why not dump the output into a multi-line textbox (e.g.
similar
> > > > to how NSIS-based installers work)? Then you won't need to
> > > > show a command prompt at all.
> > >
> > > Another more general approach is to write this output into some
text
> > > file; then you can check this file and its contents in any way
you
> > (or
> > > your clients later on) might want to.
> > >
> > > Regards,
> > > Nico
> > >
> >
> > __._,
> >
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> On windows you can use something like that
>
> cmd /k "perl myperl.pl"
>
> This will span a command window, which will execute your script
and stay
> there..
>
>
> --
> Regards
> Sumit Chawla ("eNetra : Hail the Invention")
>
>
> "Computers are useless. They can only give you answers.":Pablo
Picasso
>
>
> [Non-text portions of this message have been removed]
>