Hi. What is the right way to have an iPython script check to see if the user is currently root?
Here's how I do it in bash scripts:
########################## CHECK USERNAME PRIVILEGE
################################
if [ $(id -u) != "0" ];then
echo "This script must be run as root."
exit 1
fi
_______________________________________________ Tutor maillist - [email protected] To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
