Re: [hlds_linux] rcon command linux

2008-12-09 Thread Crazy Canucks
' - Dave - Original Message - From: Crazy Canucks [EMAIL PROTECTED] Date: Monday, December 8, 2008 9:50 pm Subject: Re: [hlds_linux] rcon command linux To: Half-Life dedicated Linux server mailing list hlds_linux@list.valvesoftware.com Regrettably, I can't get it to work

Re: [hlds_linux] rcon command linux

2008-12-09 Thread David A. Parker
8, 2008 9:50 pm Subject: Re: [hlds_linux] rcon command linux To: Half-Life dedicated Linux server mailing list hlds_linux@list.valvesoftware.com Regrettably, I can't get it to work. This is the command I used: su -c screen -S srcds -X eval 'stuff sm_csay test\015' cc-server Any idea

Re: [hlds_linux] rcon command linux

2008-12-09 Thread gameadmin
] On Behalf Of David A. Parker Sent: 09 December 2008 17:43 To: Half-Life dedicated Linux server mailing list Subject: Re: [hlds_linux] rcon command linux That's odd. It works on my TF2 server just fine, using su in the same way you tried. The screen is owned by the srcds user, but if I log

Re: [hlds_linux] rcon command linux

2008-12-09 Thread David A. Parker
connecting to the screen, ofc) -Original Message- From: [EMAIL PROTECTED] [mailto:hlds_linux- [EMAIL PROTECTED] On Behalf Of David A. Parker Sent: 09 December 2008 17:43 To: Half-Life dedicated Linux server mailing list Subject: Re: [hlds_linux] rcon command linux That's odd

Re: [hlds_linux] rcon command linux

2008-12-09 Thread Crazy Canucks
server into birthday mode every Thursday (and switch it back to regular mode every Friday). - Dave - Original Message - From: Crazy Canucks [EMAIL PROTECTED] Date: Monday, December 8, 2008 7:14 pm Subject: Re: [hlds_linux] rcon command linux To: Half-Life dedicated

Re: [hlds_linux] rcon command linux

2008-12-09 Thread Crazy Canucks
screen -S srcds -X eval 'stuff sm_csay test\015' - Dave - Original Message - From: Crazy Canucks [EMAIL PROTECTED] Date: Monday, December 8, 2008 9:50 pm Subject: Re: [hlds_linux] rcon command linux To: Half-Life dedicated Linux server mailing list hlds_linux

Re: [hlds_linux] rcon command linux

2008-12-09 Thread David A. Parker
. Is this correct? If it is, this might work better: su - cc-server -c screen -S srcds -X eval 'stuff sm_csay test\015' - Dave - Original Message - From: Crazy Canucks [EMAIL PROTECTED] Date: Monday, December 8, 2008 9:50 pm Subject: Re: [hlds_linux] rcon command linux To: Half-Life

Re: [hlds_linux] rcon command linux

2008-12-09 Thread Crazy Canucks
. Is this correct? If it is, this might work better: su - cc-server -c screen -S srcds -X eval 'stuff sm_csay test\015' - Dave - Original Message - From: Crazy Canucks [EMAIL PROTECTED] Date: Monday, December 8, 2008 9:50 pm Subject: Re: [hlds_linux] rcon command linux To: Half-Life

Re: [hlds_linux] rcon command linux

2008-12-09 Thread Crazy Canucks
Subject: Re: [hlds_linux] rcon command linux To: Half-Life dedicated Linux server mailing list hlds_linux@list.valvesoftware.com Regrettably, I can't get it to work. This is the command I used: su -c screen -S srcds -X eval 'stuff sm_csay test\015' cc

Re: [hlds_linux] rcon command linux

2008-12-09 Thread David A. Parker
Message - From: Crazy Canucks [EMAIL PROTECTED] Date: Monday, December 8, 2008 9:50 pm Subject: Re: [hlds_linux] rcon command linux To: Half-Life dedicated Linux server mailing list hlds_linux@list.valvesoftware.com Regrettably, I can't get it to work

Re: [hlds_linux] rcon command linux

2008-12-09 Thread Crazy Canucks
? If it is, this might work better: su - cc-server -c screen -S srcds -X eval 'stuff sm_csay test\015' - Dave - Original Message - From: Crazy Canucks [EMAIL PROTECTED] Date: Monday, December 8, 2008 9:50 pm Subject: Re: [hlds_linux] rcon command linux To: Half-Life dedicated Linux

Re: [hlds_linux] rcon command linux

2008-12-09 Thread Tony Paloma
mailing list Subject: Re: [hlds_linux] rcon command linux Wow, there are all kinds of uses for this. I'll be able to create a script that allows me to send messages to the server without having to attach to the screen. I'm always paranoid I'm going to accidentally hit ctrl-c, or have a brain

Re: [hlds_linux] rcon command linux

2008-12-09 Thread Ferenc Kovacs
server mailing list Subject: Re: [hlds_linux] rcon command linux That's odd. It works on my TF2 server just fine, using su in the same way you tried. The screen is owned by the srcds user, but if I log in as my regular user, I can do this: su - srcds -c screen -S tf2-server -X eval

Re: [hlds_linux] rcon command linux

2008-12-09 Thread Crazy Canucks
server mailing list Subject: Re: [hlds_linux] rcon command linux Wow, there are all kinds of uses for this. I'll be able to create a script that allows me to send messages to the server without having to attach to the screen. I'm always paranoid I'm going to accidentally hit ctrl-c

Re: [hlds_linux] rcon command linux

2008-12-08 Thread Miano, Steven M.
- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ferenc Kovacs Sent: Friday, December 05, 2008 8:49 PM To: Half-Life dedicated Linux server mailing list Subject: Re: [hlds_linux] rcon command linux On Fri, Dec 5, 2008 at 10:45 PM, David A. Parker [EMAIL PROTECTED] wrote

Re: [hlds_linux] rcon command linux

2008-12-08 Thread Marcel
Is there a way to store the actual screen in a variable or text file? It would be cool to send a command like stats to the screen and get the output of it. Where the first problem would be to automatically attach to the screen, enter command, detach the screen and then get the content of the

Re: [hlds_linux] rcon command linux

2008-12-08 Thread Joseph Laws
I imagine that would still be logged. Marcel wrote: Is there a way to store the actual screen in a variable or text file? It would be cool to send a command like stats to the screen and get the output of it. Where the first problem would be to automatically attach to the screen, enter

Re: [hlds_linux] rcon command linux

2008-12-08 Thread David A. Parker
You can send commands to a running screen like so: screen -S myscreen -X eval 'stuff stats\015' This would send stats followed by a return (\r) to the screen named myscreen. You'll see it on the console if you attach to myscreen afterward. I don't know of a way to capture the output on a

Re: [hlds_linux] rcon command linux

2008-12-08 Thread Crazy Canucks
Thanks a lot for this. I've wanted a way for my shut down script to send shutdown warnings to my server. I figured there had to be a way, but I couldn't figure it out last time I took a stab at it. :) Cheers, Drek David A. Parker wrote: You can send commands to a running screen like so:

