--- Chris Wagner <[EMAIL PROTECTED]> wrote:
> I'm on 98SE and it seems to work OK for me. Are u sure ur program is
> printing to STDOUT and not STDERR?
>
i've actually got STDERR redirected to a textfile, and the only thing that ever
gets sent to it is the "terminating program" message when I CTRL-C break the
program.
> C:\WINDOWS\Desktop>perl
> $a = `hostname`;
> print $a;
> ========
> attic
>
> C:\WINDOWS\Desktop>perl
> $a = system("hostname");
> print $a;
> ========
> attic
> 0
> C:\WINDOWS\Desktop>
>
yeah, i always get the zero (0) value from the successful system call assigned
to my variable. but i dont get the printout to the screen from the system call
itself. and i know the C program is just printing to STDOUT through the
standard "printf" command.
whats worse is that i also have the C program writing to a file... the write
occurs when i run the C-executable alone, or when i call it via any Perl method
on a WinXP machine... but the file write ("fwritef") doesnt even occur when i
call the executable from any Perl method on a Win98 machine.
-robert
> At 08:00 PM 7/26/05 -0700, robert wrote:
> >but when i call this executable from Perl on a Win98 system, it will not
> assign
> >the resulting output at all. it wont even print it to the screen.
> >
> >ive tried a number of methods:
> >
> > $result=system("myprogram.exe $arguments");
> > print " found: [$result]\n";
> >
> >or
> >
> > $result=`myprogram.exe $arguments`;
> > print " found: [$result]\n";
> >
>
>
>
>
> --
> REMEMBER THE WORLD TRADE CENTER ---=< WTC 911 >=--
> "...ne cede males"
>
> 00000100
>
> _______________________________________________
> Perl-Win32-Users mailing list
> [email protected]
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs