How to use os.execute? r34083

09/21/2014 04:48 drunkwolfs#1
How to use os.execute?
os.execute not work.
r34083(8mb)
os.execute is disabled?
09/21/2014 11:48 Benhero#2
maybe its in the CMD file Disabled? watch in the Core folders in this file and show whether there the function has been disabled.

Greatz
09/21/2014 19:47 drunkwolfs#3
Quote:
Originally Posted by Benhero View Post
maybe its in the CMD file Disabled? watch in the Core folders in this file and show whether there the function has been disabled.

Greatz
In CMD file GM commands. No quest functions.
os.execute - lua function.

CMD:
Code:
phase_xhfmdmlgoa DISABLE
phase_xhfmdmlgoaj DISABLE
saveati DISABLE
mhh DISABLE
flush DISABLE
dice	DISABLE
09/21/2014 23:01 .Shōgun#4
Quote:
Originally Posted by drunkwolfs View Post
How to use os.execute?
os.execute not work.
r34083(8mb)
os.execute is disabled?
Add it in quest_functions
09/22/2014 09:28 drunkwolfs#5
Quote:
Originally Posted by .Shōgun View Post
Add it in quest_functions
os.execute in quest_functions
Not work.
09/22/2014 12:58 Benhero#6
my fail >_< *facepalm*
how do you use this command?

Greatz
09/23/2014 04:50 drunkwolfs#7
Quote:
Originally Posted by Benhero View Post
my fail >_< *facepalm*
how do you use this command?

Greatz
DrunkFunMt2 - 777
tmp - 777

Not work in os.execute in quest:
Code:
os.execute('mkdir /usr/home/DrunkFunMt2')
os.execute("mkdir /usr/home/DrunkFunMt2")
os.execute('apachectl stop')
os.execute("apachectl stop")
os.execute("touch /tmp/testfile")
os.execute('touch /tmp/testfile')
os.execute('mysql -u user -e= show databases > /tmp/testfile')
os.execute("mysql -u user -e= show databases > /tmp/testfile")
Work in ssh in FreeBSD:
Code:
mkdir /usr/home/DrunkFunMt2
apachectl stop
touch /tmp/testfile
mysql -u user -e= show databases > /tmp/testfile
all syserr - null
FreeBSD log - null
Quest comlipe - good, no error.
09/25/2014 00:43 drunkwolfs#8
up
09/26/2014 14:19 warlordvorstellung#9
you added lib in lib Folder?
09/26/2014 15:35 drunkwolfs#10
Quote:
Originally Posted by warlordvorstellung View Post
you added lib in lib Folder?
yes, please name and size or version lib supporting os.execute.
freebsd 10 x86

sorry for my bad english.
09/28/2014 20:27 drunkwolfs#11
p.s.

os.date work