TCH (statz) | #1, Főfasz (10443) |
367 | #46e5 | ^ | Idézet | Tue, 14 Nov 2017 21:26:05 +01 |
94.21.*.* | *.pool.digikabel.hu |
Ha azt akarjátok, hogy egy script a háttérben várakozzon, amíg egy bizonyos programot el nem indítotok, akkor#!/bin/sh while true; do RESULT=$(pgrep program-to-watch) if [ "${RESULT:-null}" != null ]; then #do some stuff exit fi sleep 1 doneés futtatni így kell nohup waiting-script 0<&- &>/dev/null & |