[LINUX]shell script for launch boinc

Message boards : Number crunching : [LINUX]shell script for launch boinc
Message board moderation

To post messages, you must log in.

AuthorMessage
Jorge Barros de Abreu

Send message
Joined: 22 Oct 00
Posts: 1
Credit: 30,353
RAC: 0
Brazil
Message 92443 - Posted: 29 Mar 2005, 16:44:42 UTC

#GPL Script for launch boinc client.
#You need configure DIR_BOINC and BIN_BOINC variables.
#The configuration example below show the boinc binary file
#"boinc_4.19_i686-pc-linux-gnu" under directory "/home/hubble/sky/boinc"
#this script is only for one process boinc running
#save this script on a file, "chmod +x file" and run with "./file" or
#"sh file".
#powered by Jorge Barros de Abreu
#e-mail: ficmatinfmag@_alternex_com_br
DIR_BOINC="/home/hubble/sky/boinc"
BIN_BOINC="boinc_4.19_i686-pc-linux-gnu"
RESPOSTA=""
liberar_memo() {
unset DIR_BOINC
unset BIN_BOINC
exit 0
}
if [ $# = 0 ] ; then
echo -e "\t 0 - ./$BIN_BOINC "
echo -e "\t 1 - ./$BIN_BOINC -version"
echo -e "\t 2 - ./$BIN_BOINC -show_projects"
echo -e "\t 3 - ./$BIN_BOINC -return_results_immediately"
echo -e "\t 4 - ./$BIN_BOINC -attach_project"
echo -e "\t 5 - ./$BIN_BOINC -run_cpu_benchmarks"
echo -e "\t 6 - ./$BIN_BOINC -check_all_logins"
echo -e "\t 7 - ./$BIN_BOINC -allow_remote_gui_rpc"
echo -e "\t 8 - URL needed - ./$BIN_BOINC -detach_project URL"
echo -e "\t 9 - URL needed - ./$BIN_BOINC -reset_project URL"
echo -e "\t a - URL needed - ./$BIN_BOINC -update_project URL"
echo -e "\t if 8, 9 or a : "
echo -e "\t\t $0 8 URL"
echo -e "\t\t $0 9 URL"
echo -e "\t\t $0 a URL"

fi
if [ $# = 1 ] || [ "$RESPOSTA" != "" ]; then
cd $DIR_BOINC
if [ "$RESPOSTA" = "0" ] || [ "$1" = "0" ] ; then
./$BIN_BOINC
fi
if [ "$RESPOSTA" = "1" ] || [ "$1" = "1" ] ; then
./$BIN_BOINC -version
fi
if [ "$RESPOSTA" = "2" ] || [ "$1" = "2" ] ; then
./$BIN_BOINC -show_project
fi
if [ "$RESPOSTA" = "3" ] || [ "$1" = "3" ] ; then
./$BIN_BOINC -return_results_immediately
fi
if [ "$RESPOSTA" = "4" ] || [ "$1" = "4" ] ; then
./$BIN_BOINC -attach_projec
fi
if [ "$RESPOSTA" = "5" ] || [ "$1" = "5" ] ; then
./$BIN_BOINC -run_cpu_benchmarks
fi
if [ "$RESPOSTA" = "6" ] || [ "$1" = "6" ] ; then
./$BIN_BOINC -check_all_logins
fi
if [ "$RESPOSTA" = "7" ] || [ "$1" = "7" ] ; then
./$BIN_BOINC -allow_remote_gui_rpc
fi
fi
if [ $# = 2 ] ; then
cd $DIR_BOINC ;
if [ "$1" = "8" ] ; then
./$BIN_BOINC -detach_project $2
fi
if [ "$1" = "9" ] ; then
./$BIN_BOINC -reset_project $2
fi
if [ "$1" = "a" ] ; then
./$BIN_BOINC -update_prefs $2
fi
fi
liberar_memo
ID: 92443 · Report as offensive

Message boards : Number crunching : [LINUX]shell script for launch boinc


 
©2024 University of California
 
SETI@home and Astropulse are funded by grants from the National Science Foundation, NASA, and donations from SETI@home volunteers. AstroPulse is funded in part by the NSF through grant AST-0307956.