Results 1 to 10 of 24

Thread: [CoD2/CoD4] Server auto-restart

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Brigadier General
    Join Date
    Dec 2012
    Posts
    1,012
    Thanks
    440
    Thanked 171 Times in 132 Posts
    I get the error No such file or directory, while the files are there.
    Code:
    #!/bin/bash
    
    screen -S test /exectest.sh
    startexectest.sh

    Code:
    #!/bin/bash
    while true
    do
        LD_LIBRARY_PATH=. LD_PRELOAD=libcod2_1_0.so ./cod2_lnxded +set dedicated 2 +set net_ip 46.4.55.66 +set net_port 28972 +set sv_maxclients 52 +exec servertdm.cfg + exec pws.cfg +set fs_game test + set sv_cracked 1 + set logfile 2
        sleep 1
    done
    exectest.sh


    Both placed in same folder as from where I run the command
    Code:
    bash startexectest.sh

  2. #2
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    Quote Originally Posted by Ni3ls View Post
    I get the error No such file or directory, while the files are there.
    Code:
    #!/bin/bash
    
    screen -S test /exectest.sh
    Both placed in same folder as from where I run the command
    Code:
    bash startexectest.sh
    Have you tried to execute it with 'sh'?
    Where did you place exectest.sh? In / (root) or home directory (~/exectest.sh)?

    Edit: if startexectest.sh and exectest.sh are in the same directory then you remove \ from your start script.
    Last edited by Mitch; 2nd September 2015 at 15:35.

  3. #3
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    Quote Originally Posted by Ni3ls View Post
    I get the error No such file or directory, while the files are there.
    Code:
    #!/bin/bash
    
    screen -S test /exectest.sh
    startexectest.sh
    try screen -S test ./exectest.sh
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

Posting Permissions

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