📄 start
字号:
#!/bin/cshif ("$#argv" == "0") then set host = "localhost" set teamname = "ATTCMUnited2000"else if ("$#argv" == "1" ) then set host = $1 set teamname = "ATTCMUnited2000"else if ("$#argv" == "2" ) then set host = $1 set teamname = $2else echo "Usage: $0 <host-name> <team-name>" exit -1endif#set simulator_step = 30set programname = "./peterclient"set coachprogramname = "./coach"echo "Running with the following parameters"echo "Hostname: " $hostecho "Team: " $teamnameecho "Program: " $programnameecho "CoachProgram: " $coachprogramname#echo "Sim_step: " $simulator_step#Start the players. Note that the first is the goalie$programname -file client.conf -file server.conf -file share.conf -host $host -team_name $teamname -goalie &sleep 1$programname -file client.conf -file server.conf -file share.conf -host $host -team_name $teamname &./quicksleep$programname -file client.conf -file server.conf -file share.conf -host $host -team_name $teamname &./quicksleep$programname -file client.conf -file server.conf -file share.conf -host $host -team_name $teamname &./quicksleep$programname -file client.conf -file server.conf -file share.conf -host $host -team_name $teamname &./quicksleep$programname -file client.conf -file server.conf -file share.conf -host $host -team_name $teamname &./quicksleep$programname -file client.conf -file server.conf -file share.conf -host $host -team_name $teamname &./quicksleep$programname -file client.conf -file server.conf -file share.conf -host $host -team_name $teamname &./quicksleep$programname -file client.conf -file server.conf -file share.conf -host $host -team_name $teamname &./quicksleep$programname -file client.conf -file server.conf -file share.conf -host $host -team_name $teamname &./quicksleep$programname -file client.conf -file server.conf -file share.conf -host $host -team_name $teamname &sleep 3#Start the coach$coachprogramname -file coach.conf -file server.conf -file share.conf -host $host -team_name $teamname &#waitforq#if ( -e /usr/ucb/ps ) then # kill `/usr/ucb/ps ax | grep $programname | grep -v grep | awk '{print $1}'`#else#kill -9 `ps ax | grep $programname | grep -v grep | awk '{print $1}'`#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -