Script/CMDs set in site profile

Core FTP client questions and answers
Post Reply
rogerLi
Posts: 6
Joined: Thu Nov 02, 2006 3:20 pm

Script/CMDs set in site profile

Post by rogerLi »

l have a question for the "Script/Cmds" part in the site profile. I would greatly appreciate if any one can help.

My remote machine is a Unix machine, I need to put some commands in "Post Login commands" field of a specific site profile. e.g chmod 755 *

I have tried both separately:

chmod 755 *
and
SITE chmod 755 *

None of them worked.

Permission is not an issue because I implmented this in my home directory for the trial.

Is there special command to trigger the cmds implementation?
mike
Posts: 47
Joined: Fri Jul 28, 2006 4:36 pm

Post by mike »

does this work?

SITE chmod 755 %1


put it in the "post transfer commands" because FTP might not handle a wildcard for chmod.
rogerLi
Posts: 6
Joined: Thu Nov 02, 2006 3:20 pm

Post by rogerLi »

Thanks, Mike.


No, it did not work neither.

I even put in the specific file name, it seems the cmd did not get executed.
SITE chmod 777 /home/yxli/Certs/DemoWin/INSTALL.LOG

Here is my command line:
coreftp -O -u c:\temp\6-7meetingMinutes.txt -site dxDevServ -s -log c:\temp\coreFTP.log

Here is the log:
Current directory is '/home/yxli/'
CWD /home/yxli/
CWD /home/yxli/Certs/DemoWin/
STOR /home/yxli/Certs/DemoWin/6-7meetingMinutes.txt
6-7meetingMinutes.txt - 6552 bytes transferred
SITE put c:\temp\coreftp.cfg /home/yxli/Certs/DemoWin/
SITE chmod 777 /home/yxli/Certs/DemoWin/INSTALL.LOG
SITE quit
Total uploaded files: 1
Total uploaded data: 6 KB
Total downloaded files: 0
Total downloaded data: 0
rogerLi
Posts: 6
Joined: Thu Nov 02, 2006 3:20 pm

Post by rogerLi »

Yes, I used sftp protocal in my script.

As you indicated, all the command for pre or post login did not work no matter they are upcase or lowcase.
such as in "Post transfer commands:

put c:\temp\coreftp.cfg Certs/DemoWin/
cd Certs/DemoWin/
rm -f Certs/DemoWin/TEMP.INI
quit

above cmds did not take effect at all.

Is there a work around?
Post Reply