How to view date during FTP


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How to view date during FTP
# 1  
Old 06-24-2009
How to view date during FTP

date command does not work during FTP. how can we view the system or server date during FTP.
# 2  
Old 06-24-2009
inside ftp program:
Code:
ftp> ! date
Wed Jun 24 07:27:23 MDT 2009
ftp>

# 3  
Old 06-24-2009
jim mcnamara's post shows the date on the local server. If you need the date from the remote server you need to create a file and issue "dir" on that file.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. What is on Your Mind?

Moving from Desktop View to Mobile View

See attached video for a demo on how to move back and forth from the desktop view to the mobile view. Currently this only works for the home page, but I will work on some new PHP code in the future to make this work with the page we are currently on. Edit: The issue with making every page ... (2 Replies)
Discussion started by: Neo
2 Replies

2. Shell Programming and Scripting

Ftp script with date

Hi I have the following script that should run every day: #!/bin/sh HOST=192.168.6.47 USER=user123 PASSWD=xyz123L /usr/bin/ftp -inv <<EOF open $HOST user $USER $PASSWD binary cd /home/user123/scripts/loadDadosAppWeb/relatorios/25 mput *2017-06-23* bye EOF Bu everyday I have to... (7 Replies)
Discussion started by: fretagi
7 Replies

3. Shell Programming and Scripting

Need to view command in history for specific date

hi i want to find a command in history for specific date . is it possible that i can view ?? (1 Reply)
Discussion started by: scriptor
1 Replies

4. Shell Programming and Scripting

Ftp files with date

Hi, i need to put files with current date at end from one server to another. i.e. all the output files from below comand. ls -ltr `date '+monthly_stats.sh%y%m%d'` am using mput `date '+monthly_stats.sh%y%m%d'` but no files are transfered Connected to gbdsnh18.hartfordlife.com. 220... (5 Replies)
Discussion started by: Simanto
5 Replies

5. Shell Programming and Scripting

How to view files from a specific date/day

I wan to view files in a directory of a specific date. For example a log directory has log files . I want to view the list of the files which were generated on 01-May-2011. Is there any option/proces to perform it?? (1 Reply)
Discussion started by: mady135
1 Replies

6. UNIX for Dummies Questions & Answers

view gzipped files with name file.gz.$DATE on a Solaris box (without unzipping first)

Hi Howto view gzipped files with name file.gz.$DATE on a Solaris box (without unzipping first) $ ls -lrt total 4477 -rwxrwxr-x 1 oracle dba 569745 Apr 4 19:45 4_person2profileCon.txt.gz.04.04.11* -rwxrwxr-x 1 oracle dba 3783 Apr 4 19:45... (4 Replies)
Discussion started by: slashdotweenie
4 Replies

7. Shell Programming and Scripting

how to print date using ftp commands

Hi friends sftpCmd.txt ----------------- !echo "Getting files from sftp" !echo "----------------" cd /home/msgGoogle/PLATFORM/PROD/MIMUS/outbound/ARCHIVE/invsnap !echo "folder created" !date mget ???050108*.txt output !echo "------------------" !echo "Completed : " !echo... (3 Replies)
Discussion started by: kittusri9
3 Replies

8. Shell Programming and Scripting

How to FTP fiels according to generated date

Hi, I need to get some files from a server via ftp. normaly I use following scrip, it is worrking fine. cd dir_name ftp -v -n "10.76.170.17" << cmd user "rbi" "rbi" cd recordreceive prompt... (0 Replies)
Discussion started by: maheshsri
0 Replies

9. Shell Programming and Scripting

script to view files based on date

I have a UNIX box where in files are created every 5 minutes. I need to write a shell script which will take in the date as parameter and return me all files created on that day. Also I will like it to show me only files which have a size greater than 0 i.e. non-empty files. how do I go abt this? I... (6 Replies)
Discussion started by: krahuliyer
6 Replies

10. UNIX for Dummies Questions & Answers

ftp by date filter

i would be grateful if someone could supply me with a shell script which performed a ftp but only retrieved files which had a created date greater than a specific date - is this possible with ftp? many thanks mc (1 Reply)
Discussion started by: campbem
1 Replies
Login or Register to Ask a Question