I'm trying to use the output from gdialog's input box in another command with no success.

Code:
var=`gdialog --inputbox something 50 50`
Any suggestions?