That's a good suggestion. You can also try looking at "screen" and
"nohup". All of these approaches have different pros and cons.
--
Andrew McNabb
http://www.mcnabbs.org/andrew/
PGP Fingerprint: 8A17 B57C 6879 1863 DE55 8012 AB4D 6098 8826 6868
function thread {
if [ ! -d dest ]; then
echo -n "cloning repository... "
git clone (very large repo) dest
echo "done."
exit 0
else
echo "repo exists"
exit 1
fi
}
thread &
echo "Thread is running..."
disown -a
exit 0
EOF
And the process will be left running when you close the session.
Regards.
--
Félix Ortega Hortigüela