Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

curl command runs on terminal but doesnt run on.sh script

Manish Amatya August 19, 2020

when i run following command on terminal it works and post value the the issue but when i run the same command from .sh script file it doesnt work and gives out error 

curl --insecure -u "username":$cat(password.txt) -X PUT --data '{"fields" : {"customfield_10301" : "value"} }' -H "Content:application/json" https://url/rest/api/2/issue/(issueid)

 

it give following error

 

cat password.txt command not found

curl --insecure -u "username":$cat(password.txt) -X PUT --data '{"fields" : {"customfield_10301" : "value"} }' -H "Content:application/json" https://url/rest/api/2/issue/(issueid : No such file or directory

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, mindful member, mindful member badge, atlassian community, community kudos, community giveaway, atlassian swag, community values, empathy and kindness, badge challenge, atlassian learning, community engagement, swag giveaway

Earn a Badge, Win a Prize 🎁

Earning the Mindful Member badge proves you know how to lead with kindness, plus it enters you into a giveaway for exclusive Atlassian swag. Take the quiz, grab the badge, and comment on our announcement article to spread the good vibes!

Start here
AUG Leaders

Atlassian Community Events