'
- 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
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
] 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
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
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
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
. 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
. 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
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
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
? 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
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
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
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
-
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
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
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
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
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:
[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
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
: 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
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!
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!
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
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
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
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 |
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...
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 :
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
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
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)
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
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
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
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
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
38 matches
Mail list logo