Hi,
i need to change the accessright on a ftp server with chmod. Can this be done by MacroScheduler?
Matthias
ftp / chmod ?
Moderators: JRL, Dorian (MJT support)
Assuming you're going to telnet into the server, you can use the Send Character/Text (abbreviated send) function to enter any unix commands that you would otherwise type at the unix command line. I would put a healthy "wait" between each "send" to make sure the command was executed. And you must also use "press Enter" after each "send" to execute the command.
For example:
//do something
Set Focus>Telnet*
send>chmod 554 /home/users/myname/myfile
Wait>1
Press Enter
Wait>1
//do something else
You could also use MS to do the login portion of the telnet using the "Run Program" function to start telnet then use "send" and "press enter" to enter the username and password.
Hope this helps,
Dick
For example:
//do something
Set Focus>Telnet*
send>chmod 554 /home/users/myname/myfile
Wait>1
Press Enter
Wait>1
//do something else
You could also use MS to do the login portion of the telnet using the "Run Program" function to start telnet then use "send" and "press enter" to enter the username and password.
Hope this helps,
Dick
Create a text file that looks like this:
username
password
cd /put/path/here/if/required/
quote SITE chmod 755 flename
quit
Save this file somewhere. For this example we'll call it chmod.ftp
Now in Macro Scheduler do this:
Let>RP_WAIT=1
Run>ftp -s:c:\path\chmod.ftp someserver.com
Replace someserver.com with the server name or IP address you are connecting to. Change path to reflect the path you saved chmod.ftp to. Modify the ftp command file as required.
username
password
cd /put/path/here/if/required/
quote SITE chmod 755 flename
quit
Save this file somewhere. For this example we'll call it chmod.ftp
Now in Macro Scheduler do this:
Let>RP_WAIT=1
Run>ftp -s:c:\path\chmod.ftp someserver.com
Replace someserver.com with the server name or IP address you are connecting to. Change path to reflect the path you saved chmod.ftp to. Modify the ftp command file as required.
MJT Net Support
[email protected]
[email protected]
OK, another thought. Can you use Internet Explorer to access your FTP server? If you can, if you right click on a file and go to "Properties" on the popup menu, does it give you a permissions window? If this all works then this could be automated through MS using appropriate mouse clicks and/or keystrokes. Perhaps this is even similar to your FTP software?
Later,
Dick
Later,
Dick