I have followed the sample script for using Control Hub REST APIs below. However, I receive this error message
cat: cookie.txt: No such file or directory
{"message":"Authentication succeeded"} Generated session token :
curl -X POST -d '{"userName":"xxx", "password": "xxx"}' https://cloud.streamsets.com/security/public-rest/v1/authentication/login --header "Content-Type:application/json" --header "X-Requested-By:SCH" -c cookie.txt
sessionToken=$(cat cookie.txt | grep SSO | rev | grep -o '^\S*' | rev)
echo "Generated session token : $sessionToken"
echo "Generated session token : $sessionToken"
Can someone help ? What should I do