Please consider this test script:

---
#!/bin/bash

n=5

cmd="top -b -d 1 -n $n"
(date +%T;echo "$cmd";$cmd >/dev/null; date +%T) &
wait

echo

cmd="./busybox top -b -d 1 -n $n"
(date +%T;echo "$cmd";$cmd >/dev/null; date +%T) &
wait
---

Produces following results:

13:37:31
top -b -d 1 -n 5
13:37:35

13:37:35
./busybox top -b -d 1 -n 5
13:37:35

The time stamps clearly indicate bb-top runs just once and exits,
instead of 5 times with 1s interval.


Cheers,

-- 
Cristian
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to