Posts: 484
Threads: 49
Joined: Feb 2011
Is it posible to run shell script directly from GameMod?
Posts: 2,421
Threads: 52
Joined: Mar 2009
Reputation:
0
Not with standard PAWN you could create a plugin that allows you to execute commands from the shell.
Posts: 1,167
Threads: 57
Joined: Jul 2010
Reputation:
0
You can also with standart
make a php script with shell script in it, and use HTTP function to call it
Posts: 2,421
Threads: 52
Joined: Mar 2009
Reputation:
0
Php isn't PAWN so it's not standard PAWN. Either way you will need to make a plugin or PhP script.
I would prefer the plugin over a PhP script (because i don't know PhP).
Posts: 2,421
Threads: 52
Joined: Mar 2009
Reputation:
0
But what are you going to do with HTTP if you have no PhP script? Nothing. Can PhP execute commands from the command line of your server? I'm not sure i know very little about PhP.
Besides a plugin would work much better and will be a lot faster than waiting for a HTTP response.
EDIT: There is a plugin called "execute" that might already do what you need. I can't remember if theres a linux version though.
Posts: 169
Threads: 23
Joined: May 2012
Reputation:
0
if you use it like this:
HTTP(playerid, HTTP_HEAD, url, "", "MyHttpResponse");
The server will just send the request and wont wait for the answer, so it wont cause any lag.