RE: Batch file Permissions
Date: Thu, 17 Sep 2009 12:35:40 -0400
I've tried ftp commands to a couple of the linux/unix servers we have here. The file gets there with a file mask of 344 (-rwr--r--) is my math is right. Why would you need to have them as 755 (-rwxr-xr-x) if it's a daily process??
Senior Oracle DBA/NA Team Lead
[mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Balakrishna Y Sent: Wednesday, September 16, 2009 11:34 PM To: oracle-l_at_freelists.org
Subject: Batch file Permissions
I am trying to automate ftp from windows to Linux machine.
My Batch file looks like this . The problem is by default while shipping the file i wanted to give permissions to files as 755 . Can any one help me out .
apps/apps_st/appl/custom/12.0.0/reports/US echo user oracle> ftpcmd.dat
echo passwd >> ftpcmd.dat
echo bin>> ftpcmd.dat
echo cd %1 >>ftpcmd.dat
echo put %2 >> ftpcmd.dat
echo quit>> ftpcmd.dat
ftp -n -s:ftpcmd.dat ipaddress
BalaReceived on Thu Sep 17 2009 - 11:35:40 CDT