how do I redirect STDIN STDOUT for cmd.exe?
-
Hi folks How do i redirect stdin stdout stderr for a process (cmd.exe). the usual method (as given in msdn) doesnt seem to give an interactive shell. help needed. thanks
-
Hi folks How do i redirect stdin stdout stderr for a process (cmd.exe). the usual method (as given in msdn) doesnt seem to give an interactive shell. help needed. thanks
I think you want to read in the standard cosole. If I am correct, then u can do this by simply open a socket at port no. 512. anything u write would be sent to standard console for output and anything that is typed at the console would be available for u to read on the socket. 512 is a port that open to the standard console. Rahim Rattani Software Engineer, Matrix Systems (Pvt) Ltd., Karachi - Pakistan
-
I think you want to read in the standard cosole. If I am correct, then u can do this by simply open a socket at port no. 512. anything u write would be sent to standard console for output and anything that is typed at the console would be available for u to read on the socket. 512 is a port that open to the standard console. Rahim Rattani Software Engineer, Matrix Systems (Pvt) Ltd., Karachi - Pakistan
1. 512 is 'rexec' port.It executes single commands non-interactively. 2. I dont want to use any builtin remote cmd execution service/prog. 3. I want to code an interactive telnet server.