| View previous topic :: View next topic |
| Author |
Message |
Keen Voice
Joined: 28 Jan 2009 Posts: 10
|
Posted: Sun Oct 06, 2013 10:02 pm Post subject: exec with php script (not running) |
|
|
Hello i try to run a php script that writes random string in a file but nothing changes when i use this tcl with eggdrop. I can see that php file can write a string into dosya.conf when i enter command php -f portdegistir.php
Can you help me please i just want to run that php script correcty. I hope you understand sorry for my bad english.
| Code: | bind raw * notice portsifre
proc portsifre {from keyword arg} {
global tj
if {[string match -nocase "*Client connecting*" $arg]} {
#Girişte notice sorgusu alalım
set port [lindex $arg 8]
set nick [lindex $arg 9]
set command "/home/sohbetka/eggdrop/scripts/portdegistir.php"
exec php -f $command
}
}
|
|
|
| Back to top |
|
 |
heartbroken Op

Joined: 23 Jun 2011 Posts: 106 Location: somewhere out there
|
Posted: Mon Oct 07, 2013 8:02 am Post subject: |
|
|
| Code: | bind raw * notice portsifre
proc portsifre {from keyword arg} {
global tj
if {[string match -nocase "*Client connecting*" $arg]} {
set phpfile "scripts/portdegistir.php"
set port [lindex $arg 8]
set nick [lindex $arg 9]
set command "php -f $phpfile DEBUG"
catch {eval exec $command}
}
return 0
} |
_________________ Life iS Just a dReaM oN tHE wAy to DeaTh |
|
| Back to top |
|
 |
|