07-06-2009
Better write a script in combination of ssh and scp commands. ftp might be too limited to do things like checking versions etc. Also it is not encrypted.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
After checking all the UNIX threads, I am able to come up with a solution so far. I am working on a shell script where it moves the files to a certain directory. The conditions to check are
1) Check if the file exists in the current directory.
2) Check if the destination directory... (2 Replies)
Discussion started by: madhunk
2 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I m new to unix and I need a help in FTp-ing a file.
My script is given below
ftp -n <<END_SCRIPT
open $FTP_HOST
user $FTP_USER $FTP_PASSWD
lcd $TEMPFOLDER
cd $FTP_LOCATION
put $1
bye
END_SCRIPT
exit_status=$?
if ; then
log "successfully FTPed the file"
else... (5 Replies)
Discussion started by: MeeraNair
5 Replies
3. UNIX for Dummies Questions & Answers
Hi All,
I am new to unix scripting, please help me in completing this exercise,
I have a scenario as follows,
1. i have a text file(snapshot.txt) consisting of directory names, and file
size separated by comma as shown below:
snapshot.txt data:
... (1 Reply)
Discussion started by: G.K.K
1 Replies
4. Shell Programming and Scripting
Hi
I am doing a FTP process through which I am copying a file from my local server to Remote server. After this I want to check the size of the file
Below is my program:
LOCALDIR=/batch/ediprocess
REMOTESERVER=test.appl.com
REMOTEPATH=batch/ftpTest
LOGIN=px
PASSWORD=abcd
ftp -n... (3 Replies)
Discussion started by: shanth_chandra
3 Replies
5. Shell Programming and Scripting
Hi All,
I'm trying to write a script which will do following :
- For any old log under trace directory, if found move it to Archive
- Check for a process “process-A” if it is running abort from the script
- Else start it up (start_process-A.sh this case)
- If it fails to start the... (1 Reply)
Discussion started by: mohullah
1 Replies
6. Shell Programming and Scripting
Hi Everyone,
I am writing a shell script for the below needs and would like your suggestions and advices.
I have a lot of scripting files(Shell Scripts) under the directory:
/home/risk_dev/dev
I have another directory which has a lot of shell scripts under the directory:
... (2 Replies)
Discussion started by: filter
2 Replies
7. UNIX for Dummies Questions & Answers
Hi ,
i have some files of specific pattern ...i need to look for files which are having size greater than zero and move those files to another directory..
Ex...
abc_0702,
abc_0709,
abc_782
abc_1234 ...etc
need to find out which is having the size >0 and move those to target directory..... (7 Replies)
Discussion started by: dssyadav
7 Replies
8. SCO
All,
Im endeavoring to do a VirtualBox install on a PC. I have a registerd version 5.0.5. Somewhere on the s forum I recall reading I can upgrade to 5.0.6??
And at a max? without causing any unseen license issues. My questions are.
1: whats the benefit of any versions like 5.0.6 that I might... (4 Replies)
Discussion started by: TheSniper
4 Replies
9. Shell Programming and Scripting
I am trying to delete old file in ftp server, after transferring new file successfully .
but here i am checking both the file available or not using ls command.
if both the file available means i need to get file_new and file_old file size as greater than zero.
but i am getting only for... (3 Replies)
Discussion started by: elango963
3 Replies
10. Shell Programming and Scripting
I want to write a korn shell script to get the latest three versions for a file in the directory having lot of files with various versions (files with prefix as same but time stamp as suffix) and compress it and at the same time have to remove the remaining versions of the file (other than latest... (4 Replies)
Discussion started by: maheshbabu
4 Replies
LEARN ABOUT DEBIAN
test::dir
Test::Dir(3pm) User Contributed Perl Documentation Test::Dir(3pm)
NAME
Test::Dir - test directory attributes
SYNOPSIS
use Test::More ...;
use Test::Dir;
DESCRIPTION
This modules provides a collection of test utilities for directory attributes. Use it in combination with Test::More in your test
programs.
FUNCTIONS
dir_exists_ok(DIRNAME [, TESTNAME] )
Ok if the directory exists, and not ok otherwise.
dir_not_exists_ok(DIRNAME [, TESTNAME] )
Ok if the directory does not exist, and not ok otherwise.
dir_empty_ok(DIRNAME [, TESTNAME] )
Ok if the directory is empty (contains no files or subdirectories), and not ok otherwise.
dir_not_empty_ok(DIRNAME [, TESTNAME] )
Ok if the directory is not empty, and not ok otherwise.
dir_readable_ok(DIRNAME [, TESTNAME] )
Ok if the directory is readable, and not ok otherwise.
dir_not_readable_ok(DIRNAME [, TESTNAME] )
Ok if the directory is not readable, and not ok otherwise.
dir_writable_ok(DIRNAME [, TESTNAME] )
Ok if the directory is writable, and not ok otherwise.
dir_not_writable_ok(DIRNAME [, TESTNAME] )
Ok if the directory is not writable, and not ok otherwise.
dir_executable_ok(DIRNAME [, TESTNAME] )
Ok if the directory is executable, and not ok otherwise.
dir_not_executable_ok(DIRNAME [, TESTNAME] )
Ok if the directory is not executable, and not ok otherwise.
TO DO
I know there are a lot more directory 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::Dir
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-03-05 Test::Dir(3pm)