[TriLUG] Scripting & C++ question

Carolinux.com bobevans19 at gmail.com
Fri Nov 11 15:02:21 EST 2005


ls /dir/*.txt | yourCplusPlusProgram


On 11/11/05, Mark Freeze <mfreeze at gmail.com> wrote:
> I need help in writing the following script:
>  I have finished my file processing c++ program. (Many thanks to those of
> you who helped.) The program contains a for loop to process files listed as
> command line arguments. The program is working if I manually execute it as
> ./fileprog textfile1.txt textfile2.txt textfile3.txt, etc... What I want to
> do now is have cron run a script that will gather the names of the files in
> a particular directory and run the program. Can someone point me in the
> right direction or throw some examples my way?
>  Thanks,
> Mark.
> --
> 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/
>


--
Bob Evans                                  bobevans19 at gmail.com
http://www.carolinux.com           Bringing Linux to the Carolinas...

Phone :    (704)644-0072

There are 10 kinds of people in the world: those who understand
binary, and those who don't.



More information about the TriLUG mailing list