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
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)
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)
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)
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)
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)
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)
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)
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 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)
Discussion started by: SravsJaya
4 Replies
LEARN ABOUT DEBIAN
test::folder
Test::Folder(3pm) User Contributed Perl Documentation Test::Folder(3pm)NAME
Test::Folder - test folder attributes
SYNOPSIS
use Test::More ...;
use Test::Folder;
DESCRIPTION
This modules provides a collection of test utilities for folder attributes. Use it in combination with Test::More in your test programs.
FUNCTIONS
folder_exists_ok(FOLDERNAME [, TESTNAME] )
Ok if the folder exists, and not ok otherwise.
folder_not_exists_ok(FOLDERNAME [, TESTNAME] )
Ok if the folder does not exist, and not ok otherwise.
folder_empty_ok(FOLDERNAME [, TESTNAME] )
Ok if the folder is empty (contains no files or subfolders), and not ok otherwise.
folder_not_empty_ok(FOLDERNAME [, TESTNAME] )
Ok if the folder is not empty (contains any files or subfolders), and not ok otherwise.
folder_readable_ok(FOLDERNAME [, TESTNAME] )
Ok if the folder is readable, and not ok otherwise.
folder_not_readable_ok(FOLDERNAME [, TESTNAME] )
Ok if the folder is not readable, and not ok otherwise.
folder_writable_ok(FOLDERNAME [, TESTNAME] )
Ok if the folder is writable, and not ok otherwise.
folder_not_writable_ok(FOLDERNAME [, TESTNAME] )
Ok if the folder is not writable, and not ok otherwise.
folder_executable_ok(FOLDERNAME [, TESTNAME] )
Ok if the folder is executable, and not ok otherwise.
folder_not_executable_ok(FOLDERNAME [, TESTNAME] )
Ok if the folder is not executable, and not ok otherwise.
TO DO
There are probably some more folder attributes that can be tested. If you need them, please ask (or better yet, contribute code!).
AUTHOR
Martin 'Kingpin' Thurn, "mthurn at cpan.org", <http://tinyurl.com/nn67z>.
BUGS
Please report any bugs or feature requests to "bug-test-dir at rt.cpan.org", or through the web interface at
<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Test-Dir>. I will be notified, and then you'll automatically be notified of progress on
your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Test::Folder
You can also look for information at:
o RT: CPAN's request tracker
<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Test-Dir>
o AnnoCPAN: Annotated CPAN documentation
<http://annocpan.org/dist/Test-Dir>
o CPAN Ratings
<http://cpanratings.perl.org/d/Test-Dir>
o Search CPAN
<http://search.cpan.org/dist/Test-Dir>
ACKNOWLEDGEMENTS COPYRIGHT & LICENSE
Copyright (C) 2007-2008 Martin 'Kingpin' Thurn
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.10.1 2011-02-20 Test::Folder(3pm)