Time stamp the local file name in the sendln scp command
Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Time stamp the local file name in the sendln scp command
PostPosted: Wed Dec 02, 2009 2:40 am 
Offline
Newbie

Joined: Mon Sep 14, 2009 11:58 pm
Posts: 15
I like to time stamp the local file name in the sendln scp command.

sendln "scp root@10.16.1.48:/opt/air/file-name-1 local-file-name$date.tgz"

How do I do that ?


Thx
ATM


Top
 Profile E-mail  
 
 Post subject: Re: Time stamp the local file name in the sendln scp command
PostPosted: Wed Dec 02, 2009 7:43 am 
Offline
Guru

Joined: Wed Jan 25, 2006 7:28 pm
Posts: 532
Location: Denver, Colorado, USA
Build a string in a variable by using sprintf2, then do a sendln on that variable.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group