KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm using this script to backup an old private instance of postgresql to gmail periodically: #!/bin/bash /opt/local/lib/postgresql83/bin/pg_dump maxgests -U postgres | gzip --best -c > $1 && (/opt/local/bin/mutt -s `date "+%d-%m-%Y-%H:%M"` -a $1 $2 < /dev/null) As of late I'm getting this: ./postgres_to_gmail.sh: line 2: $1: ambiguous redirect And the script no longer works. Mac OS X 10.6.8. Can anytone tell what's wrong and how to fix it? First argument is a path, like /tmp/database.gz Second argument is the email.
Tags (comma-separated)
Save Edits
Cancel