View Full Version : FTP plugin -- question --
sided
10-26-2008, 04:06 PM
Hi all,
I'm a question, with the FTP plugin, is it possible to start an executable that is located on a server
thanx for reply
RizlaUK
10-26-2008, 04:31 PM
i dont think u can execute a file on a ftp server , correct me if im wrong , but if a user could execute a file, this would leave a ftp server open to trojan or malware attacks
sided
10-26-2008, 05:26 PM
my question is wrong to ask, but I have difficulty in English, sorry :o
I'm a sat decoder that runs under Linux with plug executable
and I saw a post that speaks of Commende chmod 755, but same, not to change the attribute file 644 in 755
but by running a plugin on the decoder sat, is possible to change the 644 in 755
my question is, with ams and ftp plugin, I can run the linux plugin is located on the decoder sat and modifying attribute 644 in 755
thanx
RizlaUK
10-26-2008, 05:46 PM
yes, use the FTP.Command action
FTP.Command (string Command);
Description:
Performs a custom FTP command on the FTP server.
Command:
(string) Any valid FTP command or any server-specific command.
Returns:
Nothing.
Example:
-- set access permissions for foo.txt
-- so the owner can read+write, but everyone else can only read
-- note: this is a server-specific command, it may not work on all servers
FTP.Command("SITE CHMOD 644 foo.txt");
sided
10-26-2008, 05:57 PM
I'm tested this command but it is not ok
this file transfered is attribut 644 not 755 :huh
I test to FTP.Command("chmod /var/bin/myfile 755"); not ok
FTP.Command("SITE CHMOD 755 foo.txt"); not ok
FTP.Command("chmod 755 "..filename..exten); not ok
FTP.Command("chmod ..filename..exten 755"); not ok
I not understand :huh
thanx
RizlaUK
10-26-2008, 06:03 PM
do you have permission to chmod the file and also read the small print!
note: this is a server-specific command, it may not work on all servers
if its not working contact you ftp host and ask for there help as i dont see it as a AMS problem and only your ftp host can tell you the correct way to send this command
sided
10-27-2008, 01:00 PM
this decoder sat is in my home in RESAU with my computer, for send files in decoder sat i'm use the ftp command hostname, user name and passeword.
if I use the software FlashFXP for connect the decoder sat I can change the attribute 644 in 755, permission is ok for change:huh
thanx for your reply :yes
actionstk..
10-27-2008, 01:18 PM
command server some part opposite in command you see on status tab in FlashFXP in CHMOD and apply to AMS FTP.Command( ......... ) and luck :lol
sided
10-27-2008, 10:29 PM
thanx, I'm look in command in Chmod FlashFxp
but I do not know how to introduce the ftp command in ams :huh
thanx advance
RizlaUK
10-28-2008, 05:56 AM
have you tryed the symbolic permissions string for CHMOD 755 (-rwxr-xr-x)
0 = --- = no access
1 = --x = execute
2 = -w- = write
3 = -wx = write and execute
4 = r-- = read
5 = r-x = read and execute
6 = rw- = read and write
7 = rwx = read write execute (full access)
dont know if it will work, but its worth a try
sided
10-28-2008, 02:22 PM
I'm tested
if combo_text == "/my/test/" then
FTP.Command("hostname chmod gbox.nab rwx"); not ok
FTP.ChangeDir("/my/test")
end
FTP.Upload(result, filename, UploadProgression);
FTP.Command("hostname chmod file (-rwxr-xr-x)); not ok
FTP.Command("chmod file (-rwxr-xr-x)); not ok
but I do not know if it is well written
if I change the attribute file of 644 to 755 with FlashFXP no prob
after I transfer the same file with ftp ams and the file has the attribute 755 and not 644
what is Bizard
thanx
presidente
10-28-2008, 07:17 PM
Try it with 0755, maybe this will work.
If you have a windows-server, chmod not works.
Imagine Programming
10-29-2008, 08:54 AM
Try it with 0755, maybe this will work.
If you have a windows-server, chmod not works.
I have a windows server (FileZilla) it works fine though...
sided
10-30-2008, 12:02 AM
I have a windows server (FileZilla) it works fine though...
hello, CB programming and webdesign you know tell me how you did to make it work (an example)
thank you for answers
Imagine Programming
10-30-2008, 11:32 AM
hello, CB programming and webdesign you know tell me how you did to make it work (an example)
thank you for answers
i ment that chmodding works fine, i tried with some VB applications, i havn't tried with AMS yet, i'll try some later:)
sided
10-30-2008, 11:49 AM
i ment that chmodding works fine, i tried with some VB applications, i havn't tried with AMS yet, i'll try some later:)
thanx and wait, but this command for VB it the same of ams
Imagine Programming
10-30-2008, 03:19 PM
thanx and wait, but this command for VB it the same of ams
the chmod command is, as i think, the same everywhere. Remember it's a serverside command. so it should work in AMS aswell :)
sided
10-30-2008, 05:03 PM
the chmod command is, as i think, the same everywhere. Remember it's a serverside command. so it should work in AMS aswell :)
ok thanx and wait :yes
sided
11-10-2008, 12:21 AM
the FTP is a plugin, is it possible that the plugin, this command CHMOD would create only to read and write (attribute 644) and not to read executes write (attribute 755)
Description CHMOD command to help page
FTP.Command (string Command);
Description:
Performs a custom FTP command on the FTP server.
Command:
(string) Any valid FTP command or any server-specific command.
Returns:
Nothing.
Example:
-- set access permissions for foo.txt
-- so the owner can read+write, but everyone else can only read
-- note: this is a server-specific command, it may not work on all servers
FTP.Command("SITE CHMOD 644 foo.txt");
Imagine Programming
11-10-2008, 12:29 AM
FTP.Command("SITE CHMOD 744 foo.txt");
Why don't you try that then?
sided
11-10-2008, 03:41 AM
FTP.Command("SITE CHMOD 744 foo.txt");
Why don't you try that then?
Thanks for reply, but I have tested is not ok
Imagine Programming
11-10-2008, 07:45 AM
Thanks for reply, but I have tested is not ok
I ment SITE CHMOD 755 foo.txt :P
Imagine Programming
11-10-2008, 07:54 AM
CHMOD 755, CHMOD 777 and 666 all worked for me, it has to be that your host/ftp server that doesn't support/allow chmod...
sided
11-11-2008, 10:29 AM
CHMOD 755, CHMOD 777 and 666 all worked for me, it has to be that your host/ftp server that doesn't support/allow chmod...
thank you for everything CB, especially for Attached Thumbnails
I made a mistake in the order :o and now it works again thank you for everything :yes
sided
11-11-2008, 10:50 AM
thank you for everything CB, especially for Attached Thumbnails
I made a mistake in the order :o and now it works again thank you for everything :yes
but i have a question
this code work is ok
FTP.Connect("000.000.0.00", "aaaaaaa", "bbbbbbb", "");
FTP.ChangeDir("/var");
FTP.Command("SITE CHMOD 777 myfile.txt");
FTP.Upload("C:\\myfile.txt", "myfile.txt", nil);
FTP.Disconnect();
Application.Exit(0);
but this code work is not ok
filename = "myfile";
FTP.Connect("000.000.0.00", "aaaaaaa", "bbbbbbb", "");
FTP.ChangeDir("/var");
FTP.Command("SITE CHMOD 777 filename");
FTP.Upload("C:\\myfile.txt", filename, nil);
FTP.Disconnect();
Application.Exit(0);
thanks for reply
sided
11-11-2008, 01:31 PM
Is it possible to create an external file that has the code and run with a APZ ams
--------------------------------------------
Exemple:
file external content
FTP.ChangeDir("/mydir");
FTP.Command("SITE CHMOD 777 myfile.txt");
FTP.Upload("C:\\myfile.txt", "myfile.txt", nil);
FTP.Disconnect();
-------------------------------------------------
apz ams content
FTP.Connect("hostname", "username", "passeword", "");
result = File.Run("AutoPlay\\Docs\\file external", "", "", SW_SHOWNORMAL, false);
thanks advance for reply
Imagine Programming
11-11-2008, 05:55 PM
Well, your code won't work because you have a val name in a string... Concat it to the string :)
filename = "myfile";
FTP.Connect("000.000.0.00", "aaaaaaa", "bbbbbbb", "");
FTP.ChangeDir("/var");
FTP.Command("SITE CHMOD 777 "..filename);
FTP.Upload("C:\\myfile.txt", filename, nil);
FTP.Disconnect();
Application.Exit(0);
RizlaUK
11-11-2008, 07:08 PM
also...
you are trying to CHMOD a file befor you have uploaded it to the server!
try uploading the file first
Imagine Programming
11-12-2008, 12:27 AM
also...
you are trying to CHMOD a file befor you have uploaded it to the server!
try uploading the file first
oh yeah indeed, sorry, didn't see that:)
sided
11-12-2008, 02:35 PM
oh yeah indeed, sorry, didn't see that:)
thans this code work is ok
filename = "myfile";
FTP.Connect("000.000.0.00", "aaaaaaa", "bbbbbbb", "");
FTP.ChangeDir("/var");
FTP.Command("SITE CHMOD 777 "..filename);
FTP.Upload("C:\\myfile.txt", filename, nil);
FTP.Disconnect();
Application.Exit(0);
verry thans for help :yes :yes
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.