Write only mód, itt az én megoldásom:
Nem a processek számát figyelem, hanem hogy ráér-e a cpu, de ez tökmindegy. Egy, a scriptben definiált függvényt hívok meg, és jónapot.
Viszont szerintem ez se oldja meg a gondodat.... bosszantó.
Igen, az ssh kavarja el, eheh, man ssh:
-n Redirects stdin from /dev/null (actually, prevents reading from stdin).
Ja, most látom, hogy erre már rájöttetek, bocs...