close() dans bash (ou anysh)

Jeremy Monnet jmonnet at gmail.com
Thu Feb 23 15:53:07 CET 2006


On 2/23/06, Jeremy Monnet <jmonnet at gmail.com> wrote:
Bon, une fois nettoyé, ca donne ca :

#!/bin/bash
if test -z $PID
then
        export PID=$$
        cp $0 /tmp
        cd /tmp
        ./${0##*/} &
else
        sleep 2
        umount /root/test_fork_script/mnt/
fi

Jeremy
--
Linux Registered User #317862
Linux From Scratch Registered User #16571
Please do not send me .doc, .xls, .ppt, as I will *NOT* read them.



More information about the Shell mailing list