/etc/inittab
Code: Select all
#6:23:respawn:/sbin/getty 38400 tty6
6:23:respawn:/root/stream_data_to_tty6.sh 38400 tty6
Code: Select all
#!/bin/bash
cat /home/electrolux/bin/msfifo > /dev/tty6
Code: Select all
cat /mnt/msrd/playing.txt > ~/bin/msfifo
I guess this is risky 'cause of handling data off the internet as root, but it does work! Is there another neat hack to do this, or a better program?
I guess I could use tail -f on playing.txt with this arrangement, too. No idea if it'd be better in any ways.
Cheers, 'lux
PS If this isn't just nuts, how can the machine switch to tty6 at boot?