/|\

Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
howtos:misc:script_autostart_output_to_console_x [2013/10/02 05:39 (UTC)]
wisedraco created
howtos:misc:script_autostart_output_to_console_x [2015/09/12 02:51 (UTC)] (current)
didierspaier Merge lines for easier conversion to other format, no visual change.
Line 1: Line 1:
 <!-- Add your text below. We strongly advise to start with a Headline (see button bar above). --> <!-- Add your text below. We strongly advise to start with a Headline (see button bar above). -->
-====== Your Headline Here ====== +====== Script with autostart function and output to defined console.======
-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. 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: 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:
  
-<key>crontab -e</key>+'' **crontab -e** ''
  
 and in crontab, we write:  and in crontab, we write: 
-''@reboot /path/to/yourscript.scr  ''+ 
 +''**@reboot /path/to/yourscript.scr**  ''
  
 script itself have construction like that: script itself have construction like that:
  
-'' +''**#!/bin/sh tail -f /data/recv.log > /dev/tty2** ''
-#!/bin/sh +
-tail -f /data/recv.log > /dev/tty2 ''+
  
-where /dev/tty2 is console 2, /dev/tty3 is console 3, and so on.+where __/dev/tty2__ is __console 2__, /dev/tty3 is console 3, and so on.
  
  
Line 27: Line 26:
 <!-- * Originally written by [[wiki:user:xxx | User X]] --> <!-- * Originally written by [[wiki:user:xxx | User X]] -->
 <!-- * Contributions by [[wiki:user:yyy | User Y]] --> <!-- * Contributions by [[wiki:user:yyy | User Y]] -->
-* Originally written by [[wiki:user:wisedraco| User X]]+* Originally written by [[wiki:user:wisedraco| wisedraco]]
  --- //[[wiki:user:wisedraco|John Ciemgals]] 2013/10/01 22:29//  --- //[[wiki:user:wisedraco|John Ciemgals]] 2013/10/01 22:29//
 <!-- Please do not modify anything below, except adding new tags.--> <!-- Please do not modify anything below, except adding new tags.-->
 <!-- You must remove the tag-word "template" below before saving your new page --> <!-- You must remove the tag-word "template" below before saving your new page -->
-{{tag>howtos template}}+{{tag>howtos script console output autostart cron startup}}

In Other Languages
QR Code
QR Code howtos:misc:script_autostart_output_to_console_x (generated for current page)