Score:0

Asynchronous jobs in Shell Script

tr flag

In most languages like Python, Java, Swift we can run functions/methods asynchronously and based on the outcome be it success/failure, we can implement and run different call backs.

How can we accomplish similar things in bash/shell scripting.

Let's say, I have to make a REST API call via curl / or delete the files and only then proceed to the next step. How can I achieve this.

sv flag
From https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html#Exit-Status ... // All of the Bash builtins return an exit status of zero if they succeed and a non-zero status on failure, so they may be used by the conditional and list constructs. //
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.