You can see the (current user's) active screen list with:
https://www.gnu.org/software/screen/manual/screen.htmlPHP Code:
screen -ls
Printable View
You can see the (current user's) active screen list with:
https://www.gnu.org/software/screen/manual/screen.htmlPHP Code:
screen -ls
i start server like this
but i cant preload libcoad it shows mePHP Code:
$cd ~cod2
$export LD_PRELOAD=/lib/libcod_1_3.so
$screen -A -m -d -S cod2 ./cod2lnxded + set .. +set ..
i have 32 libs , i can start server normally but i cant start with screen commandsPHP Code:
ERROR: ld.so: object '/home/user/cod2/lib/libcod2_1_3.so' from LD_PRELOAD cannot be preloaded (wrong ELF class : ELFCLASS32) ignored
You are doing preload for the screen this way. This will not work.
What you proably want is eg server.sh:
and then just launch that from screenPHP Code:
#!/bin/bash
export LD_PRELOAD="$HOME/cod2_1_3/libcod2_1_3.so"
PARAMS="+set fs_game ..."
"./cod2_lnxded" "$PARAMS"
PHP Code:
screen sh server.sh
i did this, i am getting "screen is terminating" message but server is not running
test your server.sh outside of screen first ofc.
i tested still i cant preload libcod
PHP Code:
ERROR: ld.so: object 'lib/libcod2_1_3.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Seems like you try to load the 32bit libcod library into a "normal" process, which is by default 64bit. Hence your start script is still wrong. Please post your scripts or just copy&paste correctly
PHP Code:
#!/bin/bash
export "LD_PRELOAD=$/path/to/lib/libcod2_1_3.so"
PARAMS="+set net_ip +set.. +set... +set sv_cracked 1"
"./cod2_lnxded" "$PARAMS"
And now compare that to what voron posted and see the flaw in it