bash: start multiple chained commands in background

前端 未结 15 942
生来不讨喜
生来不讨喜 2020-12-07 22:47

I\'m trying to run some commands in paralel, in background, using bash. Here\'s what I\'m trying to do:

forloop {
  //this part is actually written in perl
          


        
15条回答
  •  再見小時候
    2020-12-07 23:28

    Run the command by using an at job:

    # date
    # jue sep 13 12:43:21 CEST 2012
    # at 12:45
    warning: commands will be executed using /bin/sh
    at> command1
    at> command2
    at> ...
    at> CTRL-d
    at> 
    job 20 at Thu Sep 13 12:45:00 2012
    

    The result will be sent to your account by mail.

提交回复
热议问题