Re: Off-Topic: Automatic FTP scripts for OSX

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 51264
interpreted = N
texte = Thanks for the offer of a script, yes I would like to see it!The reason why emailer is not an option is because a client insists that email messages be sent with From field values that do *not* include the host name, and the only way to do this is (as far as I know) is to drop the files directly into the CGP 'Submitted' folder instead of mailing them over to that server.Anyways, my gut feeling is that FTPing files to the CGP server is going to be faster and less processor intensive than mailing them over ... :)>Why is it not an option .. I don't understand your reasoning .. > >Anyway - >The way to do this is with a shell script and cron job that hits it every 15 >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 pretty >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. >> >> >> >>> Ummm .. >>> >>> Set the email preferences on the OSX machine to the domain name >>>of the linux >>> box and the Emailer thread will do this for you .. With a bunch less work. >>> >>> Alain >>> >>>> 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: >>>> >>>> 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. >>>> >>>> My goal is to transfer these files automatically via FTP, so I would >>>> like a script that: >>>> >>>> 1- Checks the OSX 'EmailFolder' for new files every second or two. >>>> >>>> 2- FTP the new files in this folder to the CGP 'Submitted' >>>>folder on Linux. >>>> >>>> 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. >>>> >>>> 4- Every 15 minutes or so, check for files in the 'Failure' folder >>>> and email me if there are any files in this folder. >>>> >>>> >>>> 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? >>>> >>>> Thanks. >>> >>> >>> >>> ------------------------------------------------------------- >>> 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/ -- Sincerely, Kenneth Grome ------------------------------------------------------------- Outsource your WebDNA programming for $18 an hour or less! -------------------------------------------------------------------------------------------------------------------------- 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)
Thanks for the offer of a script, yes I would like to see it!The reason why emailer is not an option is because a client insists that email messages be sent with From field values that do *not* include the host name, and the only way to do this is (as far as I know) is to drop the files directly into the CGP 'Submitted' folder instead of mailing them over to that server.Anyways, my gut feeling is that FTPing files to the CGP server is going to be faster and less processor intensive than mailing them over ... :)>Why is it not an option .. I don't understand your reasoning .. > >Anyway - >The way to do this is with a shell script and cron job that hits it every 15 >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 pretty >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. >> >> >> >>> Ummm .. >>> >>> Set the email preferences on the OSX machine to the domain name >>>of the linux >>> box and the Emailer thread will do this for you .. With a bunch less work. >>> >>> Alain >>> >>>> 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: >>>> >>>> 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. >>>> >>>> My goal is to transfer these files automatically via FTP, so I would >>>> like a script that: >>>> >>>> 1- Checks the OSX 'EmailFolder' for new files every second or two. >>>> >>>> 2- FTP the new files in this folder to the CGP 'Submitted' >>>>folder on Linux. >>>> >>>> 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. >>>> >>>> 4- Every 15 minutes or so, check for files in the 'Failure' folder >>>> and email me if there are any files in this folder. >>>> >>>> >>>> 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? >>>> >>>> Thanks. >>> >>> >>> >>> ------------------------------------------------------------- >>> 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/ -- Sincerely, Kenneth Grome ------------------------------------------------------------- Outsource your WebDNA programming for $18 an hour or less! -------------------------------------------------------------------------------------------------------------------------- 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/ Kenneth Grome

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:

WebCatalog for guestbook ? (1997) [Sum] function? (1997) passwords not working (2000) listfields for a table (2007) WebDNA and SQL (2003) HTML Editors (1997) [WebDNA] WebDNA slow processing - conclusion (2011) convert characters (2003) Can a database get stomped by simultaneous access? (1997) problems with 2 tags shakur (1997) Layers,Dreamweaver and WebCat Code (2000) RE: Fishing: anyone on this group willing to do support? (1998) RE: Signal Raised (1997) Re:Emailer Set Up (1997) [WebDNA] Debian / WebDNA 7 / lighttpd configuration, FastCGI and Email (2012) [addlineitems] (1997) Deleting Multiple Database Records based on Checkbox (1998) Talk list archives down? (2003) Alais Shopping Cart Directory (1998) Site Builder & IE Mac (2004)