Allow MakeDist to use a specified sf.net account
[rox-lib.git] / python / rox / suchild.sh
blobd03b3a30d22472b319cfef822857d33cc961a28e
1 #!/bin/sh
2 message="$1"
3 roxlib_dir=`dirname "$0"`; export roxlib_dir
4 roxlib_python="$2"; export roxlib_python
5 roxlib_to_parent="$3"; export roxlib_to_parent
6 roxlib_from_parent="$4"; export roxlib_from_parent
7 echo "$message"
8 echo
9 echo "Enter the root password:"
10 while true; do
11 su -c 'nohup "$roxlib_python" "$roxlib_dir/suchild.py" $roxlib_to_parent $roxlib_from_parent >/dev/null &' && break
12 done
13 sleep 1