10 lines
100 B
Bash
10 lines
100 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
trap "kill 0" EXIT
|
||
|
|
||
|
while [ -e /etc/passwd ]; do
|
||
|
$* &
|
||
|
LAST_PID=$!
|
||
|
wait $LAST_PID
|
||
|
done
|