Jump to content
Sign in to follow this  
Scorched

StdoutRead Doesn't Capture All Program Output

Recommended Posts

Scorched

Hello.

When I try to capture the output from a command line program, most of the time it only captures the first line of output. For example, this problem occurs with ping and nbtstat:

$pingoutput = Run("ping www.google.com","",@SW_HIDE,2)
MsgBox(0,"Output",StdoutRead($pingoutput))oÝ÷ Ú) Ûiÿø¦7f zÈZrK¬þ) ãÿãÞ·þ­¦ëu­ã¦ân¶'Èi×Z)!Ƨëm秶*Þ¢ëiºÖ®¶­sbb33c·æv÷WGWBÒ'VâgV÷C·ærwwrævöövÆRæ6öÒgV÷C²ÂgV÷C²gV÷C²Ä5uôDRÃ"¢b33c¶÷WGWBÒgV÷C²gV÷C° ¤Fð b33c¶æWvÆæRÒ7FF÷WE&VBb33c·æv÷WGWB b33c¶÷WGWBf׳Òb33c¶æWvÆæP¥VçFÂb33c¶æWvÆæRÓÒgV÷C²gV÷C° ¤×6t&÷ÂgV÷C´÷WGWBgV÷C²Âb33c¶÷WGWB

Posted Image

I was wondering if anybody knows why this is happening, and if there's a better workaround than mine. Thank you.

Share this post


Link to post
Share on other sites
/dev/null

I was wondering if anybody knows why this is happening, and if there's a better workaround than mine. Thank you.

the help file samples do call StdOutRead() in a while loop, to capture the whole output. So, this is not a workaround, it's normal behaviour. Also read the help file Remarks for StdOutRead().


__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.