Process status in echo

10/10/2014 21:38 ~> Thalion ッ <~#1
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:

[Only registered and activated users can see links. Click Here To Register...]
10/10/2014 21:57 Reav0r#2
What do you mean by status? Do you want to see if the process is running and how much ram it's using or what kind of information do you want to know?
I don't have any teamspeak servers running, so I'm not sure what kind of information you need.
10/10/2014 22:02 ~> Thalion ッ <~#3
i'll use this on an better way:

Code:
ts2s()
{
/x/ts2 status
}

ts3s()
{
/x/ts3 status
}

cvs()
{
echo "Status of Teamspeak 2 Server: $(ts2s)"
echo "Status of Teamspeak 3 Server: $(ts3s)"
}
[Only registered and activated users can see links. Click Here To Register...]

without an extra function for ts2s and ts3s