I am executing one shell script, which contains the following curl command.
FIRST=`curl -k -X POST -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'How-Many: 1' -d '{"filters": { "jobstreamFilter": { "jobStreamName":"'$JOBSTREAM_NAME'","workstationName": "'$WORKSTATION_NAME'"}}}' https://$IWA_HOST:31116/twsd/model/jobstream/header/query -H "Authorization: Basic $CREDS"`
When I execute the shell script from CLI it works fine, but when I call the script from the application, this curl command is not executed. The rest of all the echo statements in the script are printing except FIRST
.