Sponsored Content
Full Discussion: Ftping through unix script
Top Forums UNIX for Dummies Questions & Answers Ftping through unix script Post 302098194 by matrixmadhan on Friday 1st of December 2006 07:51:51 AM
Old 12-01-2006
Redirect your ftp output to a ftp_log file and parse the file to get the file count from there

Code:
ftp -nv $HOST <<EOF1 >>some_ftp_log.log

 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

FTPing over COM port ???

Hello. Can someone please help, or give me any advice. The company I work for has a unix machine and works over the com port rather than IP. We need to retrieve some files from it onto another unix machine and we are trying to get an ftp program to work, does anyone know any ftp programs that... (1 Reply)
Discussion started by: badge
1 Replies

2. Shell Programming and Scripting

Error in ftping script

Hi all , Can u please help me in this. I tried to just login server through the below script SERVER="Server_NAME" USER="i am user" PASSWD="mypassword" ftp -in $SERVER<<EOF user $USER $PASSWD mkdir Chanakya #To create directory with my name in $HOME ls > list put list bye... (5 Replies)
Discussion started by: Chanakya.m
5 Replies

3. Shell Programming and Scripting

FTPing from unix box to windows box.

Hi All, I need to know if it is possible ftping files from unix box to windows box . if yes , how ?. Is there any pre-requisits. Please tell me the steps, this is very urgent. Thnx Aru (8 Replies)
Discussion started by: aarora_98
8 Replies

4. UNIX for Dummies Questions & Answers

FTPing from XP to Solaris

Hello. I'm new to Unix. I've got a SUN Ultra 10 running Solaris 5.7 and I'm trying to FTP to it from my XP PC. My PC has an IP address of 10.0.0.3 and a Subnet of 255.255.255.0. I'm connected to the Sun machine with a crossover cable. I type "ifconfig hme0 10.0.0.5" in a shell window (as... (3 Replies)
Discussion started by: dtferreira
3 Replies

5. UNIX for Dummies Questions & Answers

ftping a file based in the size

Hi, I want to connect to a remote machine using FTP, check for the size of a file there. If it is 0 bytes, then there is no need to ftp else i have to ftp the file. Any help will be highly appreciated. (7 Replies)
Discussion started by: vikas.rao11
7 Replies

6. Shell Programming and Scripting

removing files after ftping

Hi All, I'm trying to write script to ftp some files and then need to remove these files from server. Is there any way to keep the condition that the file should be removed only after successfully transfered to the destinatino server? If in case, the file isn't been transferd, it should not be... (5 Replies)
Discussion started by: im_new
5 Replies

7. UNIX for Dummies Questions & Answers

Script for FTPing files to mainframe GDG

Hi, Request Unix gurus to kindly share a script which FTPs multiple files from Unix to a Mainframe GDG. The script should check for oldest file named as 'abc*.txt' in a directory '/dir/child'. FTP that file to MF, then remove the file from unix and then look for the next oldest file to be... (1 Reply)
Discussion started by: dsrookie
1 Replies

8. UNIX for Dummies Questions & Answers

How to remove junk (^Ò) character while FTPing

Hi All, I have been trying to FTP some data files from Windows directory to a UNIX server. The txt file in the windows contails the following data: "111~XYZ~1~Contact person’s phone number~COMMENTS~~~~" but the same line is appearing as "111~XYZ~1~Contact person^Òs phone number~COMMENTS~~~~"... (8 Replies)
Discussion started by: vkumbhakarna
8 Replies

9. UNIX for Dummies Questions & Answers

ftping a Zip file

i want to sftp a .zip file.when i am doing get abc.zip thenabc.zip is getting copied to my home folder. but on clicking abc.zip on my home folder to open it i am getting error message as "Unable to unarchive abc.zip into <homefolder> name" How to sftp the Zip file Thanks (1 Reply)
Discussion started by: bmrout007
1 Replies

10. Shell Programming and Scripting

FTPing files from unix server to windows server

Hi, Below is the script which ftps the file from unix server and putting in a different directory(but on unix server) How can i ftp the files from unix server and to place in a secure location on windows server? what changes needs to be done to the below script? How can this be... (1 Reply)
Discussion started by: venkatesht
1 Replies
tftp(1) 						      General Commands Manual							   tftp(1)

NAME
tftp - trivial file transfer program SYNOPSIS
val] val] [host [port]] DESCRIPTION
is the user interface to the Internet TFTP (Trivial File Transfer Protocol), that allows users to transfer files to and from a remote machine. The remote host can be specified on the command line, in which case uses host as the default host for future transfers (see the command below). Note now conforms to the RFCs: 2347, 2348, and 2349. Options supports the following new options: Set the block size option for data transfer, in octets. See command for more information. Set the use of transfer size option. See command for more information. Set the retransmission timeout option, in seconds. See command for more information. Commands Once is running, it issues the prompt and recognizes the following commands: Set the host (and optionally port) for transfers. Note that the TFTP protocol, unlike the FTP protocol, does not maintain con- nections between transfers; thus, the command does not actually create a connection, but merely remembers what host is to be used for transfers. You do not have to use the command; the remote host can be specified as part of the or com- mands. Set the mode for transfers; transfer-mode can be one of or (default is Put a file or set of files to the specified remote file or directory. The destination can be in one of two forms: a filename on the remote host if the host has already been specified, or a string of the form to specify both a host and filename at the same time. If the latter form is used, the hostname spec- ified becomes the default for future transfers. If the remote-directory form is used, the remote host is assumed to be a UNIX-like machine. To invoke the command with an IPv6 address, the IPv6 address must be enclosed in a pair of square brackets Get a file or set of files from the specified sources. source can be in one of two forms: a filename on the remote host if the host has already been specified, or a string of the form to specify both a host and filename at the same time. If the latter form is used, the last hostname specified becomes the default for future transfers. To invoke the command with an IPv6 address, the IPv6 address must be enclosed in a pair of square brackets Exit Typing the end-of-file character also causes an exit. Toggle verbose mode. Toggle packet tracing. Show current status. Set the per-packet retransmission timeout, in seconds. Set the total transmission timeout, in seconds. Shorthand for "mode ascii" Shorthand for "mode binary" Set the block size for data transfer. The client and the server communicate to arrive upon a block size that is suitable for use on the network medium. The valid range is 8 to 65464 octets. The default value is 512 octets. Set the retransmission timeout, in seconds. The client and the server communicate to arrive upon a retransmission timeout value. The valid range is 1 to 255 seconds. The default value is 5 seconds. Toggles the use of transfer size. This option is implemented for binary mode transfers only. By default, this option is disabled. If this option is enabled, it allows the receiving side to deter- mine the size of the file being transferred. When the command is used in binary mode and the size of the file is greater than the free disk space, transfer will be aborted immediately. When the command is used in binary mode, the size of the file will be sent to the server. Print help information. WARNINGS
Since there is no user-login or validation within the TFTP protocol, the remote site probably has some sort of file-access restrictions in place. The exact methods are specific to each site and are therefore difficult to document here. AUTHOR
was developed by the University of California, Berkeley. SEE ALSO
tftpd(1M). tftp(1)
All times are GMT -4. The time now is 07:26 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy