I tested individually folder by manually FTP. It's working.
Even I changed the sequence i.e. Scripts copy files for first folder - /home/mylogin/Test2/Important_Doc/. It ignores the second.
Hi all,
I am a beginner to unix and ftp too.So i request your valuable comments.
Requirement:
I want to put a specific file into a server(linux) and under a particular directory path in that server as /caps/details/data/
Problem :
I login to that server through the command `ftp... (1 Reply)
Hi there Gurus,
I have the following ftp script:
$ more ftp_dump_arch4.sh
#! /usr/bin/ksh
# Constant variables
HOST='xx.xx.xx.xx'
USER='user'
PASSWD='password'
dir='/export/file'
ftp_log='/tmp'
ftp -n $HOST > $ftp_log/ftp.log << END
user $USER $PASSWD
verbose
lcd $dir
bin (3 Replies)
Dear All,
Again I have another simple question. :confused:
I want to write a csh which can copy all files of a current directory with a new name in the same directory, I mean:
If I have tree bird apple as files in a directory I want to give ,say number 007 as argument to my csh and it copies... (3 Replies)
I have several directories and all those directories have .dat files in them. I want to copy all those .dat files to one directory say "collected_directory"
The problem is I don't want to overwrite files. So, if two file names match, I don't want the old file to be overwritten with a new one.
... (1 Reply)
Hi All,
I want to search for .log files from folders and sub folders in remote server and FTP them to one particular folder in the local machine. I dont want to copy the entire directory tree structure, just have to take all the .log files from all the folders by doing a recursive search from the... (3 Replies)
I have directory that has some billion file inside , i tried copy some files for specific date but it's always did not respond for long time and did not give any result.. i tried everything with find command and also with xargs..
even this command find . -mtime -2 -print | xargs ls -d did not... (2 Replies)
How to copy files from one directory to another directory with the subfolders copied.
If i have folder1/sub1/sub2/* it needs to copy files to folder2/sub1/sub2/*.
I do not want to create sub folders in folder2.
Can copy command create them automatically?
I tried cp -a and cp -R but did... (4 Replies)
Dear all
I have a multiple directories, say for example org1, org2, org3 ..... org100 and each directory having a file namely dnaG.fasta. I need to copy all the dnaG.fasta file from each directory and paste in another directory fastconcatg. Therefore, my script has to copy dnaG.fasta file from... (5 Replies)
Discussion started by: dineshkumarsrk
5 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)