Re: Automated FTP from Shell

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 60249
interpreted = N
texte = sure, if nothing else your shell script could >> write a new file = containing the results of your ls or dir or whatever list you create ... = -----Original Message----- From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com]On Behalf Of Steve Craig Sent: Tuesday, November 30, 2004 5:24 AM To: WebDNA Talk Subject: Re: Automated FTP from Shell Hi Is there a way to get a list of files on the remote server using ftp in [shell]? I know in the terminal I would use dir once I had logged in, I was just wondering if their is a single line way of logging in and returning the list. Sorry if this is easy, I just don't use the Shell that much. Cheers =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Steve Craig - Asylum Interactive Ltd Tel +44 1224 642960 Fax +44 1224 642962 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D http://www.asylumweb.com Email: steve@asylumweb.com =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > From: "Kaiwi, Marc" > Reply-To: WebDNA Talk > Date: Mon, 29 Nov 2004 14:41:15 -0800 > To: WebDNA Talk > Subject: Re: Automated FTP from Shell >=20 > hahaha, I'm kind of kooky about getting things to work ... simple ftp = command > seems to work fine. >=20 > You had it right Larry with the -u option, all you needed was the = trailing > slash in the URL. Sales Pitch: "The one line solution with no optional > software" ... >=20 > ftp -u ftp://username:passowrd@host/ file-to-put.txt >=20 > I'm a nut that way ... : c) >=20 > MK >=20 > -----Original Message----- > From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com]On Behalf Of > Joe D'Andrea > Sent: Monday, November 29, 2004 1:07 PM > To: WebDNA Talk > Subject: Re: Automated FTP from Shell >=20 >=20 > At 10:29 AM -0800 11/29/04, Larry Hewitt wrote: >> Has anyone built an automated FTP session to upload a file to a = remote FTP >> server using SHELL and OSX's UNIX ftp program? >=20 > I had done a search a while ago and found an FTP upload apple script. = I > modified it for my particular use and saved it in the Folder Actions = folder. > The client's application requires them to upload photos to the = webserver. I > attached the script to a particular folder and now whenever any file = is > dropped in the folder it is immediately uploaded to the server. A = trigger > based WebDNA script does a [listfiles...] on the server folder from = time to > time and posts the photos to user profiles. >=20 > ~joe >=20 >=20 > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://webdna.smithmicro.com/ >=20 > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://webdna.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to = Web Archive of this list is at: http://webdna.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Automated FTP from Shell ( "Kaiwi, Marc" 2004)
  2. Re: Automated FTP from Shell ( "Nitai @ ComputerOil" 2004)
  3. Re: Automated FTP from Shell ( Steve Craig 2004)
  4. Re: Automated FTP from Shell ( Happy Christmas from Phil! 2004)
  5. Re: Automated FTP from Shell - Update ( "Nitai @ ComputerOil" 2004)
  6. Re: Automated FTP from Shell - Update ( John Peacock 2004)
  7. Re: Automated FTP from Shell - Update ( "Nitai @ ComputerOil" 2004)
  8. Re: Automated FTP from Shell - Update ( Bob Minor 2004)
  9. Re: Automated FTP from Shell - Update ( "Kaiwi, Marc" 2004)
  10. Re: Automated FTP from Shell ( "Kaiwi, Marc" 2004)
  11. Re: Automated FTP from Shell - Update ( "Nitai @ ComputerOil" 2004)
  12. Re: Automated FTP from Shell ( Joe D'Andrea 2004)
  13. Re: Automated FTP from Shell - Update ( "Kaiwi, Marc" 2004)
  14. Automated FTP from Shell - Update ( Larry Hewitt 2004)
  15. Re: Automated FTP from Shell ( Larry Hewitt 2004)
  16. Re: Automated FTP from Shell ( "Nitai @ ComputerOil" 2004)
  17. Re: Automated FTP from Shell ( "Kaiwi, Marc" 2004)
  18. Re: Automated FTP from Shell ( Aaron Lynch 2004)
  19. Re: Automated FTP from Shell ( Jesse Proudman 2004)
  20. Automated FTP from Shell ( Larry Hewitt 2004)
sure, if nothing else your shell script could >> write a new file = containing the results of your ls or dir or whatever list you create ... = -----Original Message----- From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com]On Behalf Of Steve Craig Sent: Tuesday, November 30, 2004 5:24 AM To: WebDNA Talk Subject: Re: Automated FTP from Shell Hi Is there a way to get a list of files on the remote server using ftp in [shell]? I know in the terminal I would use dir once I had logged in, I was just wondering if their is a single line way of logging in and returning the list. Sorry if this is easy, I just don't use the Shell that much. Cheers =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Steve Craig - Asylum Interactive Ltd Tel +44 1224 642960 Fax +44 1224 642962 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D http://www.asylumweb.com Email: steve@asylumweb.com =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > From: "Kaiwi, Marc" > Reply-To: WebDNA Talk > Date: Mon, 29 Nov 2004 14:41:15 -0800 > To: WebDNA Talk > Subject: Re: Automated FTP from Shell >=20 > hahaha, I'm kind of kooky about getting things to work ... simple ftp = command > seems to work fine. >=20 > You had it right Larry with the -u option, all you needed was the = trailing > slash in the URL. Sales Pitch: "The one line solution with no optional > software" ... >=20 > ftp -u ftp://username:passowrd@host/ file-to-put.txt >=20 > I'm a nut that way ... : c) >=20 > MK >=20 > -----Original Message----- > From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com]On Behalf Of > Joe D'Andrea > Sent: Monday, November 29, 2004 1:07 PM > To: WebDNA Talk > Subject: Re: Automated FTP from Shell >=20 >=20 > At 10:29 AM -0800 11/29/04, Larry Hewitt wrote: >> Has anyone built an automated FTP session to upload a file to a = remote FTP >> server using SHELL and OSX's UNIX ftp program? >=20 > I had done a search a while ago and found an FTP upload apple script. = I > modified it for my particular use and saved it in the Folder Actions = folder. > The client's application requires them to upload photos to the = webserver. I > attached the script to a particular folder and now whenever any file = is > dropped in the folder it is immediately uploaded to the server. A = trigger > based WebDNA script does a [listfiles...] on the server folder from = time to > time and posts the photos to user profiles. >=20 > ~joe >=20 >=20 > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://webdna.smithmicro.com/ >=20 > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://webdna.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to = Web Archive of this list is at: http://webdna.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ "Kaiwi, Marc"

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Creating main- and sub-category search (1997) RE: Need Help (1998) Searching multiple fields (1997) Re:[ShowIf] and empty fields (1997) Ok here is a question? (1997) redirect with frames (1997) WebCatalog Upgrade Pricing? (1997) suffix mapping for NT? (1997) help with duplicate records posted (1998) Problem displaying search result (1997) WebDNA 5.1 is now available! (2003) Assigning new CART number (1997) [WebDNA] [OT] WebDNA Wiki - need grammar check / suggestions (2009) Getting Emailer to send mail (1997) Just Testing (1997) changing creator codes (2000) Multi-processor Mac info ... (1997) listfiles sort?! (2005) WebCat2b12 forgets serial # (1997) WebMerchant and PCAuthorize (1998)