I have a sed cmd that works fine on the cmd line, but when I move it to a file in my ../cgi-bin directory it errors saying that I'm missing an operand

Code:
/bin/sed 's/Arial/Courier/' /home/<acct>/public_html/cgi-bin/infile > /home/<acct>/public_html/cgi-bin/outfile