[TriLUG] Scripting & C++ question
Mark Freeze
mfreeze at gmail.com
Fri Nov 11 17:50:47 EST 2005
Hmmm ... good point. I don't think I'll ever have this situation,
but it's good to know. I am trying to convert all of my programs away
from VB and Visual FoxPro. One of the features in VB.Net that I am
trying to imitate is the FileSystemWatcher Component that will 'watch'
a certain directory and then take action when a file shows up.
My situation is that I want to monitor an incoming ftp directory and
process files as they complete the upload.
I have completed converting the program into c++ and now it seems that
I have knocked off how to get * named files into the program.
My next challenge, which was discussed a couple of months ago, but I
still don't have a good handle on, is how to monitor the directory for
the files and know that the ftp session had ended, indicating that all
of the files are uploaded. Some days we may have 1 file, but some
days we may have five 50mb files that need to be processed
individually and then concatenated before the next step is taken. I've
still got to figure out how to handle that one...
Have a good weekend,
Mark.
On 11/11/05, Kevin Otte <nivex at nivex.net> wrote:
> On Fri, Nov 11, 2005 at 04:51:31PM -0500, Mark Freeze wrote:
> > On 11/11/05, Ed Hill <ed at eh3.com> wrote:
> > > Try: "ls /home/mark/programs/cpp | xargs ./arg_test"
>
> Please bear in mind that there is an upper limit to the number of command
> line parameters. This is mitigated by xargs, but doing something like:
>
> ls *
>
> will cause the * to be expanded by the shell and hit this limit.
>
> For the full gory details see the relevant TriLUG discussion at:
> http://www.trilug.org/pipermail/trilug/Week-of-Mon-20051017/038048.html
>
> --
> Kevin Otte, N8VNR
> nivex at nivex.net
> http://www.nivex.net/
>
> -=-
>
> "Those who cannot remember the past are condemned to repeat it."
> -- George Santayana
>
> "It seems no one reads Santayana anymore."
> -- Cdr. Susan Ivanova, Babylon 5
>
> --
> 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/
>
More information about the TriLUG
mailing list