So I am writting a script to pull down files from an ftp that will be called from a bat file on windows. This seems pretty straight forward, and grabs all of the "files" in the cd location, but I am running into some permission issue that will not allow me to grab folders. When going through FileZilla ftp client I am able to transfer the folder over no problem, so I am not sure of the source of this permission mismatch.
The .bat runs
and scrptfile.ftp.txt is:
Folder contents of cd:
TestDirectory.... (Folder)
-> InternalTestPacket.... (File)
TestPacket.... (File)
TestPacketEmpty... (File)
***Script only brings over the two files: TestPacket and TestPacketEmpty
and says "Permission denied" when trying to copy over "TestDirectory"
Any idea?
---------- Post updated at 11:48 AM ---------- Previous update was at 11:40 AM ----------
I tried it a handful of times again, looked in my folder, and it moved the TestDirectory Folder over?!?!
--On the command line it says--
200 Command okay.
Error opening local file TestDirectory
>TestDirectory:Unknown error number
..
..
..
then tried again and got 550 Permission denied
Last edited by vbe; 11-17-2015 at 12:43 PM..
Reason: code tags
Hi! I am new to unix and this forum as well..
Can someone please help me :
I want to "get/mget" files which are older than 10 minutes from a remote FTP server like "ftp.com".
After getting the files to local unix server say "Prod.com" , i need to delete only those files from ftp.com which... (4 Replies)
Hi
I am trying to ftp all the files from a directory in server2 to server1 (both unix) The below code is in server1
ftpfile=/home/anitha/ftptxt
echo cd mydir >>$ftpfile
echo mget *.* >>$ftpfile
cat $ftpfile | ftp -i server2
mydir is a directory in server2 and there are some test files in... (4 Replies)
Hi,
I have searched everywhere for an answer to this question but couldn't find one so I ask it here.
From an AIX 5.3 machine I ftp to another AIX 5.3 server. I want to get all files and only files in a directory. This directory has a subdirectory with files in it.
In ftp, I enter the... (5 Replies)
For the below mentioned code..Files are getting transferred from first mget statement alone ie from /home/Arun/*EF01/...Could someone help me regarding this
ftp -vn <<EOD >$LOG
open
user
lcd
ascii
mget /home/Arun/*EF01/GLHEC*
mget /home/Arun/*EF03/GLHEC*
mget... (3 Replies)
Hello guys,
i'm searching for a solution how to download all files from root-directory of an ftp-server through an ftp proxy
getting through the ftp proxy and download one file with get ist no problem, but mget * does nothing!
ftp -n -i -v <<EOF
open proxyHost proxyPort
user... (19 Replies)
Hello Unix Gurus,
Help required from you.
My requirement is something like this
I want to create a concurrenct program in Oracle Applications using shell script to transfer files from Apps Server to destination FTP server.
I have created custom program, where I will extract all the... (4 Replies)
Hi,
I am using mget ftp command to pull a bunch of zip files from Windows to local unix machines. It is working fine as follows.
-rw------- 1 autosys autosys 614 Aug 19 13:13 02034128.zip
-rw------- 1 autosys autosys 1866 Aug 19 13:13 02034127.zip
-rw------- 1 autosys ... (1 Reply)
Hi,
I am using mget ftp command to pull a bunch of zip files from Windows to local unix machines. It is working fine as follows.
-rw------- 1 autosys autosys 614 Aug 19 13:13 02034128.zip
-rw------- 1 autosys autosys 1866 Aug 19 13:13 02034127.zip
-rw------- 1 autosys autosys 14592 Aug 19... (1 Reply)
hey,
I was wondering if its possible to use a complete path and file name using the mget command example
mget /dir1/dir2/dir3/file.ext
or
get /dir1/dir2/dir3/file.ext
because whenever i try its says file not found or permission denied.....
but if i do
cd dir1
cd dir2
cd dir3
mget... (2 Replies)