Re: [hlds_linux] rcon command linux

2008-12-08 Thread David Parker
[EMAIL PROTECTED] Date: Monday, December 8, 2008 7:14 pm Subject: Re: [hlds_linux] rcon command linux To: Half-Life dedicated Linux server mailing list hlds_linux@list.valvesoftware.com Thanks a lot for this.  I've wanted a way for my shut down script to send shutdown warnings to my server.  I

Re: [hlds_linux] rcon command linux

2008-12-08 Thread Crazy Canucks
Canucks [EMAIL PROTECTED] Date: Monday, December 8, 2008 7:14 pm Subject: Re: [hlds_linux] rcon command linux To: Half-Life dedicated Linux server mailing list hlds_linux@list.valvesoftware.com Thanks a lot for this. I've wanted a way for my shut down script to send shutdown warnings

Re: [hlds_linux] rcon command linux

2008-12-08 Thread David Parker
: Monday, December 8, 2008 9:50 pm Subject: Re: [hlds_linux] rcon command linux To: Half-Life dedicated Linux server mailing list hlds_linux@list.valvesoftware.com Regrettably, I can't get it to work.  This is the command I used: su -c screen -S srcds -X eval 'stuff sm_csay test\015' cc-server

[hlds_linux] rcon command linux

2008-12-05 Thread Jonass
Hello, can you send rcon commands when you are logged on SSH to the server? Because I don't know command to administrate a server when you are on Linux (as HLSW Windows). I tried Google but nobody seems to have a good solution. Someone has an idea? Thank you!

Re: [hlds_linux] rcon command linux

2008-12-05 Thread X-GameServer | Alexander Nurevski
Jonass schrieb: Hello, can you send rcon commands when you are logged on SSH to the server? Because I don't know command to administrate a server when you are on Linux (as HLSW Windows). I tried Google but nobody seems to have a good solution. Someone has an idea? Thank you!

Re: [hlds_linux] rcon command linux

