別画面で一連の機能を実行する

別画面で一連の機能を実行する

スタンドアロン画面でスクリプトの他の場所で定義された複数の関数を呼び出すことはできますか?たとえば、

#!/bin/bash

Method1() { ... }
Method2() { ... }
Method3() { ... }
Method4() { ... }

cd "$DST_DIR"

screen -dm -S "$(date +%s)_PROCESS" -L {
  Method1
  Method2
  Method3
  Method4
}

ベストアンサー1

おすすめ記事