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 and shell scripting languages 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 06:23 AM
unix sleep and date commands fanco UNIX for Dummies Questions & Answers 1 10-04-2007 02:18 PM
Lp Print commands ddameron UNIX for Dummies Questions & Answers 1 01-28-2004 05:05 PM
may be simple but i don't know -- Print current date from C program ls1429 High Level Programming 6 02-19-2002 01:50 AM
Need to print file names in a certain date range using ls Shamwari UNIX for Dummies Questions & Answers 2 10-08-2001 08:14 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-07-2008
kittusri9 kittusri9 is offline
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.
  #2 (permalink)  
Old 05-07-2008
era era is offline Forum Advisor  
Herder of Useless Cats (On Sabbatical)
  
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,652
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.
  #3 (permalink)  
Old 05-07-2008
kittusri9 kittusri9 is offline
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
  #4 (permalink)  
Old 05-07-2008
era era is offline Forum Advisor  
Herder of Useless Cats (On Sabbatical)
  
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,652
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?
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:50 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0