Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2009-09

Command prompt

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

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

Reply by email

Luca Olivetti
to Carsten Bager

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

Reply by email