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:

Search Questions (2000) WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997) setting values (1998) Browser Back button (2003) multi-paragraph fields (1997) 4.0 send email ticks. . (2000) writefile and texte (1997) TCPConnect / Current Temperature (2004) writing cart to db (1998) Q: for those who use Cookies for sessions? (2004) HEADER AND FOOTER (1997) WildWEBCAT98 Voting is OPEN! (1999) can you use [middle] in a search? (2001) problems with WebCat-Plugin (1997) Firesite cache vs webcat cache (1997) Date range (2006) OT - Mail Solution (2002) Scoping rules in WebDNA 4.0 (2000) # fields limited? (1997) Execute Applescript (1997)