Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!rutgers!apple!vsi1!wyse!uunet!mcvax!hp4nl!philmds!nlgvax!geertj From: geertj@nlgvax.UUCP (Geert Jan de Groot) Newsgroups: comp.sources.d Subject: Re: Remote control of PC via modem Message-ID: <172@nlgvax.UUCP> Date: 5 Dec 88 10:13:26 GMT References: <4652@phoenix.Princeton.EDU> <104@unibase.UUCP> Reply-To: geertj@nlgvax.UUCP (Geert Jan de Groot) Organization: Philips Research Geldrop Lines: 32 In article <104@unibase.UUCP> root@unibase.UUCP (Super User) writes: [About remote controlling a PC via a modem] >The basis of the solution is the 'ctty' command, which shifts the command >input/output from the keyboard/screen to a com port. I wonder how the ctty command works. In particular, is it possible to do the same (that is, redirect input/output) from a C program? I wonder if it is possible to do: main() { ctty(whatever); system("\\command.com"); } and what the ctty() function should look like. Thanks in advance for any responses. Regards, Geert Jan -.-.- --... ...-- -.. . .--. . .---- .... --.. --. .-.-. Geert Jan de Groot, Email: geertj@nlgvax.pcg.philips.nl Philips Research Laboratories, Packet: PE1HZG @ PI8ZAA Project Centre Geldrop, AMPRNET: [44.137.24.3] Building XR, Room 15, Willem Alexanderlaan 7B, "When in doubt, 5664 AN Geldrop, The Netherlands. tune for minimum smoke phone: +31 40 892204 and then consult a reference" [Standard disclaimers apply] -(Found in a manual)