python scripts output to cmds.txt

Post here if you need help setting up your server, etc.
Post Reply
{~$|F|$~}phillip
Posts: 8
Joined: Mon Sep 05, 2011 2:59 am
Location: latitude 92`N longitutde TX`W
Contact:

python scripts output to cmds.txt

Post by {~$|F|$~}phillip »

dedicated server just reads cmds.txt and imputs it immediately?

confused and want clearification.

linux 0.2.8 sty+ct dedicated x32 .bin
Last edited by {~$|F|$~}phillip on Mon Jan 02, 2012 5:24 am, edited 1 time in total.
User avatar
kyle
Reverse Outside Corner Grinder
Posts: 1876
Joined: Thu Jun 08, 2006 3:33 pm
Location: Indiana, USA, Earth, Milky Way Galaxy, Universe, Multiverse
Contact:

Re: python scripts output to cmds.txt

Post by kyle »

not 100% sure what you mean, you may need to explain a little more.

if you are using a cmds.txt file for your script to write to you will need to make sure that the server is reading it either by following it and piping it in, or by using the --input option
Image
{~$|F|$~}phillip
Posts: 8
Joined: Mon Sep 05, 2011 2:59 am
Location: latitude 92`N longitutde TX`W
Contact:

Re: python scripts output to cmds.txt

Post by {~$|F|$~}phillip »

armaserver --input /home/me/.armaserver/var/cmds.txt

so does this make it constantly poll cmds.txt for changes?
User avatar
kyle
Reverse Outside Corner Grinder
Posts: 1876
Joined: Thu Jun 08, 2006 3:33 pm
Location: Indiana, USA, Earth, Milky Way Galaxy, Universe, Multiverse
Contact:

Re: python scripts output to cmds.txt

Post by kyle »

yes that should be what it does
Image
{~$|F|$~}phillip
Posts: 8
Joined: Mon Sep 05, 2011 2:59 am
Location: latitude 92`N longitutde TX`W
Contact:

Re: python scripts output to cmds.txt

Post by {~$|F|$~}phillip »

the script is writing to the file properly, but the server isnt imputing it
at all
User avatar
kyle
Reverse Outside Corner Grinder
Posts: 1876
Joined: Thu Jun 08, 2006 3:33 pm
Location: Indiana, USA, Earth, Milky Way Galaxy, Universe, Multiverse
Contact:

Re: python scripts output to cmds.txt

Post by kyle »

are you appending to the cmds.txt file or are you wiping it out each time?
Image
{~$|F|$~}phillip
Posts: 8
Joined: Mon Sep 05, 2011 2:59 am
Location: latitude 92`N longitutde TX`W
Contact:

Re: python scripts output to cmds.txt

Post by {~$|F|$~}phillip »

appending to it. .
Post Reply