I know that VB.net has a component called 'FileSystemWatcher' that watches a directory for changes and allows you to take actions based on that event. Is there anything like this in Linux or would you have to script it out for a certain directory and have cron run it over and over? Also, if you used a script with cron, how would you make sure that the file had fully downloaded to your site? I know one time I pulled a file from my ftp server that was in the middle of downloading.
On Fri, 25 Feb 2005 15:21:53 -0500, Ben Pitzer <[EMAIL PROTECTED]> wrote: > Mark, > > This is the classic problem with text documents between Windows and > *nix. Just run all files through unix2dos to pull them into any > Windows application, and you'll be all good. As for making it > non-interactive....not sure. But good luck. > > -Ben Pitzer > > > On Fri, 25 Feb 2005 15:08:50 -0500, Mark Freeze <[EMAIL PROTECTED]> wrote: > > I have a customer that sends files to my ftp site (currently on a > > Windows Server box) from his Mac platform. The files are nothing > > special, just delimited text files. However they can be very large. > > (i.e. 100,000 records or 75MB) The problem is this: When I switched > > the ftp server to my Linux box, my Windows conversion programs no > > longer worked. After much looking, I found the reason was that the > > files sent from the Mac had each line in the data termintated with a > > hex '0A'. When placed on the windows box the file magically converted > > itself somehow to have a '0D' '0A', asc(13) asc(10), or cr/lf pair > > terminating each line. So, to make my long story short, when I > > download files from my Windows box, my VB programs can use them, but > > when I download them from my Linux server my programs crash. (Because > > of the missing '0D' - VB wants to have a line terminated by a cr/lf > > to use the LINE INPUT command.) What do you think would be the > > easiest, and most importantly *non-interactive* way to handle this > > problem? > > > > Thanks in advance for any help. > > > > Regards, > > Mark. > > > > ------ > > "I told them I'd ridden shooting stars and said I'd show them how..." --Ozzy > > -- > > TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug > > TriLUG Organizational FAQ : http://trilug.org/faq/ > > TriLUG Member Services FAQ : http://members.trilug.org/services_faq/ > > TriLUG PGP Keyring : http://trilug.org/~chrish/trilug.asc > > > -- > TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug > TriLUG Organizational FAQ : http://trilug.org/faq/ > TriLUG Member Services FAQ : http://members.trilug.org/services_faq/ > TriLUG PGP Keyring : http://trilug.org/~chrish/trilug.asc > -- Mark A. Freeze 7301 Brookmont Drive, Apt 306 Raleigh, NC 27613 Phn: 919.845.4622 Cell: 919.946.1796 [EMAIL PROTECTED] -- TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug TriLUG Organizational FAQ : http://trilug.org/faq/ TriLUG Member Services FAQ : http://members.trilug.org/services_faq/ TriLUG PGP Keyring : http://trilug.org/~chrish/trilug.asc
