gonz0, on 11 August 2012 - 02:29 AM, said:
can you put the full command please ?
No problem. Please keep in mind, the command line I am giving you is full of variables for a script and control panel. If you need more details please let me know. I enjoy sharing and helping others.
Quake 3 with nohup and %
"q3ded" )
whoiam=(`whoami`)
home_location=(`cd && pwd`)
cd $home_location/$game_directory/$server_mod_directory
cp *console*.log `date +%m%d%Y`_console.log
cd $home_location/$game_directory
crontab /usr/bin/serverchk
rm -f nohup.out
chmod 755 $server_exec
chmod 755 $home_location/$game_directory/pb
killall vsftpd
ulimit -u 4
nohup ./$server_exec +set dedicated $server_dedicated +set ttycon 0 +set net_ip $server_ip +set net_port $server_port +set com_hunkmegs 256 +set sv_maxclients $server_sv_maxclients +set logfile $server_logfile +set fs_basepath $home_location/$game_directory +set fs_homepath $home_location/$game_directory +set sv_pure $server_sv_pure +set sv_punkbuster $server_sv_punkbuster +set fs_game $server_mod_directory +set $server_vm $misc +exec $server_config1 +exec $server_config2 +alias $whoiam & > /dev/null 2>&1
cd $home_location/murmur
chmod 755 murmur.x86
mv murmur.log murmur.log_backup
./murmur.x86 -supw $superuser_password
nohup ./murmur.x86 -ini $murmur_configuration_file -v & > /dev/null 2>&1
nohup /usr/bin/b3_run -c $home_location/$b3_xml_file_location > /dev/null 2>&1
;;
UrT 4.1 with nohup and &:
"ioUrTded.i386" )
whoiam=(`whoami`)
home_location=(`cd && pwd`)
cd $home_location/$game_directory/$server_mod_directory
cp *console*.log `date +%m%d%Y`_console.log
cd $home_location/$game_directory
crontab /usr/bin/serverchk
rm -f nohup.out
chmod 755 $server_exec
chmod 755 $home_location/$game_directory/pb
killall vsftpd
nohup ./$server_exec +set dedicated $server_dedicated +set ttycon 0 +set net_ip $server_ip +set net_port $server_port +set com_hunkmegs 256 +set sv_maxclients $server_sv_maxclients +set logfile $server_logfile +set fs_basepath $home_location/$game_directory +set fs_homepath $home_location/$game_directory +set sv_pure $server_sv_pure +set sv_punkbuster $server_sv_punkbuster +set fs_game $server_mod_directory +set $server_vm $misc +exec $server_config1 +exec $server_config2 +alias $whoiam & > /dev/null 2>&1
cd $home_location/murmur
chmod 755 murmur.x86
mv murmur.log murmur.log_backup
./murmur.x86 -supw $superuser_password
nohup ./murmur.x86 -ini $murmur_configuration_file -v & > /dev/null 2>&1
nohup /usr/bin/b3_run -c $home_location/$b3_xml_file_location > /dev/null 2>&1
;;
UrT 32 with screen:
"Quake3-UrT-Ded.i386" )
whoiam=(`whoami`)
home_location=(`cd && pwd`)
cd $home_location/$game_directory/$server_mod_directory
cp *console*.log `date +%m%d%Y`_console.log
cd $home_location/$game_directory
crontab /usr/bin/serverchk
rm -f nohup.out
chmod 755 $server_exec
chmod 755 $home_location/$game_directory/pb
killall vsftpd
screen -dmS $whoiam ./$server_exec +set dedicated $server_dedicated +set ttycon 0 +set net_ip $server_ip +set net_port $server_port +set com_hunkmegs 256 +set sv_maxclients $server_sv_maxclients +set logfile $server_logfile +set fs_basepath $home_location/$game_directory +set fs_homepath $home_location/$game_directory +set sv_pure $server_sv_pure +set sv_punkbuster $server_sv_punkbuster +set fs_game $server_mod_directory +set $server_vm $misc +exec $server_config1 +exec $server_config2 +alias $whoiam & > /dev/null 2>&1
cd $home_location/murmur
chmod 755 murmur.x86
mv murmur.log murmur.log_backup
./murmur.x86 -supw $superuser_password
nohup ./murmur.x86 -ini $murmur_configuration_file -v & > /dev/null 2>&1
nohup /usr/bin/b3_run -c $home_location/$b3_xml_file_location > /dev/null 2>&1
UrT 64 with screen:
;;
"Quake3-UrT-Ded.x86_64" )
whoiam=(`whoami`)
home_location=(`cd && pwd`)
cd $home_location/$game_directory/$server_mod_directory
cp *console*.log `date +%m%d%Y`_console.log
cd $home_location/$game_directory
crontab /usr/bin/serverchk
rm -f nohup.out
chmod 755 $server_exec
chmod 755 $home_location/$game_directory/pb
killall vsftpd
screen -dmS $whoiam ./$server_exec +set dedicated $server_dedicated +set ttycon 0 +set net_ip $server_ip +set net_port $server_port +set com_hunkmegs 256 +set sv_maxclients $server_sv_maxclients +set logfile $server_logfile +set fs_basepath $home_location/$game_directory +set fs_homepath $home_location/$game_directory +set sv_pure $server_sv_pure +set sv_punkbuster $server_sv_punkbuster +set fs_game $server_mod_directory +set $server_vm $misc +exec $server_config1 +exec $server_config2 +alias $whoiam & > /dev/null 2>&1
cd $home_location/murmur
chmod 755 murmur.x86
mv murmur.log murmur.log_backup
./murmur.x86 -supw $superuser_password
nohup ./murmur.x86 -ini $murmur_configuration_file -v & > /dev/null 2>&1
nohup /usr/bin/b3_run -c $home_location/$b3_xml_file_location > /dev/null 2>&1
;;
This post has been edited by escapedturkey: 11 August 2012 - 05:00 PM