I have a simple Python script that receives username and password as arguments, but my password contains two exclamation marks. When I call my script like
salafek@dellboy:~/Desktop/$ emailsender.py -u username -p pass!!
a command that I entered earlier replaces the exclamation marks:
salafek@dellboy:~/Desktop/$emailsender.py -u username -p "passemailsender.py -u username -p passwget wget http://www.crobot.com.hr/templog"
I can escape exclamation marks with backslash (
), but my password changes.
Is there solution for this, how can I escape exclamation marks without changing my password?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…