n0la / rcon

Source RCON client for command line
BSD 2-Clause "Simplified" License
140 stars 18 forks source link

Remove mentions of invalid shebangs in README.md #5

Closed TomyLobo closed 7 years ago

TomyLobo commented 7 years ago

Shebangs (the #! thing) can only ever contain a path to an executable and (optionally) one single argument. So basically it's #!<path>[<space><1st argument>]<newline>.

n0la commented 7 years ago

Yes you are right. I fixed it. Your patch also had a slight error: When you pass the name of the file as an argument it is assumed to be a RCON command and it is send as such to the server. You have to pass the script as content through stdin. Thanks!

TomyLobo commented 7 years ago

Then the shebang, if it had worked, would have had the same issue :)

n0la commented 7 years ago

Yes, absolutely. :-)