image
image

Go Back   macosx.com > Mac Help Forums > Unix & X11

Reply
 
Thread Tools
  #1  
Old September 26th, 2002, 04:36 AM
Registered User
 
Join Date: Dec 2001
Location: se-sthlm
Posts: 138
Thanks: 0
Thanked 0 Times in 0 Posts
didde is on a distinguished road
Wink UNIX: Prove your skills?

Ok, I have a thought here..

I constantly download large folders containing a lot of files from work. Usually it's roughly around 1 - 2Gb worth of files.

The problem is that this process usually takes about 3 - 4 hours and during that time it is quite a pain to have to use an Ftp-program like CaptainFTP which takes up a lot of unnecessary GUI resources..

Wouldn't it be possible to use the Terminal's FTP and download in the background? I am no expert on UNIX, so I don't dare to put together a .sh for it, but maybe some brave soul out there has the guts?

It would really be of great use for me and no doubt several people out there would love to have the opportunity to download "silently" in a Terminal session which you then can release through the "&".

Someone up to the challenge?




//Dd.
Reply With Quote
  #2  
Old September 26th, 2002, 04:52 AM
usin UNIX since '92
 
Join Date: Oct 2000
Location: Barcelona, Catalonia - Spain
Posts: 249
Thanks: 0
Thanked 0 Times in 0 Posts
dani++ is on a distinguished road
Lightbulb

No big deal, really. =)


You could explore using the background downloading capabilities of the 'ncftp' included in MacOSX. Check out the manual pages or online help.


dani++
Reply With Quote
  #3  
Old September 26th, 2002, 09:01 AM
couzteau's Avatar
Registered User
 
Join Date: Nov 2001
Location: germany
Posts: 102
Thanks: 0
Thanked 0 Times in 0 Posts
couzteau is on a distinguished road
you can slo use curl to do commandline ftp
Reply With Quote
  #4  
Old September 26th, 2002, 11:34 PM
Registered User
 
Join Date: Jan 2002
Posts: 115
Thanks: 0
Thanked 0 Times in 0 Posts
bluehz is on a distinguished road
didde - a few more details ...

curl is probably your best bet. In the terminal - change directories to where you want the file downloaded:

cd /location/of/download/dir

then simply issue the curl cmd with the url of your download - like such:

curl -O http://file/to/download

covers ftp, http, etc - not limited to http.

Other options you might investigate...

sftp - secure (encrytped) ftp
rsync - for syncing again your dir/files at work
Reply With Quote
  #5  
Old September 27th, 2002, 01:46 AM
scruffy's Avatar
Notorious Olive Counter
 
Join Date: Dec 2000
Location: Soviet Canuckistan
Posts: 1,726
Thanks: 0
Thanked 0 Times in 0 Posts
scruffy is on a distinguished road
one nice benefit of sftp over others is that if you have a slowish connection (like, not in the same building type slow), then you can use the flag -z to turn on compression of the connection. It won't do you much good if the files you're downloading are already compressed, of course, but if it's uncompressed data, it might speed things up a lot...
__________________

What is the robbing of a bank compared to the founding of a bank?
-- Bertold Brecht
Reply With Quote
Reply

Thread Tools

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 Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Defrag in OS X? TwistedMojo Mac OS X System & Mac Software 49 December 13th, 2002 04:14 PM
Thoughts on OS-X/UNIX/and MacOS devnul Apple News, Rumors & Discussion 110 September 17th, 2002 06:34 PM
is osx a true unix system Click Mac OS X System & Mac Software 115 May 6th, 2002 02:43 AM


All times are GMT -5. The time now is 03:57 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.