Urban Terror Forums: remote exec server.cfg does not work - Urban Terror Forums

Jump to content

 Login | Register 
Advertisement
Page 1 of 1

remote exec server.cfg does not work Rate Topic: -----

#1 User is offline   KroniK Icon

  •   QA member   
  • Account: kronik
  • Country:
  • Joined: 14-January 11
  • Posts: 305

Posted 05 May 2015 - 04:52 AM

Ok, So I have a bash script which will send commands to my server via the quake 3 protocol.

I was using the following command (of course I actually used my rcon password):

printf '\xFF\xFF\xFF\xFFrcon <rconpassword> exec server.cfg\n' | nc -u -w 1 urt.ptk-clan.club 27961 | sed -ne ':x;/\xFF/{N;s/\xFF\xFF\xFF\xFFprint\n//;tx};/^$/d;p'


When I ran that line, I got a response from the server saying "execing server.cfg" However the server does not actually exec the server.cfg.

When I run /rcon exec server.cfg while actually in the server, in my UrT client, the server will restart and load the map at the bottom of the config file. However running the above command from my linux terminal does not do the same thing.

I have confirmed that it works by sending a bigtext and that came through just fine.

Any Ideas on why this isn't working??

#2 User is offline   KroniK Icon

  •   QA member   
  • Account: kronik
  • Country:
  • Joined: 14-January 11
  • Posts: 305

Posted 05 May 2015 - 04:59 AM

Nevermind. It now works... Randomly

#3 User is offline   Extra1 Icon

  • Account: extra1
  • Country:
  • Joined: 22-February 15
  • Posts: 63

Posted 14 May 2015 - 01:19 AM

View PostKroniK, on 05 May 2015 - 04:59 AM, said:

Nevermind. It now works... Randomly


after exec server.cfg
cycle the map so it wil get reloaded.

#4 User is offline   KroniK Icon

  •   QA member   
  • Account: kronik
  • Country:
  • Joined: 14-January 11
  • Posts: 305

Posted 14 May 2015 - 04:01 AM

View PostExtra1, on 14 May 2015 - 01:19 AM, said:

after exec server.cfg
cycle the map so it wil get reloaded.



Yup that was the problem. I figured it out eventually but thanks for putting the solution here too!

Page 1 of 1


Fast Reply

  

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users

Sponsored link
https://www.urbanterror.info/members/donate/


Copyright © 1999-2024 Frozensand Games Limited  |  All rights reserved  |  Urban Terror™ and FrozenSand™ are trademarks of Frozensand Games Limited

Frozensand Games is a Limited company registered in England and Wales. Company Reg No: 10343942