Command-line script to post a file