If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > moving files one location to another location in remote server

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-20-08, 19:30
smith43017 smith43017 is offline
Registered User
 
Join Date: Sep 2006
Posts: 92
moving files one location to another location in remote server

I have server A, ans Server B both are AIX servers. From B run script on where I have to move files one location to another location on same file system.

ssh svrunifidb.nfcu.net "mv $TDIR/* $BKDIR/*"


Does Anybosy had similiar problem
Reply With Quote
  #2 (permalink)  
Old 02-21-08, 01:53
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #3 (permalink)  
Old 02-21-08, 08:16
smith43017 smith43017 is offline
Registered User
 
Join Date: Sep 2006
Posts: 92
I am getting some help from you always. Thank you very much
Reply With Quote
  #4 (permalink)  
Old 02-21-08, 16:25
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,452
Code:
ssh svrunifidb.nfcu.net "find $TDIR -type f -exec '{}' $BKDIR \;"
should work
Reply With Quote
  #5 (permalink)  
Old 03-07-08, 22:53
xtremenw xtremenw is offline
Registered User
 
Join Date: Mar 2008
Location: Tacoma, WA
Posts: 11
I am going to assume that you have keys setup on the remote machine running the ssh command to svrunifidb.nfcu.net so you are not prompted for a password?
Reply With Quote
  #6 (permalink)  
Old 03-12-08, 15:52
smith43017 smith43017 is offline
Registered User
 
Join Date: Sep 2006
Posts: 92
Quote:
Originally Posted by xtremenw
I am going to assume that you have keys setup on the remote machine running the ssh command to svrunifidb.nfcu.net so you are not prompted for a password?

yes now itn't promiting it
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On