executing shell command in background from script

前端 未结 4 474
误落风尘
误落风尘 2020-11-27 17:40

how can I execute a shell command in the background from within a bash script, if the command is in a string?

For example:

#!/bin/bash
cmd=\"nohup my         


        
4条回答
  •  有刺的猬
    2020-11-27 18:28

    For example you have a start program named run.sh to start it working at background do the following command line. ./run.sh &>/dev/null &

提交回复
热议问题