SA-MP Forums Archive
[Plugin] [REL] Execute - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Plugin Development (https://sampforum.blast.hk/forumdisplay.php?fid=18)
+--- Thread: [Plugin] [REL] Execute (/showthread.php?tid=100177)

Pages: 1 2 3


Re: [REL] Execute - Diler - 06.02.2011

Can I save into an array ?
In PHP:
exec('arp '.$ip, $answer);
In SA-MP:
?


Re: [REL] Execute - JaTochNietDan - 06.02.2011

Quote:
Originally Posted by legodude
Посмотреть сообщение
still same. we tried this before.
with the filemanager plugin...
This problem should be solved now, re-download the Windows dll and put it into your plugins folder

Quote:
Originally Posted by Diler
Посмотреть сообщение
Can I save into an array ?
In PHP:
exec('arp '.$ip, $answer);
In SA-MP:
?
That's a good idea, I'll look into implementing it shortly.


Re: [REL] Execute - Janek17 - 06.02.2011

Nice plugin i use it!


AW: [REL] Execute - Meta - 11.02.2011

how about "cd", "exit" or "su"?
If i do this, does the server stay in this state or does it return to the GTA server?


Respuesta: [REL] Execute - anonymousx - 11.02.2011

I don't understand anything. What does it do?


Re: [REL] Execute - Mean - 11.02.2011

Awesome, gonna dload this.


Re: Respuesta: [REL] Execute - JaTochNietDan - 11.02.2011

Quote:
Originally Posted by anonymousx
Посмотреть сообщение
I don't understand anything. What does it do?
It's explained in the original post! It adds a function to Pawn called "exec", this function will directly execute commands on either Windows or Linux operating systems.


Re: [REL] Execute - legodude - 04.03.2011

is the saving function looked into??


Re: [REL] Execute - jonrb - 18.03.2011

I assume, by the description, that this can be used to rotate the logs if the correct command is executed?


Re: [REL] Execute - Steamator - 30.03.2011

Example to close server window.

pawn Код:
// Normal:
exec("TASKKILL /F /IM \"samp-server.exe\"");

// Macro:
#define close_server() \
    exec("TASKKILL /F /IM \"samp-server.exe\"");
It closes the samp server.

-------------------------------------------------------------

pawn Код:
exec("ECHO Test"); // Displays a message in samp window - won't be logged in log file
exec("DATE /T"); // Shows current date in samp window - won't be logged in log file
main() return exec("CLS"); // Sets the node at 0 and removes any text from samp window
-------------------------------------------------------------

pawn Код:
exec("COLOR 1F"); // See picture below
exec("COLOR 06"); // MTA Colors
Color-Codes:
Link




Re: [REL] Execute - Medal Of Honor team - 31.03.2011

nice plugin!


AW: [REL] Execute - Meta - 04.04.2011

how about returning text?

like
Код:
root@servername:~# foo
-bash: foo: command not found
for example, so that "-bash: foo: command not found" is returned.


Re: [REL] Execute - Steamator - 04.04.2011

You can't ask e. g. for the operating system. It will be only shown (show) in samp-server.


Re: AW: [REL] Execute - Killerkid - 04.04.2011

Quote:
Originally Posted by Meta
Посмотреть сообщение
how about returning text?

like
Код:
root@servername:~# foo
-bash: foo: command not found
for example, so that "-bash: foo: command not found" is returned.
I have created a plugin which returns the output.
Download link: http://www.mediafire.com/file/klrbm9...3w3/system.zip
Example usage:
pawn Код:
#include <system>

new string[13];
system("echo Hello World!", string, sizeof(string)); // 'string' now contains the output
printf(string);
Which prints "Hello World!".


Re: [REL] Execute - Ricop522 - 05.04.2011

With this I can open the CD of the playetr?


Re: [REL] Execute - Patrik356b - 05.04.2011

Uhm, no, this can "only" do things from/on the server side, eg: launch an application on the server


Re: AW: [REL] Execute - sebacol - 26.04.2011

Quote:
Originally Posted by Killerkid
Посмотреть сообщение
I have created a plugin which returns the output.
Download link: http://www.mediafire.com/file/klrbm9...3w3/system.zip
Example usage:
pawn Код:
#include <system>

new string[13];
system("echo Hello World!", string, sizeof(string)); // 'string' now contains the output
printf(string);
Which prints "Hello World!".
I can't get this to work, no output even from your example. I'm using Linux Debian


Re: [REL] Execute - [MrS]Lake - 01.07.2011

Does someone know how to open and close a file using linux cmds?

Like windows cmds, for example:

open
pawn Код:
exec("START samp-server.exe");
close
pawn Код:
exec("TASKKILL /F /IM \"samp-server.exe\"");
But i want for linux


AW: [REL] Execute - Pablo Borsellino - 25.07.2011

Quote:

Not Found

The requested URL /view=SA-MP Execute Plugin was not found on this server.

New Download Link?


AW: [REL] Execute - olaf137 - 25.07.2011

http://files.jatochnietdan.com/?view...ecute%20Plugin