Results 1 to 10 of 24

Thread: [CoD2/CoD4] Server auto-restart

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    You can't go "into" the screen, you just can append commands to it via screen -x hjsd -p 0 -X stuff "echo hi\n"

    Just put this into a hjsd.sh:

    Code:
    cd /home/olger/HIGHJUMP/
    export LD_LIBRARY_PATH="/home/olger/HIGHJUMP"
    export LD_PRELOAD="/home/olger/HIGHJUMP/libcod2_1_0_kungv2.so /home/olger/HIGHJUMP/limit_fake.so /home/olger/HIGHJUMP/limit_challenge.so"
    ./cod2_lnxded_1_0a_va_loc_128 +set dedicated 2 +set net_ip 46.4.55.66 +set net_port 28958 +set sv_maxclients 52 +exec serversd.cfg + exec pws.cfg +set fs_game sd2 + set sv_cracked 1 + set logfile 2
    Then your screen stuff (no need for sleep):

    Code:
    screen -AmdS hjsd
    screen -S hjsd -p 0 -X stuff "./hjsd.sh
    "
    timescale 0.01

  2. The Following User Says Thank You to kung foo man For This Useful Post:

    Ni3ls (30th May 2016)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •