I have a script which runs another script.myscript.sh#!/bin/bash....cd /folder/sh run.shsh another_script...the procedure:So , I start running myscript.sh , the script runs it's commands.Then, it gets to run.sh script ,which eventually ( the run.sh ) starts to serve on port 8080.At this time , I just want to stop it ( the run.sh ).And continue with the rest of the myscript.sh.
cancel script execution and continue
bash;shell script;scripting
It depends on what sh run.sh is for.  Two likely possibilities, either:run.sh starts a server that needs to keep running, (and let's say this server needs a little time to get going), try:sh run.sh &  sleep 15sOr:run.sh does a few things with I/O, tweaks a file or two, starts a server to do some work, and needs a little time to do the work, but just doesn't know when to quit, try:timeout 15s sh run.sh