#!/bin/bash if [[ $1 == "--non-background" ]] then yourCommand sleep 120 ./start.sh exit else screen -AmdS soulbot ./start.sh --non-background fi