I tried running the following command

/public/home/WHC_BBT/Softwares/bin/bin/denovo_map.pl --samples $RawData -O $Popmap -o $fullM2n3 -M 2 -n 3 -m 3 -T 15 &> $logfile

This is the error I got

/opt/gridview//pbs/dispatcher/mom_priv/jobs/14923.admin.SC: line 6: $logfile: ambiguous redirect

I need help on how to resolve this.



2 Answers 2


This most likely means your variable $logfile does not exist.


At a guess, the variable $logfile is not properly defined (i.e. it hasn't been defined at all). What is the output of the following command:

echo "logfile: ${logfile}"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.