Article View: borland.public.cppbuilder.nativeapi
Article #11421Re: How to get the standard output of an RSH command using WIN32 API
From: Remy Lebeau (TeamB)
Date: Mon, 09 Feb 2004 18:38
Date: Mon, 09 Feb 2004 18:38
14 lines
1456 bytes
1456 bytes
"Jerri Chiu" <jerrichiu@yahoo.com> wrote in message news:4027cb10$1@newsgroups.borland.com... > String strCmd = "rsh hosta -l usera -n ls > temp.txt"; Use CreateProcess(). The STARTUPINFO structure allows you to specify your own STDIN/OUT/ERR handles for the spawned process. Use CreatePipe() to create a handle that you then supply as the hStdOut member of STARTUPINFO, and then use ReadFile() to read any data that is sent to the pipe by the process. Gambit
Technical Details
Message-ID:
<4027d1ec$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<4027cb10$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,310df85c3f4e1fd7 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-02-09 10:34:59 PST From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <4027cb10$1@newsgroups.borland.com> Subject: Re: How to get the standard output of an RSH command using WIN32 API Date: Mon, 9 Feb 2004 10:38:35 -0800 Lines: 16 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 67.22.138.253 Message-ID: <4027d1ec$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1076351468 67.22.138.253 (9 Feb 2004 10:31:08 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail