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 

Tcl error [tv]: couldn't execute "php": no such fi

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
pstruh
Voice


Joined: 04 Mar 2005
Posts: 11

PostPosted: Thu May 11, 2006 6:34 am    Post subject: Tcl error [tv]: couldn't execute "php": no such fi Reply with quote

Hi I have problem with tcl script.

If I try to use command etc. !tv in eggdrop party line displayed me:
Tcl error [tv]: couldn't execute "php": no such file or directory

Cau you help me fix it?

thanks
Back to top
View user's profile Send private message
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Thu May 11, 2006 7:33 am    Post subject: Reply with quote

have you read the install instructions? I am sure you are missing a php command line tool within the search path or something like that.
_________________
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
Back to top
View user's profile Send private message MSN Messenger
pstruh
Voice


Joined: 04 Mar 2005
Posts: 11

PostPosted: Thu May 11, 2006 7:58 am    Post subject: Reply with quote

De Kus wrote:
have you read the install instructions? I am sure you are missing a php command line tool within the search path or something like that.


Problem is, in few days ago all working perfect, no error messages, but If I reboot server then this error was alert.

lines of script
set script_home "/home/cha/eggdrop/scripts"
set results [split [exec php $script_home/tvprog.php "$arg"] "\n"]
Back to top
View user's profile Send private message
dwickie
Halfop


Joined: 21 Aug 2004
Posts: 76
Location: /pub/beer

PostPosted: Thu May 11, 2006 10:49 am    Post subject: Reply with quote

try replace "php" in [exec php $script_home/tvprog.php "$arg"] with full path (eg. /usr/bin/php)
Back to top
View user's profile Send private message
pstruh
Voice


Joined: 04 Mar 2005
Posts: 11

PostPosted: Thu May 11, 2006 2:45 pm    Post subject: Reply with quote

dwickie wrote:
try replace "php" in [exec php $script_home/tvprog.php "$arg"] with full path (eg. /usr/bin/php)


Yes, Now its working perfect Smile
thanks man
Back to top
View user's profile Send private message
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Fri May 12, 2006 4:57 am    Post subject: Reply with quote

you alternately should be able to solve by adding /usr/bin to export PATH in ~/.bash_profile. Type 'export | grep PATH' to see current paths. A healthy PATH should contain at least "/usr/local/bin:/usr/bin:/bin"; /sbin, /usr/sbin, /usr/local/sbin and ~/bin might also be a good choice, if avaible.
_________________
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases 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