SITE EXEC not working using ftp_exec command

Posted on 2006-03-29
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
    LVL 6

    Expert Comment

    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

    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

    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?
    LVL 2

    Accepted Solution

    try using

    exec /bin/myscript

    substitute the path and name of your programs tho
    LVL 6

    Expert Comment

    I don't understand how this question is relevant to PHP.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Json result print in html 31 61
    Upload PDF On Mobile 1 41
    code igniter select query 7 21
    Issues with signature 19 20
    Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
    SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
    Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
    The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

    728 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

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now