Hello, i'll write some scripts for the administration of my server. so now i need help with one function. how i can output the status of a process/deamon in an echo command? Like: The Teamspeak2 Server: $STATUSOUTPUT
here is the code i've tried but it don't work...
Code:
cvs()
{
ts2s='/x/ts2 status'
ts3s='/x/ts3 status'
echo
echo "Status of Teamspeak 2 Server: $ts2s"
echo
echo "Status of Teamspeak 3 Server: $ts3s"
echo
}
at the moment this is the output of the function: