Artificial intelligent assistant

How can I call other shell script like a subroutine? How do I call an other shell script and wait for its completion? I want to pass input arguments and receive returning result code. And continue running rest of codes.

You don't say which shell you're using, so assuming bash, you just do


#!/bin/bash

/path/to/other/script arg1 arg2
rc=$?


The variable rc now contains the return code from your other script. Depending on what you're trying to achieve, you might try and do more stuff, but your question is so vague, that's the best starting point.

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy a41fe2a5270f5e405755271696e67c11