RE: Batch file Permissions

From: Goulet, Richard <Richard.Goulet_at_parexel.com>
Date: Thu, 17 Sep 2009 12:35:40 -0400
Message-ID: <6B0D50B70F12BD41B5A67F14F5AA887F8F27F7_at_us-bos-mx022.na.pxl.int>



Bala,  

    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??  

Dick Goulet
Senior Oracle DBA/NA Team Lead
PAREXEL International  


From: oracle-l-bounce_at_freelists.org
[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

Hi all,

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 .

_at_echo off
SET CUSTOM=/apps12i/oracle/KIRAN/
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
del ftpcmd.dat

Regards

Bala

--
http://www.freelists.org/webpage/oracle-l
Received on Thu Sep 17 2009 - 11:35:40 CDT

Original text of this message