Re: Off-Topic: Automatic FTP scripts for OSX

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 51263
interpreted = N
texte = Why is it not an option .. I don=B9t understand your reasoning ..Anyway -=20 The way to do this is with a shell script and cron job that hits it every 1= 5 minutes .. On the OSX machine install NCFTP - there are versions of this on the net as a package installer.As far as the script to run, I have an Apache log rolling acript that prett= y much does most of what you need, let me know if you want me to fire it across off list.Alain > if this were an option I would have done this already, believe me. >=20 >=20 >=20 >> Ummm .. >>=20 >> Set the email preferences on the OSX machine to the domain name of the l= inux >> box and the Emailer thread will do this for you .. With a bunch less wor= k. >>=20 >> Alain >>=20 >>> I want to FTP files to a specific folder on another server whenever I >>> drop a new file into a certain folder on a MacOSX computer. I also >>> need a couple of other features to go along with this: >>>=20 >>> WebDNA is on OSX and my mail server is CGP on Linux. I need my >>> sendmail files transferred directly from the OSX box to the Linux box >>> via FTP so CGP can send them. >>>=20 >>> My goal is to transfer these files automatically via FTP, so I would >>> like a script that: >>>=20 >>> 1- Checks the OSX 'EmailFolder' for new files every second or two. >>>=20 >>> 2- FTP the new files in this folder to the CGP 'Submitted' folder on L= inux. >>>=20 >>> 3- Move each OSX file out of the 'EmailFolder' and into a 'Success' >>> or a 'Failure' folder depending upon the result of the attempted file >>> transfer. >>>=20 >>> 4- Every 15 minutes or so, check for files in the 'Failure' folder >>> and email me if there are any files in this folder. >>>=20 >>>=20 >>> Is this the kind of thing that can be scripted easily on OSX? Does >>> anyone know how to do this? Can anyone suggest an online resource >>> for learning more about how to script tasks like these on OSX? >>>=20 >>> Thanks. >>=20 >>=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/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Off-Topic: Automatic FTP scripts for OSX (Kenneth Grome 2003)
  2. Re: Off-Topic: Automatic FTP scripts for OSX (Alain Russell 2003)
  3. Re: Off-Topic: Automatic FTP scripts for OSX (Kenneth Grome 2003)
  4. Re: Off-Topic: Automatic FTP scripts for OSX (Alain Russell 2003)
  5. Off-Topic: Automatic FTP scripts for OSX (Kenneth Grome 2003)
Why is it not an option .. I don=B9t understand your reasoning ..Anyway -=20 The way to do this is with a shell script and cron job that hits it every 1= 5 minutes .. On the OSX machine install NCFTP - there are versions of this on the net as a package installer.As far as the script to run, I have an Apache log rolling acript that prett= y much does most of what you need, let me know if you want me to fire it across off list.Alain > if this were an option I would have done this already, believe me. >=20 >=20 >=20 >> Ummm .. >>=20 >> Set the email preferences on the OSX machine to the domain name of the l= inux >> box and the Emailer thread will do this for you .. With a bunch less wor= k. >>=20 >> Alain >>=20 >>> I want to FTP files to a specific folder on another server whenever I >>> drop a new file into a certain folder on a MacOSX computer. I also >>> need a couple of other features to go along with this: >>>=20 >>> WebDNA is on OSX and my mail server is CGP on Linux. I need my >>> sendmail files transferred directly from the OSX box to the Linux box >>> via FTP so CGP can send them. >>>=20 >>> My goal is to transfer these files automatically via FTP, so I would >>> like a script that: >>>=20 >>> 1- Checks the OSX 'EmailFolder' for new files every second or two. >>>=20 >>> 2- FTP the new files in this folder to the CGP 'Submitted' folder on L= inux. >>>=20 >>> 3- Move each OSX file out of the 'EmailFolder' and into a 'Success' >>> or a 'Failure' folder depending upon the result of the attempted file >>> transfer. >>>=20 >>> 4- Every 15 minutes or so, check for files in the 'Failure' folder >>> and email me if there are any files in this folder. >>>=20 >>>=20 >>> Is this the kind of thing that can be scripted easily on OSX? Does >>> anyone know how to do this? Can anyone suggest an online resource >>> for learning more about how to script tasks like these on OSX? >>>=20 >>> Thanks. >>=20 >>=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/ Alain Russell

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:

Multiple catalog databases and showcart (1997) Dates as 20020902 (2002) Webcatalog and foreign languages (1998) Which GUI HTML editors work with WC ? (1997) RE: Can't get appendfile to work (1997) Webmerchant confirmation hooks? (1997) question: webdelivery folder and file (1997) WebDNA 6 (2004) [WebDNA] Microsoft Server 2008 installation.... so close (2011) Not really WebCat (1997) Bug Report, maybe (1997) WebDNA Solutions ... sorry! (1997) Using Plug-In while running 1.6.1 (1997) Banners (1997) Field Problem (2000) Fun with Dates - finally resolved but.... (1997) Emailer (1997) LOOP and IF statements (1997) 256 character limit in URL? Kinda urgent... (2004) Shopping Cart Deletion (2000)