The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to print the date and time separately??? jisha Shell Programming and Scripting 8 01-16-2008 03:23 AM
unix sleep and date commands fanco UNIX for Dummies Questions & Answers 1 10-04-2007 10:18 AM
Lp Print commands ddameron UNIX for Dummies Questions & Answers 1 01-28-2004 02:05 PM
may be simple but i don't know -- Print current date from C program ls1429 High Level Programming 6 02-18-2002 10:50 PM
Need to print file names in a certain date range using ls Shamwari UNIX for Dummies Questions & Answers 2 10-08-2001 04:14 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 05-06-2008
Registered User
 

Join Date: Apr 2008
Posts: 40
Question 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 "--------------"
bye


here !date command is not working please any one tell me how to get date using ftp commands

Thanks in advacne

Krish.
Reply With Quote
Forum Sponsor
  #2  
Old 05-07-2008
era era is offline
Herder of Useless Cats
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,650
By "not working", do you mean you get an error message, or that it prints the wrong output? These look like you are actually using shell escapes to execute shell commands within your ftp script, but without information about which ftp client you are using, this is guesswork.
Reply With Quote
  #3  
Old 05-07-2008
Registered User
 

Join Date: Apr 2008
Posts: 40
Iam running these ftp commands using txt file
except date command eveything is working fine

I dont know to place date command in the script.

Do you have idea on this. Please suggest me how to use these commands
Reply With Quote
  #4  
Old 05-07-2008
era era is offline
Herder of Useless Cats
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,650
By "not working", do you mean you get an error message, or that it prints the wrong output? Or nothing at all?

Without information about which ftp client you are using, this is guesswork. Could you please tell what ftp client you are using?
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 12:22 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0