• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: ftp in terminal...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ftp in terminal...


  • Subject: Re: ftp in terminal...
  • From: Doug McNutt <email@hidden>
  • Date: Sat, 16 Apr 2005 16:34:50 -0600

At 23:24 +0200 4/16/05, Stefan Eriksson wrote:
>I´m making a scipt that in the end will copy a few files from the local disc to a remote ftp,

Get thee into curl.  man curl for all you want to know,  or <http://curl.haxx.se/>

Scripting through terminal.app will require an "in window xxx" part so that your state can be preserved between applescripted commands but it can be done.

<ftp://ftp.macnauchtan.com/Software/Progress/> is a public ftp directory which has some stuff I have been using to do ftp, using curl, via AppleEvents. The sources are there and may help in the sometimes obscure scripting traps with Terminal.app. It certainly shows how to set up Terminal.app so you can send sequential commands to a named window.

Using mount_ftp via Finder-connect-to-server or otherwise will not allow uploads even if you have a username and password. Perhaps in Tiger but I doubt it.

You might want to learn about $HOME/.netrc which is a file in which you can store usernames and passwords for ftp sites. curl will use it with the -n option and native ftp in UNIX will do it also though I don't know if Apple has mucked with that to favor the keychain.

--

--> Life begins at ovulation. Ladies should endeavor to get every young life fertilized. <--
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >ftp in terminal... (From: Stefan Eriksson <email@hidden>)

  • Prev by Date: ftp in terminal...
  • Next by Date: Re: ftp in terminal...
  • Previous by thread: ftp in terminal...
  • Next by thread: Re: ftp in terminal...
  • Index(es):
    • Date
    • Thread