LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Automate Multi Console Logins On Slackware Server (https://www.linuxquestions.org/questions/slackware-14/automate-multi-console-logins-on-slackware-server-4175656511/)

Marcel Louw 06-27-2019 04:19 PM

Automate Multi Console Logins On Slackware Server
 
Hi, I want to automate this on startup and display each programs output on a different console on my Slackware Server.
Console nr1

alt f1
login as: root
password: LoveLinux
#cd /xmrig-nvidia
#./xmrig-nvidia -c config.json

Console nr2
alt f2
login as: root
password: LoveLinux
#cd /xmrig-cpu
#./xmrig -c config.json


Console nr3 ........

Each program occupy the current display with scrolling text containing hash rate and other program output.

1. I have tried starting and running programs in daemon mode with /etc/rc.d/rc.local On Slackware Xmrig-nvidia does not release the console and server stop running files from rc.local

2. I have tried to start each program with nohup with severe performance decrease in hash rate.

#nohup /xmr-cpu/xmrig -c /xmr-cpu/config.json.lethean > /dev/null 2>&1 & disown
#nohup /xmr-nv/xmrig-nvidia -c /xmr-nv/config.json.lethean > /dev/null 2>&1 & disown

3. Current solution login into each server and start an ssh session for each program. Did I mention ...there are 55 servers :)

It would also be nice if I knew how to make it switch between server consoles every 5 min.

Anyone?

Richard Cranium 07-01-2019 02:00 PM

I would look into tmux.

Marcel Louw 07-01-2019 03:28 PM

Hi, it is more or less the same as nohup. I would like to run one service on the local console 1 and another on console 2. The gpu driver does not like to not be in control of the screen. Longtime problem.... I will try tmux and xmrig-nvidia with cuda10.

Labinnah 07-02-2019 08:05 AM

I'm not sure this will working. Did you try to put this commands to /etc/inittab?


All times are GMT -5. The time now is 03:48 AM.