We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

SITE EXEC not working using ftp_exec command

Medium Priority
2,060 Views
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.

Comment
Watch Question

Brian BushSolutions Architect

Commented:
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.

--brian

Author

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.

Author

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

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Brian BushSolutions Architect

Commented:
I don't understand how this question is relevant to PHP.
--brian
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.