egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

exec with php script (not running)

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
Keen
Voice


Joined: 28 Jan 2009
Posts: 10

PostPosted: Sun Oct 06, 2013 10:02 pm    Post subject: exec with php script (not running) Reply with quote

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
View user's profile Send private message
heartbroken
Op


Joined: 23 Jun 2011
Posts: 106
Location: somewhere out there

PostPosted: Mon Oct 07, 2013 8:02 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber