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?
Script/CMDs set in site profile
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
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
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?
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?