Hi...
[1] test script
#!/bin/sh

[ ! -d /mnt/memtest ] && mkdir -p /mnt/memtest
while [ 1 ]; do
    /sbin/ifconfig irda0 down
    sleep 1
    /sbin/ifconfig irda0 up
    sleep 1
I roughly think it because the shell fork new subshell in every "while" iteration. What if you do it like this instead: while [ 1 ]; do (
...your commands..

; ) ;
done


That way, all commands will be executed under the same shell, not forking one continously.

regards,

Mulyadi


--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [EMAIL PROTECTED]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to