====== Script with autostart function and output to defined console.====== There is instruction, how to do script output to console 2,3, or another, and autostart them on computer switch on. In that case we cannot put script start in /etc/rc.d/rc.local file, as always, because in that stage agetty, and consoles not activated, and therefore, script at that stage cannot do output to non-existing at that time, console, therefore, we put it in crontab with special preffix: '' **crontab -e** '' and in crontab, we write: ''**@reboot /path/to/yourscript.scr** '' script itself have construction like that: ''**#!/bin/sh tail -f /data/recv.log > /dev/tty2** '' where __/dev/tty2__ is __console 2__, /dev/tty3 is console 3, and so on. ====== Sources ====== * Originally written by [[wiki:user:wisedraco| wisedraco]] --- //[[wiki:user:wisedraco|John Ciemgals]] 2013/10/01 22:29// {{tag>howtos script console output autostart cron startup}}