It looks as though qstat would do what I needed it to do.  I think qstat 
can get all the information I can use, in a form that I can work with.  
I'm going to have to see if you attach to a screen in a way that won't 
allow you to interact with it, but only view it.  That would be useful 
as well.  I know, "man screen"... ;)

Drek

David A. Parker wrote:
> Drek, one more thing about this which might save you some headaches.  I 
> recall you saying in a previous post that you are running Debian.  I 
> found out the hard way that /dev/tcp and /dev/udp are not enabled in the 
> Debian version of Bash.  I was using Lenny, and I spent about an hour 
> trying to get that stuff to work before I Googled it and discovered that 
> I would have to recompile Bash in order for it to work.
>
>      - Dave
>
> David A. Parker wrote:
>   
>> I use Perl script with IO::Socket and they work quite well.  Bash has 
>> limited support for sockets using /dev/tcp and /dev/udp but I don't know 
>> if it will work for a Source Engine query, since the query string needs 
>> to be "packed" into the UDP datagram before it is sent.
>>
>>      - Dave
>>
>> Crazy Canucks wrote:
>>     
>>> That is for a php script.  I want to be able to do it with a bash 
>>> script, and yes, I did search before I asked the question.  ;)
>>>
>>> Drek
>>>
>>> Peter Lindblom wrote:
>>>       
>>>> The same Q was asked a few days ago .. try looking for old posts first 
>>>> next 
>>>> time please !
>>>>
>>>> http://forums.srcds.com/viewtopic/5239
>>>>
>>>> GoodLuck sir !
>>>>
>>>> Peter
>>>>
>>>> ----- Original Message ----- 
>>>> From: "Crazy Canucks" <[EMAIL PROTECTED]>
>>>> To: "Valve Linux Server Mailing List" <[email protected]>
>>>> Sent: Wednesday, December 10, 2008 2:53 PM
>>>> Subject: [hlds_linux] Query a Server from a Bash Script
>>>>
>>>>
>>>>   
>>>>         
>>>>> Just wondering if anyone knows it is possible to query a server from a
>>>>> bash script, and if so, if you could point me in the right direction as
>>>>> to how to do it.  I suppose if it isn't possible, I can always use a
>>>>> perl script to query the server and output the data to a file.
>>>>>
>>>>> Cheers, Drek
>>>>>
>>>>> _______________________________________________
>>>>> To unsubscribe, edit your list preferences, or view the list archives, 
>>>>> please visit:
>>>>> http://list.valvesoftware.com/mailman/listinfo/hlds_linux
>>>>>
>>>>>     
>>>>>           
>>>> _______________________________________________
>>>> To unsubscribe, edit your list preferences, or view the list archives, 
>>>> please visit:
>>>> http://list.valvesoftware.com/mailman/listinfo/hlds_linux
>>>>
>>>>   
>>>>         
>>> _______________________________________________
>>> To unsubscribe, edit your list preferences, or view the list archives, 
>>> please visit:
>>> http://list.valvesoftware.com/mailman/listinfo/hlds_linux
>>>
>>>       
>
>   


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux

Reply via email to