ubuntu - Escaping in wget bash command -


wget -q -t 60 --retry-connrefused -t 5 --waitretry=60 --user=ftp2.company.com|company2013 --password=!company2013 -n -p data/parser/company/ ftp://ftp2.company.com/production/somedata.zip

i'm having trouble command, because password contains exclamation mark. tried escaping \, tried single quotes, , either gives output:

wget: missing url

or

bash: !company2013: event not found

this demotivating...

perhaps part needs quoted prevent being seen pipe command.

--user='ftp2.company.com|company2013' 

and 1 prevent history expansion !:

--password='!company2013' 

final:

wget -q -t 60 --retry-connrefused -t 5 --waitretry=60 --user='ftp2.company.com|company2013' --password='!company2013' -n -p data/parser/company/ ftp://ftp2.company.com/production/somedata.zip 

and it's idea quote other parts if on later time have spaces:

wget -q -t 60 --retry-connrefused -t 5 --waitretry=60 --user='ftp2.company.com|company2013' --password='!company2013' -n -p "data/parser/company/" "ftp://ftp2.company.com/production/somedata.zip" 

Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -