H3llghost is almost right ... the first character being a shebang of course ...![]()
Code:#!/bin/sh . /usr/local/lib/7dtd/common.sh telnetCommand $1 "say Hello to $4"
Hmz, should really update this part of the scripts ...hello Alloc, I am getting this error message:
-bash: sel: command not found
-bash: sel: command not found
-bash: sel: command not found
Telnet not enabled or no password set.
My server is Debian 7
#!/bin/sh
. /usr/local/lib/7dtd/common.sh
checkRootLoadConf
telnetCommand $1 "say Hello to $4"
/home/sdtd/hooks/playerConnect/bemVindo.sh
Did you mark the script as executable?
Touch does set the exec-flag on a file, it only changes the modification time. You have to run chmod +x filename.sh to make it executable.
telnetCommand <sessionName> "say Hello" 0.3
/home/sdtd/instances/brasil/players.xml:6.112: Attribute nick redefineddo" playtime="0" logins="1" lastlogin="xxxxxxxx" online="true" entityid="5982"
^
/home/sdtd/instances/brasil/players.xml:6.112: Attribute playtime redefined
do" playtime="0" logins="1" lastlogin="xxxxxxx" online="true" entityid="5982"
^
/home/sdtd/instances/brasil/players.xml:6.112: Attribute logins redefined
do" playtime="0" logins="1" lastlogin="xxxxxxx" online="true" entityid="5982"
^
/home/sdtd/instances/brasil/players.xml:6.112: Attribute lastlogin redefined
do" playtime="0" logins="1" lastlogin="xxxxxx" online="true" entityid="5982"
^
/home/sdtd/instances/brasil/players.xml:6.112: Attribute online redefined
do" playtime="0" logins="1" lastlogin="xxxxxxx" online="true" entityid="5982"
^
/home/sdtd/instances/brasil/players.xml:6.112: Attribute entityid redefined
do" playtime="0" logins="1" lastlogin="xxxxxxx" online="true" entityid="5982"
It is an issue with the telnet thread, the kill uses normally the shutdown command. The "work-around" is to use the shutdown via console as player.Regarding Q2: I think this only happens when the Telnet thread crashed so shutdown does not work. Can't do anything about it as that's a bug in the game itself.