Thanks Marcus! I have been sidetracked with a few things,
but will give this technique a try soon.
I take it dostuff.sh is where I could put something like
#!/bin/sh
while [ ! ]; do
/usr/local/bin/ttyplay kickassci.demo
done
?
On Fri, Jun 15, 2012 at 09:36:43AM +0200, MERIGHI Marcus wrote:
> [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!