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 > Need a help in unix Command

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-22-05, 07:01
arunprasadlv arunprasadlv is offline
Registered User
 
Join Date: Mar 2004
Location: India
Posts: 41
Exclamation Need a help in unix Command

Hi EveryBody,
I have to transfer a large amount of files to another server.
All the files start with the year 2003.
i tried connecting to the remote box and transfer the file using put command

put 200307??.* -------->But this is not working(may be taking long time.

IS there any other easy way to transfer the files to remote server.

20030728.2070501.IBILL.zip.gz
20030728.2070601.ICLL.zip.gz
20030728.2070701.ICLL.zip.gz
20030728.2070801.ICLL.zip.gz
Reply With Quote
  #2 (permalink)  
Old 01-23-05, 06:45
fla5do fla5do is offline
Registered User
 
Join Date: Oct 2003
Location: Germany
Posts: 138
Hi arunprasadlv,
make a tar-file first and then transfer only this file to the server.

tar cvf all2003.tar 200307??.* # create the file

tar xvf all2003.tar # extract the file on the server
__________________
Greetings from germany
Peter F.
Reply With Quote
  #3 (permalink)  
Old 01-23-05, 17:30
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,454
Code:
#!/bin/sh
ftp -i target.host.com <<!EOF
binary
mput 200307*
bye
!EOF
Reply With Quote
  #4 (permalink)  
Old 01-24-05, 07:25
borsotti borsotti is offline
Registered User
 
Join Date: Jan 2005
Posts: 7
tar cvf - 200307* | rsh <rmthost> -l <rmtlogin> "(cd <rmtpath>; tar xvf -)"

ps. must have .rhosts on <rmthost> for user <rmtuser> with your host entry "myhost myuser"

Marco
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