Posted on 11-21-2012 03:27 AM
Hi All,
I am not able to find a command which can extract a .dmg from a FTP site. Like i Extract .dmg from a HTTP site.
For HTTP Example...
app-04:~ root# hdiutil mount http://archive.mozilla.org/pub/mozilla.org/firefox/releases/4.0.1/mac/en-US/Firefox%204.0.1.dmg
Above example works for me..
I have some .dmg from the FTP Site.I need a command which can work like above command.
Kindly help.
Regards,
Sonu W
Solved! Go to Solution.
Posted on 11-21-2012 04:41 AM
it works. dmg file goes to your home folder (/Users/yourusername/Firefox 4.0.1.dmg
try this:
/usr/bin/ftp -i ftp://archive.mozilla.org/pub/mozilla.org/firefox/releases/4.0.1/mac/en-US/Firefox%204.0.1.dmg
Connected to ftp.dynect.mozilla.net.
220-
220- ftp.mozilla.org / archive.mozilla.org - files are in /pub/mozilla.org
220-
220- Notice: This server is the only place to obtain nightly builds and needs to
220- remain available to developers and testers. High bandwidth servers that
220- contain the public release files are available at ftp://releases.mozilla.org/
220- If you need to link to a public release, please link to the release server,
220- not here. Thanks!
220-
220- Attempts to download high traffic release files from this server will get a
220- "550 Permission denied." response.
220
331 Please specify the password.
230-
230- ftp.mozilla.org / archive.mozilla.org - files are in /pub/mozilla.org
230-
230- Notice: This server is the only place to obtain nightly builds and needs to
230- remain available to developers and testers. High bandwidth servers that
230- contain the public release files are available at ftp://releases.mozilla.org/
230- If you need to link to a public release, please link to the release server,
230- not here. Thanks!
230-
230- Attempts to download high traffic release files from this server will get a
230- "550 Permission denied." response.
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
200 Switching to Binary mode.
250 Directory successfully changed.
250 Directory successfully changed.
250 Directory successfully changed.
250 Directory successfully changed.
250 Directory successfully changed.
250 Directory successfully changed.
250 Directory successfully changed.
local: Firefox 4.0.1.dmg remote: Firefox 4.0.1.dmg
229 Extended Passive Mode Entered (|||52392|)
150 Opening BINARY mode data connection for Firefox 4.0.1.dmg (28121108 bytes).
100% |*| 27462 KiB 1.58 MiB/s 00:00 ETA
226 Transfer complete.
28121108 bytes received in 00:16 (1.58 MiB/s)
221 Goodbye.
Posted on 11-21-2012 03:46 AM
try something like this
##Grab file from FTP
/usr/bin/ftp -i ftp://username:password@serveraddress <<ENDOFCOMMANDS
get /path/to/dmgfile
quit
ENDOFCOMMANDS
Posted on 11-21-2012 04:32 AM
@Cem Thanks for the Respond...
I tried with the FTP Site for Example:- ftp://archive.mozilla.org/pub/mozilla.org/firefox/releases/4.0.1/mac/en-US/Firefox%204.0.1.dmg
Which does not have username:password.
I tried using above command given by you, but it seems it is not working for me. May be i am using it wrongly.
I need to extract .dmg (ftp://archive.mozilla.org/pub/mozilla.org/firefox/releases/4.0.1/mac/en-US/Firefox%204.0.1.dmg) Is it possible using command given by you?
Regards,
SonuW
Posted on 11-21-2012 04:41 AM
it works. dmg file goes to your home folder (/Users/yourusername/Firefox 4.0.1.dmg
try this:
/usr/bin/ftp -i ftp://archive.mozilla.org/pub/mozilla.org/firefox/releases/4.0.1/mac/en-US/Firefox%204.0.1.dmg
Connected to ftp.dynect.mozilla.net.
220-
220- ftp.mozilla.org / archive.mozilla.org - files are in /pub/mozilla.org
220-
220- Notice: This server is the only place to obtain nightly builds and needs to
220- remain available to developers and testers. High bandwidth servers that
220- contain the public release files are available at ftp://releases.mozilla.org/
220- If you need to link to a public release, please link to the release server,
220- not here. Thanks!
220-
220- Attempts to download high traffic release files from this server will get a
220- "550 Permission denied." response.
220
331 Please specify the password.
230-
230- ftp.mozilla.org / archive.mozilla.org - files are in /pub/mozilla.org
230-
230- Notice: This server is the only place to obtain nightly builds and needs to
230- remain available to developers and testers. High bandwidth servers that
230- contain the public release files are available at ftp://releases.mozilla.org/
230- If you need to link to a public release, please link to the release server,
230- not here. Thanks!
230-
230- Attempts to download high traffic release files from this server will get a
230- "550 Permission denied." response.
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
200 Switching to Binary mode.
250 Directory successfully changed.
250 Directory successfully changed.
250 Directory successfully changed.
250 Directory successfully changed.
250 Directory successfully changed.
250 Directory successfully changed.
250 Directory successfully changed.
local: Firefox 4.0.1.dmg remote: Firefox 4.0.1.dmg
229 Extended Passive Mode Entered (|||52392|)
150 Opening BINARY mode data connection for Firefox 4.0.1.dmg (28121108 bytes).
100% |*| 27462 KiB 1.58 MiB/s 00:00 ETA
226 Transfer complete.
28121108 bytes received in 00:16 (1.58 MiB/s)
221 Goodbye.
Posted on 11-21-2012 06:09 AM
@Cem,
Its working for me. Thanks for the help.
Regards,
SonuW