C Question now ....

Ben Duncan bns
Mon May 17 11:48:12 PDT 2004


Ok, now for my question of the day.
After 18 years in UNIX and 8 in linux, started getting serious on
developing my C skills. Most of revolves around Appgen stuff.

Anyway, I wrote a C program to tell me what kind of application an
Appgen program is.  Program is called typeprog. To wit:

typeprog PDEF.OE07000

returns:

"Program PDEF.OE070000 is a Maint and uses OE-INVCE file."

Now, I would like to xpand that to use something like

"typeprog `ls PDEF.IV*`  "  or      " ls PDEF.IV | typeprog"

as well.

Now, I know argv[1] gives me the program name, but how do I go about
xpanding that to use the latter style as well as the first and determine which
  I have incoming and to walk the list given by the latter?


I know I will probably have to put a while loop in it, but as for the
rest, I am lost ...

-- 
Ben Duncan   Phone (601)-355-2574     Fax (601)-355-2573   Cell (601)-946-1220
                         Business Network Solutions
                      336 Elton Road  Jackson MS, 39212
    "Software is like Sex, it is better when it's free" - Linus Torvalds



More information about the Linux-users mailing list