On Fri, 2006-04-07 at 12:08 +0100, Dan Track wrote: > Hi > > Simple question, I'm running a command `command`, what I'd like to do > is check to see if the response is empty then exit. Does anyone know > how I can perform that check? check this empty script: [rodolfoap] /home/rodolfoap > cat command #!/bin/bash [rodolfoap] /home/rodolfoap > if [ "$(./command)" == "" ]; \ then echo NOTHING; else echo SOMETHING; fi NOTHING Now we add some text to output: [rodolfoap] /home/rodolfoap > echo echo hello>>command [rodolfoap] /home/rodolfoap > if [ "$(./command)" == "" ]; \ then echo NOTHING; else echo SOMETHING; fi SOMETHING [rodolfoap] /home/rodolfoap > Good luck! -- Rodolfo Alcazar - rodolfo.alcazar@xxxxxxxxxxxx Netzmanager Padep, GTZ 591-70656800, -22417628, LA PAZ, BOLIVIA http://otbits.blogspot.com -- New systems generate new problems.