SITE EXEC not working using ftp_exec command

I am using Wu-Ftp server, and everything is fine.
I enabled the SITE-EXEC function, and put all needed comands into /bin/ftp-exec folder. So I can remotly ftp and using SITE EXEC command to excute
program like "ls, cp, chmod, ..." on this server. But the problem is I only can excute such standard UNIX command,

Whenever I write a script and put into the /bin/ftp-exec folder, I cannot excute them using ftp SITE EXEC command, I can excute them locally.

Can anybody suggest what I can do to solve this problem? I remember that the Wu-ftp SITE EXEC command can run any program as well as the program
was put in the /bin/ftp-exec folder and have right permission. I have done all of this, but still failed to run my own scripts.

Thanks again and I am waiting online for the answer.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Brian BushSolutions ArchitectCommented:
If they are PHP command line scripts you are attempting to run,
then you probably have to drop a copy of the PHP-CLI executable
in the ftp-exec folder as well.

zeus_zhnAuthor Commented:
No, it's not php scripts, actually it's a linux compiled excutable file, should be runing like a service.

I can run this file locally.
zeus_zhnAuthor Commented:
My understanding is ftp_exec (actually it is a FTP SITE EXEC command) can excute any program including ones written by myself, is this correct?
try using

exec /bin/myscript

substitute the path and name of your programs tho

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Brian BushSolutions ArchitectCommented:
I don't understand how this question is relevant to PHP.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Languages and Standards

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.