The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.