Possible Duplicate:
bash store output as a variable
I have a script that outputs a simple integer like "10", then i have a second script where i want to call this script and grab the integer as a variable.
#!/bin/bash
KBPS= ## NEED OUTPUT FROM /USR/LOCAL/BIN/ETH0TX.SH
THRESHOLD=50 #KBPS
if [ $KBPS -gt $THRESHOLD ]; then
exit 1
fi
Is that possible?