[email protected] (David Diggles), 2012.06.15 (Fri) 00:20 (CEST): > I want the default login console to run something like > /usr/games/worms -n100 > or > rsh host /opt/local/bin/xaos -driver aa -autopilot
the way I do it... $ grep ttyC0 /etc/ttys ttyC0 "/usr/local/libexec/getty.sh" vt220 on $ ls -al /usr/local/libexec/getty.sh -rwxr-xr-x 1 root wheel 210 Feb 15 19:01 /usr/local/libexec/getty.sh $ cat /usr/local/libexec/getty.sh #!/bin/ksh -e TERM=vt220 /usr/local/sbin/dostuff.sh < /dev/$1 > /dev/$1 $ ls -la /usr/local/sbin/dostuff.sh -rwxr-xr-x 1 root wheel - 2.2K Feb 18 11:28 /usr/local/sbin/dostuff.sh dostuff.sh has stdin/stdout connected to console, now. Bye, Marcus (nice project, btw!) > !DSPAM:4fda64d4121516375431200!

