I was running curl in my linux terminal:
curl -u ‘user’:’$3cur!’ -T udhaya.war ‘http://xx.xx.xx.xxx/manager/text/deploy?path=/udhaya
I get the following error:
bash: !’: event not found
I was running curl in my linux terminal:
curl -u ‘user’:’$3cur!’ -T udhaya.war ‘http://xx.xx.xx.xxx/manager/text/deploy?path=/udhaya
I get the following error:
bash: !’: event not found
issue is with the "!" mark in your ‘user’:’$3cur!’.
See following example :
[root@mymachine~]# echo "!"
-bash: !: event not found
We need to turnoff history expansion to avoid it using 'set +H' before running your curl command as shown below:
[root@mymachine ~]# set +H
[root@mymachine ~]# echo "!"
!