1 2 3 4 5 6 7 8 9
#!/bin/bash ## The information you wants to get back ## eg: uname -a, uptime M1=`uname -nsr` M2=`uptime` M="$M1 $M2" echo $M