Without the
>/dev/null 2>&1
part it’s not possible to run the tllp bot in the background.
Checking for logs in unix/logs is always possible to check the status, but less convenient than running each tllp bot in its own screen session.
At the risk of derailing this thread (please don’t read further unless you are interested in running tllp bots on a RaspberryPi
):
my current tllp bot operation model deals with 3 screen sessions and automatic output of the last lines of the current log files on demand.
One script starts the screen sessions that are named and where the path is set to start the tllp bot with simply executing “./client” (I haven’t found out how to execute commands within a screen session to automate starting the tllp bots):
cd ~/apps/liquidbits/unix/
screen -dmS liquidbits
cd ~/apps/nupool/unix/
screen -dmS nupool
cd ~/apps/nupondCNY/unix/
screen -dmS nupond
screen -dmS poolinfo
And this script - executed from within the “poolinfo” screen - gives a convenient overview of the status of the tllp bots:
#!/bin/bash
liquidbitsdir=~/apps/liquidbits/unix/logs/
liquidbitslog=`ls -t $liquidbitsdir | head -n 1`
nupooldir=~/apps/nupool/unix/logs/
nupoollog=`ls -t $nupoolclientdir | head -n 1`
nupondCNYdir=~/apps/nupondCNY/unix/logs/
nupondCNYlog=`ls -t $nupondCNYdir | head -n 1`
echo "#########################################################################################"
date
echo "### liquidbits ###"
echo $liquidbitsdir$liquidbitslog
tail -n 2 $liquidbitsdir$liquidbitslog && echo
echo "### nupool ###"
echo $nupooldir$nupoollog
tail -n 2 $nupooldir$nupoollog && echo
echo "### nupondCNY ###"
echo $nupondCNYdir$nupondCNYlog
tail -n 2 $nupondCNYdir$nupondCNYlog
Printing the current log file into the output of poolinfo makes it easy to dig deeper in the log files without first searching for the most recent one.
These two scripts with only a few lines make it very easy to run and check the tllp bots.
…just in case somebody is interested in it…