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
> 

-- 

Dave Parker
Utica College
Integrated Information Technology Services
(315) 792-3229
Registered Linux User #408177

_______________________________________________
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