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