This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

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

Support & discussion of released scripts, and announcements of new releases.
Post Reply
p
pstruh
Voice
Posts: 11
Joined: Fri Mar 04, 2005 6:34 am

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

Post by pstruh »

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
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

Post by De Kus »

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...
p
pstruh
Voice
Posts: 11
Joined: Fri Mar 04, 2005 6:34 am

Post by pstruh »

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"]
d
dwickie
Halfop
Posts: 76
Joined: Sat Aug 21, 2004 8:53 am
Location: /pub/beer

Post by dwickie »

try replace "php" in [exec php $script_home/tvprog.php "$arg"] with full path (eg. /usr/bin/php)
p
pstruh
Voice
Posts: 11
Joined: Fri Mar 04, 2005 6:34 am

Post by pstruh »

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 :)
thanks man
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

Post by De Kus »

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...
Post Reply