2008-12-05 Thread Crazy Canucks
If you use screen to run your server you can just use the command screen -r [process name or pid]. That brings up the console and you can enter commands as you normally would. Then just hold down ctrl and a, then hit d to detach from the console (it doesn't shut down). If you are using some

Re: [hlds_linux] rcon command linux

2008-12-05 Thread Crazy Canucks
Small oops in the last post. You wouldn't use the process name to attach to the screen session, you would use the screen name or the pid. Cheers, Drek Jonass wrote: Hello, can you send rcon commands when you are logged on SSH to the server? Because I don't know command to administrate a

Re: [hlds_linux] rcon command linux

2008-12-05 Thread Crazy Canucks
Last time I mentioned something like that, I was told changing the permissions on your tty's was a bad idea. If you log in and access your console as the same user that you started the screen session under, you shouldn't need to do that. Drek X-GameServer | Alexander Nurevski wrote: Jonass

Re: [hlds_linux] rcon command linux

2008-12-05 Thread X-GameServer | Alexander Nurevski
Crazy Canucks schrieb: Last time I mentioned something like that, I was told changing the permissions on your tty's was a bad idea. If you log in and access your console as the same user that you started the screen session under, you shouldn't need to do that. Drek X-GameServer |

Re: [hlds_linux] rcon command linux

2008-12-05 Thread Mark - hlds list
Glad you posted on that, I re-read his post two or three times trying to figure out why on earth he was saying to change the permissions like that. There is no reason whatsoever to do it if all you're wanting to do is resume your screen session as the user who started it in the first place...

Re: [hlds_linux] rcon command linux

2008-12-05 Thread Jonass
Thank you for your responses. I run effectively srcds with screen. But for me I connect like this: - I log into my user with SSH - I do su steam - Then I run the screen And in this case, I can not see the screen with screen -r due to a problem with permissions. Jonass Mark - hlds list a écrit :

Re: [hlds_linux] rcon command linux

2008-12-05 Thread X-GameServer | Alexander Nurevski
Jonass schrieb: Thank you for your responses. I run effectively srcds with screen. But for me I connect like this: - I log into my user with SSH - I do su steam - Then I run the screen And in this case, I can not see the screen with screen -r due to a problem with permissions. Jonass

Re: [hlds_linux] rcon command linux

2008-12-05 Thread Crazy Canucks
Well if you do that, then you do need to change the permissions on the tty. That is what I do because my server is in my home, I am the sole user, ssh can only be accessed from my lan, etc. I use a small script to accomplish the task. I call it steam_console but obviously you can call it

Re: [hlds_linux] rcon command linux

2008-12-05 Thread AFAdmin
I wrote a little script in python to help with this, and uses the SRCDS.py file(google it). My script: #!/usr/bin/env python import SRCDS import sys if __name__ == __main__: args = .join(sys.argv[1:]) f = open(/var/rcon/27015, r) d = f.read() f.close() d = d.split(\n)

Re: [hlds_linux] rcon command linux

2008-12-05 Thread bl4nk
Why? Can't he just do 'su steam' and then 'screen -r'? Crazy Canucks wrote: Well if you do that, then you do need to change the permissions on the tty. That is what I do because my server is in my home, I am the sole user, ssh can only be accessed from my lan, etc. I use a small script

Re: [hlds_linux] rcon command linux

2008-12-05 Thread Jonass
No, because it returns the following error: Cannot open your terminal '/dev/pts/1' - please check. bl4nk a écrit : Why? Can't he just do 'su steam' and then 'screen -r'? Crazy Canucks wrote: Well if you do that, then you do need to change the permissions on the tty. That is what I do

Re: [hlds_linux] rcon command linux

2008-12-05 Thread Crazy Canucks
The problem when you su -c screen -r [screen name/pid] [user] is that the screen is opening the tty of the user you are logged in as to display it's console. And unless it has permissions on the tty for the user you are logged in as, it can't do that. So you either have to change permissions

Re: [hlds_linux] rcon command linux

2008-12-05 Thread David A. Parker
This might work better: su - username -c screen -r [screen name/pid] - Dave Crazy Canucks wrote: The problem when you su -c screen -r [screen name/pid] [user] is that the screen is opening the tty of the user you are logged in as to display it's console. And unless it has permissions

Re: [hlds_linux] rcon command linux

2008-12-05 Thread Ferenc Kovacs
On Fri, Dec 5, 2008 at 10:45 PM, David A. Parker [EMAIL PROTECTED] wrote: This might work better: su - username -c screen -r [screen name/pid] - Dave Crazy Canucks wrote: The problem when you su -c screen -r [screen name/pid] [user] is that the screen is opening the tty of the user