Sponsored Content
Operating Systems Linux Ubuntu FTP script to get latest file from server Post 302961054 by RudiC on Monday 23rd of November 2015 10:43:49 AM
Old 11-23-2015
Any attempts/ideas/thoughts from your side?

Is that the only file in the remote directory? Do you have interactive access to that server?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

how to move a file from one server to another server using FTP in shell script?

I have a file --> file1.txt i need to copy this file to another server using FTP....the 2 servers are server1 and server2..may i know how to write a script that can do this? thanks in advance! Im a newbie to this... (4 Replies)
Discussion started by: forevercalz
4 Replies

2. Shell Programming and Scripting

Shell script to ftp latest file

Hello All, Hope u r doing fine. I'm writing a shell script to ftp the latest file having pericular convention as 'ULTI_15072007043205.txt' on daily basis. Now the date & timing of the file geleration isnt constant, so the file name daily varies as per the date & timing of generation. Can anyone... (7 Replies)
Discussion started by: im_new
7 Replies

3. UNIX for Dummies Questions & Answers

Getting latest file from ftp

Hi, i have multile JAMA01.DAT.* files in my ftp. how can i get the latest file in from the ftp by executing the script :rolleyes:? Regards, Arun S (3 Replies)
Discussion started by: arunavlp
3 Replies

4. UNIX for Dummies Questions & Answers

ftp command to get latest file

Hi, I would like an FTP command or series of commands to get only the latest file. Is that possible? Thanks in advance. (2 Replies)
Discussion started by: laiko
2 Replies

5. Shell Programming and Scripting

Shell script for FTP a file from one server to another server

Hi Can any one help me for script. I need a script and this script has to execute daily to move the files. FTP from one server to another server EX: Sep 10 06:24 abc.txt Sep 11 06.56 abc.txt Sep 12 08.23 abc.txt these files are located at a/b/c/e/f in 123 server and copy... (0 Replies)
Discussion started by: mahantysk
0 Replies

6. Shell Programming and Scripting

How to get latest file via FTP session

Hello , My requirement is as follows: I want to connect to a remote FTP server using FTP and then get the latest file from server location can u pls share code snippet for this ? Regards, Suresh (4 Replies)
Discussion started by: sureshg_sampat
4 Replies

7. Shell Programming and Scripting

How to FTP the latest file, based on date, from a remote server through a shell script?

How to FTP the latest file, based on date, from a remote server through a shell script? I have four files to be FTP'ed from remote server. They are of the following format. build1_runtime_mmddyyyy.txt build2_runtime_mmddyyyy.txt build3_runtime_mmddyyyy.txt buifile_count_mmddyyyy.txt ... (9 Replies)
Discussion started by: imran_affu
9 Replies

8. Shell Programming and Scripting

Script to upload latest file to other server via FTP

Hello, I have a script that finds the latest version of a file in a folder on my Minecraft server. I'm trying to come up with something that will then FTP that file over to my fileserver. Here's what I have that finds the newest file: find /home/mc/archive/sbhouse -type f -mtime +45 -exec... (7 Replies)
Discussion started by: nbsparks
7 Replies

9. Shell Programming and Scripting

Download latest file via ftp server unix through shell script

Hello this is my first post in this forum , I dont want to be unhappy.. I am writing one script but facing difficulty to find the latest file with some new pattern My requirement is 1. The file is coming like "ABCD-23220140303" at FTP server once in a week. 2. script will run on daily... (3 Replies)
Discussion started by: ajju
3 Replies

10. Shell Programming and Scripting

Upload latest file to ftp

Hi, I want to create a script that parses the content of a file (on each line there is a filename with full path containing the latest fiels created on that day) and uploads every file to a ftp location. Any elegant way to do it ? (4 Replies)
Discussion started by: liviusbr
4 Replies
ATFTP(1)						      General Commands Manual							  ATFTP(1)

NAME
atftp - TFTP client (RFC1350). SYNOPSIS
atftp [options] [host [port]] DESCRIPTION
atftp can be used interactively or in batch mode to retrieve files from TFTP servers. When used interactively, a summary of the commands can be printed by typing 'help'. This TFTP client support all basic feature from RFC1350, RFC2347, RFC2348 and RFC2349. It also support multicast implementation of RFC2090 and mtftp as defined in the PXE specification. OPTIONS
This program supports both the usual GNU command line syntax, with long options starting with two dashes (`-') as well as short options. Some options are usable in batch mode only, they have no meaning when atftp is use interactively. A description of the options is included below. -g, --get Non interactive invocation only. Instruct atftp to get file. --mget Non interactive invocation only. Used to get file from a mtftp capable server. -p, --put Non interactive invocation only. Instruct atftp to put file. -l, --local-file Non interactive invocation only. The client side file name to read or write. Must be used in conjunction with --get or --put. -r, --remote-file Non interactive invocation only. The server side file name to get or put. Must be used in conjunction with --get or --put. --tftp-timeout <value> Number of seconds for timeout, client side. Default is 5 seconds. --option <"name value"> Set option "name" to "value". This command support exactly the same arguments as the interactive one. For example, use: --option blksize 1428 to configure block size. --mtftp <"name value"> Set mtftp possible options. Accept the same options as the interactive mtftp command. For example, use: --mtftp client-port 76 to configure client side port to use. --no-source-port-checking See atftpd's man page. --verbose Instruct atftp to be verbose. It will print more information about what's going on. --trace This is useful for debugging purpose to display all packet going to and from the network. -V, --version Print version. -h, --help Print a summary of command line arguments. AUTHOR
This manual page was written by Remi Lefebvre <remi@debian.org> and Jean-Pierre Lefebvre <helix@step.polymtl.ca>. December 27, 2000 ATFTP(1)
All times are GMT -4. The time now is 06:13 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy