Can we run shell scripts using Postman or Newman?

I have a requirement where I need to first run API request using Postman and once request is successful, I need to run couple of shell scripts.

I can run the scripts manually but ideally I want postman/newman to automatically run the shell script once API request is successful.

Any help on this would be really appreciated.

@Swaroop_Varma

Can you create a shell script that will run the POSTMAN collection using β€œnewman run” and then incorporate your other shell script logic into this script ?

Hi @dhoyt, thanks for the suggestion.

I will try it tomorrow and I will let you know.