06-27-2005
FTP - Get the file date and time on the remote server
Basically when trying to get a file from remote server, it will be a 'get' (pull). But I need to get the file with the date and timestamp which is on the remote server. So it is a pull from the remote server, but gets the file with current date and timestamp on it and not the date and timestamp on the remote server. I need to know how this can be achieved using shell script. Thanks
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Dear all,
I am trying to push a data file to a remote Server. I am taking date variable from the database.
The file I want to push looks like this in /tmp
hostname.export.beforedate.dmp.gz
for reading the date from the database i have a file get_date.sql which contains
select... (2 Replies)
Discussion started by: shivaraj
2 Replies
2. Shell Programming and Scripting
Hello,
I used the search engine but could not find the solution I am looking for. Probably its simple but I do not know the solution.
My requirement is I ftp files every day in the morning from the remote server to the local machine. Now if the files are not there at the time I schedule the ftp... (2 Replies)
Discussion started by: kiran_418
2 Replies
3. UNIX for Dummies Questions & Answers
I want to send some files in .gz format from my desktop to a remote server. What will be the procedure for that
thanks (5 Replies)
Discussion started by: supercops
5 Replies
4. UNIX for Dummies Questions & Answers
Hi,
i dont have remote m/c user credential. i only know remote m/c ip address. and i am able to ping that remote m/c.
In windows we use: "net time \\computername" to get the remote m/c time.
so how can i get remote m/c time in unix m/c? (means a unix command)
Thanks for the help.
... (9 Replies)
Discussion started by: partha_ori
9 Replies
5. Shell Programming and Scripting
Hi,
I need to copy few files from remote server to local server.
I write a shell script to connect to the remote server using ftp and go to that path. Now i need to copy those files in the remote directory to my local server with the timestamp of all those files shouldnt be changed.
... (5 Replies)
Discussion started by: arunkumarmc
5 Replies
6. Shell Programming and Scripting
Hi,
Can anyone please tell me whether we can pull the file from the remote server tru FTP, with the same date the file is available in remote server?
Thanks,
Punitha (1 Reply)
Discussion started by: puni
1 Replies
7. Shell Programming and Scripting
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
hi,
Im using the following code for FTP
#!/usr/bin/ksh
ftp -v -n "10.29.45.11" << cmd
user "mahesva" "mahesva123"
get rtl.tar
quit
cmd
Below is the log when i run the above code
**********************************
Connected to 10.29.45.11.
220 (vsFTPd 2.0.1)
530 Please login with USER... (20 Replies)
Discussion started by: dll_fpga
20 Replies
9. Shell Programming and Scripting
Hi,
I'm fairly new to Linux and need help with a script to ftp a .csv file to a remote server. I can ftp the .csv file manually from my server to the remote server in the "/" location.
When I execute the script I receive the following message Could not create file.
Here's what I have for... (5 Replies)
Discussion started by: Computergal2104
5 Replies
10. Shell Programming and Scripting
Hi All,
Please help.
I have requirement to read the file / folder based on the latest date and download the file and folder.
There will be files and folders in the location like
20140630-144422
20140630-144422.csv
20140707-182653
20140707-182653.csv
20140710-183153... (7 Replies)
Discussion started by: Praveen Pandit
7 Replies
LEARN ABOUT DEBIAN
nntpget
NNTPGET(1) General Commands Manual NNTPGET(1)
NAME
nntpget - get Usenet articles from a remote NNTP server
SYNOPSIS
nntpget [ -d dist ] [ -f file ] [ -n newsgroups ] [ -t timestring ] [ -o ] [ -u file ] [ -v ] host
DESCRIPTION
Nntpget connects to the NNTP server at the specified host and retrieves articles from it. The Message-ID's of the desired articles are read
from standard input. The articles are sent to standard output.
OPTIONS
-o The ``-o'' option may be used only if the command is executed on the host where the innd(8) server is running. If this option is
used, nntpget connects to the specified remote host to retrieve articles. Any article not present in the local history database is
then fetched from the remote site and offered to the local server.
-v If the ``-v'' option is used with the ``-o'' option then the Message-ID of each article will be sent to standard output as it is
processed.
-f The list of article Message-ID's is normally read from standard input. If the ``-f'' option is used, then a ``newnews'' command is
used to retrieve all articles newer then the modification date of the specified file.
-u The ``-u'' option is the same except that if the transfer succeeded, the file will be updated with a statistics line, modifying its
timestamp so that it can be used in later invocations.
-t If the ``-t'' option is used, then the specified timestring is used as the time and date parameter to the ``newnews'' command.
-n If either the ``-t'' or ``-f'' options are used, then the ``-n'' option may be used to specify a newsgroup list. The default is
``*''
-d The ``-d'' option may be used to specify a distribution list when using the ``-t'' or ``-f'' options. The default is no distribu-
tion list.
HISTORY
Written by Rich $alz <rsalz@uunet.uu.net> for InterNetNews. This is revision 1.10, dated 1996/10/29.
SEE ALSO
innd(8).
NNTPGET(1)