Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 02 Jan 2003 21:56:16 +0100
From:      phk@freebsd.org
To:        wgrim@siue.edu
Cc:        kientzle@acm.org, Terry Lambert <tlambert2@mindspring.com>, freebsd-hackers@freebsd.org
Subject:   Re: Reading rc.conf from C programs? 
Message-ID:  <4967.1041540976@critter.freebsd.dk>
In-Reply-To: Your message of "Thu, 02 Jan 2003 14:51:14 CST." <1041540674.3e14a642d30b5@webmail1.isg.siue.edu> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <1041540674.3e14a642d30b5@webmail1.isg.siue.edu>, wgrim@siue.edu wri
tes:
>Well, perhaps I'm missing something here, but can't you just tokenize the items 
>in rc.conf using strtok after opening up the file in your C program?

Only if you parse and evaluate the entire /bin/sh syntax.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4967.1041540976>