[wellylug] Programming Question

Jethro Carr dodocaptain at paradise.net.nz
Sat Nov 29 18:02:55 NZDT 2003


On Sat, 2003-11-29 at 13:39, Stephen Judd wrote:
> On Sat, 2003-11-29 at 12:13, Jonny Robertson wrote:
> > At that point, look at man exec() again, or snprintf() the string you 
> > want to execute into an appropriate buffer, and call system(buf);
> 
> You might also consider whether open() with the O_CREAT flag is what you
> want. (man 2 open for details).

Thanks, I'll try it out
> 
> Can I recommend the Wrox book Beginning Linux Programming?, by Stones
> and Matthew? Lots of good info on basic C programming for Linux.

I'll have a look at it, thanks.

> 
> It also sounds as though what you are trying to do might be easier
> accomplished in a scripting language. If you have reasons to write in C,
> using existing C libraries seems more natural, less resource intensive
> and easier than shelling out all the time.

Yes, I need to use c/c++.


thanks for the help

-- 
-- Jethro

doodocaptain at paradise.net.nz

http://homepages.paradise.net.nz/jethroc/
http://homepages.paradise.net.nz/jethroc/cv/index.html






More information about the wellylug mailing list