console reattatch

wokka wokka at justfamily.org
Fri Jul 19 15:19:54 EDT 2002


screen is a unix app that is on one of the first 2 cd's for redhat, or was 
back in the 7.1 days when i last used it... or you can dl and compile it 

wokka 

The Caretaker writes: 

> Two questions: First, is screen -d and screen -r switches for detach and
> remote? Also, I am trying to execute this from my command prompt but screen
> is not a valid command. Does this need to be done once the game is running,
> or do need a specific module for this? Or is it just set as a script? Sorry
> for all of the questions, I have been looking for something like this to
> start (or restart) the server via SSH. I am running Red Hat 7.3 kernel v.
> 2.4.18-5. Thanks for the help. 
> 
> [^DD^]Hellboy
> www.devil-dogs.net 
> 
> ----- Original Message -----
> From: "Ryan C. Gordon" <icculus at clutteredmind.org>
> To: <mohaa at icculus.org>
> Sent: Friday, July 19, 2002 12:31 PM
> Subject: Re: [mohaa] console reattatch 
> 
> 
>>
>> > as i will soon be running this remotely and cannot stay connected to the
> ssh
>> > console 24/7, i will be making it run in the background &, so when i
> leave
>> > the cosole.. and return to the server.. is there any way to.. reattach
> to
>> > it as if u just ran the exec? 
>>
>> Use "screen". 
>>
>> On the Cyberspace Matrix, I use this (this works in the system boot
>> scripts, or at the regular command line): 
>>
>> screen -d -m su mohaa -c "/usr/local/MOHAA/mohaa_csm_2/mohaa_lnxded
>> +set fs_userdir /home/mohaa/.mohaa2 +set fs_outputdir /home/mohaa/.mohaa2
>> +exec server.cfg" 
>>
>> Do that all on one line. Modify as necessary, wrap in a restarting script,
>> etc... 
>>
>> Then: 
>>
>> screen -r 
>>
>> And you'll be looking at your server output...you can then type commands,
>> etc. When you are done staring, hit CTRL-A followed by 'd' to detach the
>> screen. Log off...server will keep running. 
>>
>> Next time you log in, do "screen -r" again to reattach. 
>>
>> When you are done, quit the server and everything should clean up. 
>>
>> > also will there be a chk file for use with cron? 
>>
>> As in, "make sure the server continues to run?" 
>>
>> Just wrap the thing in a shell script that restarts it if/when it dies. Am
>> I misunderstanding you? 
>>
>> --ryan. 
>>
>> 
>>
>>
> 
 



More information about the Mohaa mailing list