I roughly think it because the shell fork new subshell in every "while" iteration. What if you do it like this instead:[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
; ) ; done
-- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