You are not logged in.
Pages: 1
Topic closed
got another question about tty specifically how to get the tty's to automaticly start a program for example tty1 normal but tty2 htop and tty3 asciiquarium or something
Offline
Recheck the link from your other thread, there's a reference to automatically starting X11…
Also please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.
Offline
The way I generally do it is to start a tmux session in my .bashrc, and then have a .tmux.conf that looks something like:
new-session -A -s main -n main ;
new-window "cd ~/fountain && ./main.py -qv -H fountain.lan"For reference: that starts a small web server on a raspberry-pi zero-W that has the sole purpose of controlling the lights and pump on an ornamental fountain in my yard.
This way, I can connect to the console, and if need be, detach from it or create a new window to do something else without having to stop the program that is running.
This is not the easiest way, or the most obvious way. But, it is how I do it.
The other thing you can do is to put checks into your ~.bashrc and or $/.profile to check which console on which the script is running and take action acordingly.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
Don't cross-post.
You already have an open topic about this issue which is easily answered by just reading the wiki.
Closing.
Offline
Pages: 1
Topic closed