|
-
May 13th, 2010, 11:03 AM
#1
[SOLVED]CMD.exe input/output redirection or piping
I didn't see anything in search or FAQ, but if I just missed it then I apologize.
(Windows Platform)
My end goal is to run console commands on a remote machine via telnet entirely programmatically, for the sake of automation. This would require, I assume, being able to spawn a child cmd.exe and pipe keyboard input into it and read the output.
I've read msdn and support.microsoft.com articles and everything I can find is just a child program that spits out pipe contents, not that can control a separate cmd.exe program.
Is this easy/hard/impossible or am i just looking in the wrong direction?
Thanks in advance.
Hoobs
[SOLVED]
This thread was infinitely helpful.
http://www.gamedev.net/community/for...page=1�
Last edited by Hoobs; May 13th, 2010 at 12:03 PM.
Reason: Solved
-
July 19th, 2011, 10:31 PM
#2
Re: CMD.exe input/output redirection or piping
Sounds like you found something that worked. If you're interested in heavy-duty automation on Windows, I recommend cygwin (link) - a linux terminal emulator for Windows. I have used it extensively with shell scripting to automate a wide variety of data processing functions. I've also heard good things about PowerShell (wikipedia link), but have not used it personally.
Best Regards,
BioPhysEngr
http://blog.biophysengr.net
--
All advice is offered in good faith only. You are ultimately responsible for effects of your programs and the integrity of the machines they run on.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|