SITE EXEC not working using ftp_exec command

Posted on 2006-03-29
Medium Priority
Last Modified: 2013-11-18
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.

Question by:zeus_zhn
  • 2
  • 2

Expert Comment

by:Brian Bush
ID: 16329275
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.


Author Comment

ID: 16329293
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.

Author Comment

ID: 16329321
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?

Accepted Solution

Strychni9e earned 2000 total points
ID: 16347566
try using

exec /bin/myscript

substitute the path and name of your programs tho

Expert Comment

by:Brian Bush
ID: 16347761
I don't understand how this question is relevant to PHP.

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses
Course of the Month15 days, 12 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question