Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

ftp script

Posted on 2008-06-26
4
Medium Priority
?
344 Views
Last Modified: 2013-12-16
Hi,

I'm trying to make an ftp URL to connect to a ftp server using the ftp command on Mac OS.
The username I have is like this :
blablabla@blibli.com

So the command to connect is this one
blablabla@blibli.com:password@server.com

I'm can't get ftp to connect to the server in one command since it always assumes I want to connect to "@blibli.com" when I want to connect to "server.com"...

Anyone has an idea ?

Cheers

Terence
0
Comment
Question by:terencepires
  • 2
  • 2
4 Comments
 
LVL 10

Expert Comment

by:laneduncan
ID: 21874576
You might consider using a shell script, something like what is described on this site:
http://www.bradrice.com/wposx/archives/57

0
 
LVL 1

Author Comment

by:terencepires
ID: 21874632
isn't there a syntax type that could allow usernames with an @ ?
0
 
LVL 10

Accepted Solution

by:
laneduncan earned 2000 total points
ID: 21875126
Not that I'm aware of, from the command line, that is.
I do believe that curl will allow you to do this, however, with the -u switch.  I'd recommend giving it a shot:
http://curl.netmirror.org/
0
 
LVL 1

Author Closing Comment

by:terencepires
ID: 31470952
thanks for your advice, i'll give it a shot !

Cheers

Terence
0

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses
Course of the Month11 days, 13 hours left to enroll

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question