RE: Batch file Permissions

From: Goulet, Richard <>
Date: Thu, 17 Sep 2009 12:35:40 -0400
Message-ID: <>


    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  

[] On Behalf Of Balakrishna Y Sent: Wednesday, September 16, 2009 11:34 PM To:
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



Received on Thu Sep 17 2009 - 11:35:40 CDT

Original text of this message