Command prompt

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Command prompt

Carsten Bager
In the old days you could write
exec(C:\DOS\COMMAND.COM',' COM1');
and then get access to the command prompt via a serial interface
Could someone give me a hint how to do this in a Linux environment?

Carsten

_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

Re: Command prompt

Luca Olivetti-2
En/na Carsten Bager ha escrit:
> In the old days you could write
> exec(C:\DOS\COMMAND.COM',' COM1');
> and then get access to the command prompt via a serial interface
> Could someone give me a hint how to do this in a Linux environment?

/sbin/getty -L ttyS0 115200 vt100


man getty for the gory details, if you want a console permanently on the
first serial port, you can put the following in /etc/inittab (again, man
inittab for details)

1:2345:respawn:/sbin/getty -L ttyS0 115200 vt100

Bye
--
Luca
_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal