Edit History Actions Discussion

Diff for "Howto/Autostart"

Differences between revisions 1 and 2
Revision 1 as of 2007-07-16 15:22:09
Size: 1065
Comment:
Revision 2 as of 2007-11-04 05:24:13
Size: 1063
Editor: adsl-68-23-164-120
Comment: minor grammar edit s/doesn't/don't
Deletions are marked like this. Additions are marked like this.
Line 13: Line 13:
Do not start any programs that doesn't finish right away. For example, you can't start irssi directly, since this will keep running until you give the exit command. You can also not run a screen without the "-d -m" flags (start detached). If you are in doubt, ask independence before you do anything. Do not start any programs that don't finish right away. For example, you can't start irssi directly, since this will keep running until you give the exit command. You can also not run a screen without the "-d -m" flags (start detached). If you are in doubt, ask independence before you do anything.

Autostart

Blinkenshell now offers a way for you to autostart programs when the system boots. You can use this to start your screen with irssi as soon as the system boots, so you won't miss any conversations on IRC after a reboot for example.

It's very easy to use, you create a file named .autostart in your home directory and make it executable. This file will then be executed with your user privileges when the system boots. Any output (stdout and stderr) from the script is redirected to ~/.autostart.out

Here is an example that starts a screen (in detached mode) and runs irssi in it:

screen -S auto -d -m irssi

Remember to give the script executable permission: chmod u+x ~/.autostart

Do not start any programs that don't finish right away. For example, you can't start irssi directly, since this will keep running until you give the exit command. You can also not run a screen without the "-d -m" flags (start detached). If you are in doubt, ask independence before you do anything.


CategoryHowto