Sponsored Content
Full Discussion: Check file, before FTP
Top Forums Shell Programming and Scripting Check file, before FTP Post 302367710 by TonyLawrence on Tuesday 3rd of November 2009 09:15:00 AM
Old 11-03-2009
I suggest using Perl for this. You can easily do something like that and more.

See examples at my Perl Net::FTP
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

perl ftp check file exists

I have a perl script that ftp's to an NT server, checks if the file is growing, gets the file, does some more size checking after the get on the unix box. My question, is there a good way to check if the file exists on the NT when I know the exact file to check for? I thought about doing an "ls... (2 Replies)
Discussion started by: methos
2 Replies

2. Shell Programming and Scripting

how could I check whether ftp a file is successfully done or not

how could i check that the ftp oof any file is successfully done. thanks in advance. (1 Reply)
Discussion started by: rinku
1 Replies

3. Shell Programming and Scripting

How to check file size before and after FTP

I want to trasfer file from 1. Unix server A to server B 2. Unix server A to windows directory Is there a way to check the size before and after FTP. I want to check the size of the file in server A before FTP and in server B after FTP in case 1 In case 2 I want to check the size of... (1 Reply)
Discussion started by: i.scientist
1 Replies

4. UNIX for Advanced & Expert Users

Using FTP to check whether file is completely FTP... plz find the description below

Hi, We have some clients who will place huge files in to one of the remote server. And the shell script written in our local server to retrieve client files (using FTP) placed on one of the remote server of ours by clients. My question Is there any FTP command/script to check from my local... (1 Reply)
Discussion started by: nmsrao
1 Replies

5. Shell Programming and Scripting

How check for a new file on a ftp-server

Hi there, I want to write a linux shellscript that checks a specific folder on a specific FTP-server whether there are new files or not. If there are new files I want to download them to a local directory (to gain access for an local application to these files). The problem is that the files I... (3 Replies)
Discussion started by: monstrous
3 Replies

6. Shell Programming and Scripting

need to check the file using ftp in a shell script

i need to write a shell script.. connecting to another server using ftp and check whether the file ter.txt is exists there or not. i have written scirpt partially,as i new to Unix. ftp -inv $FTPHOST > $TEMPFILE1 2> $TEMPFILE1 << EOF user $FTPUSER $FTPPW binary prompt ${CD} ls *.txt... (11 Replies)
Discussion started by: KiranKumarKarre
11 Replies

7. Shell Programming and Scripting

file check before FTP

Hi I use a shell script to transfer files from UNIX to Windows 2000 server before the FTP i need to check whether any files with the same name exists. If the files are already present it need not be FTPed else the file should be FTPed. Kindly help me. (2 Replies)
Discussion started by: Codesearcher
2 Replies

8. Shell Programming and Scripting

FTP file check help

hello i need check if file_name exist on remote FTP or not the FTP is anonymous and doesnt require username/pass (3 Replies)
Discussion started by: mogabr
3 Replies

9. UNIX for Dummies Questions & Answers

After Ftp'ing file to destination how to check the file if it is in correct ASCII and not corrupted

Hi Folks, While transferring file from FTP software like Filezilla the files gets corrupted. Is there any way I can check if the recently transferred file is in ASCII and not corrupted. I have tried using file -i filename command which does tell if the file character set is ASCII or binary... (6 Replies)
Discussion started by: Khan28
6 Replies

10. Shell Programming and Scripting

How to check the file locked or in use at FTP?

Hi Experts, I am beginner to shell scripting, I have a archive script which will connect to the FTP server and archive the files from FTP source location to FTP archive location. Now the problem here is, the script working for few files and not working for few.I am facing the below error... (1 Reply)
Discussion started by: spidy
1 Replies
Net::Trac::Connection(3pm)				User Contributed Perl Documentation				Net::Trac::Connection(3pm)

NAME
Net::Trac::Connection - Connection to a remote Trac server DESCRIPTION
This class represents a connection to a remote Trac instance. It is required by all other classes which need to talk to Trac. SYNOPSIS
use Net::Trac::Connection; my $trac = Net::Trac::Connection->new( url => 'http://trac.example.com', user => 'snoopy', password => 'doghouse' ); ACCESSORS
url The url of the Trac instance used by this connection. Read-only after initialization. user password ACCESSORS
/ MUTATORS logged_in [BOOLEAN] Gets/sets a boolean indicating whether or not the connection is logged in yet. mech [MECH] Gets/sets the Net::Trac::Mechanize (or subclassed) object for this connection to use. Unless you want to replace it with one of your own, the default will suffice. METHODS
new PARAMHASH Creates a new Net::Trac::Connection given a paramhash with values for the keys "url", "user", and "password". ensure_logged_in Ensures this connection is logged in. Returns true on success, and undef on failure. Sets the "logged_in" flag. PRIVATE METHODS
_fetch URL Fetches the provided relative URL from the Trac server. Returns undef on an error (after "warn"ing) and the content ("$self-"mech->content>) on success. _warn_on_error URL Checks the last request for an error condition and warns about them if found. Returns with a TRUE value if errors occurred and a FALSE value otherwise for nicer conditionals. _tsv_to_struct PARAMHASH Takes a paramhash of the keys "data" Given TSV data this method will return a reference to an array. LICENSE
Copyright 2008-2009 Best Practical Solutions. This package is licensed under the same terms as Perl 5.8.8. perl v5.12.3 2009-06-10 Net::Trac::Connection(3pm)
All times are GMT -4. The time now is 09:04 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy