Sponsored Content
Full Discussion: file check before FTP
Top Forums Shell Programming and Scripting file check before FTP Post 302325013 by Codesearcher on Friday 12th of June 2009 12:00:47 PM
Old 06-12-2009
MySQL 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.
 

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

Check file, before FTP

:mad: Hi All, I have written a script, which will get the file from other server through FTP. It is working fine, but i want to add a code which should first check, if the file is available in the source system and then do FTP, once successfully completed, it should delete the file. Is... (4 Replies)
Discussion started by: Amit.Sagpariya
4 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
TENTACLE_CLIENT(1)					   Client file transfer protocol					TENTACLE_CLIENT(1)

NAME
tentacle_client - a client file transfer protocol SYNOPSIS
tentacle_client <options> Tentacle is a client/server file transfer protocol that aims to be: - Executable programs or shell commands - System calls (functions provided by the kernel) - Library calls (functions within program libraries) Tentacle was created to replace more complex tools like SCP and FTP for simple file transfer/retrieval, and switch from authentication mechanisms like .netrc, interactive logins and SSH keys to X.509 certificates. Simple password authentication over a SSL secured connection is supported too. The client and server (TCP port 41121) are designed to be run from the command line or called from a shell script, and no configuration files are needed. Tentacle is now the default file transfer method for Pandora FMS and Babel Enterprise. Tentacle is implemented in Perl and ANSI C (Windows platforms included). You can download it and get more information at the official Sourceforge website http://tentacled.sourceforge.net/. OPTIONS
Tentacle Client options : -a address : Server address (default 127.0.0.1). -c : Enable SSL without a client certificate. -e cert : OpenSSL certificate file. Enables SSL. -f ca : Verify that the peer certificate is signed by a ca. -g : Get files from the server. -h : Show help. -k key : OpenSSL private key file. -p port : Server port (default 41121). -q : Quiet. Do now print error messages. -r number : Number of retries for network operations (default 3). -t time : Time-out for network operations in seconds (default 1s). -v : Be verbose. -w : Prompt for OpenSSL private key password. -x pwd : Server password. EXAMPLES
tentacle_client -a 192.168.1.1 -v /bin/bash Simple file transfer with maximum file size set to 1MB tentacle_client -a 192.168.1.1 -x password -v /bin/bash Simple file transfer with password authentication (not secure) tentacle_client -a 192.168.1.1 -x password -e cert.pem -k key.pem -v /bin/bash Secure file transfer with client certificate and password authentication NOTES
Tentacle requires Perl 5.8 or higher to works SEE ALSO
tentacle_server(1), pandora_server(1), pandora_agent(1) 0.2.0 2010-05-11 TENTACLE_CLIENT(1)
All times are GMT -4. The time now is 11:54 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy