title: set file permissions on bash output
body: <p>I have script to backup a mysql database. However I would like to set the file permissions to 755. I have done this in the script but it outputs a message. The part of the script is below</p>
  
  <pre><code>FILE="$BACKUPDIR/$NOW-$db.gz";
              echo "BACKING UP $db";
              $MYSQLDUMP --add-drop-database --opt --lock-all-tables --set-gtid-purged=OFF -u $MUSER -p$MPASS -h $MHOST -P $MPORT $db | gzip &gt; $FILE
  
  # change permissions on file
  chmod 755 $FILE
  </code></pre>
  
  <p>The message I get is;
  <code>chmod: missing operand after ‘755’</code></p>
  
  <p>Any ideas?</p>