This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: JAR Files
On Fri, May 16, 2003 at 10:57:19AM -0400, Justin Bojarski wrote:
> I'm developing a c application to be run within the eCos environment.
> One of the requirements of this application is that it has to unzip a
> JAR file and then read the contents (or run a binary file if thats the
> case). So my question is twofold. First of all, is there a way to run
> system commands from within c for eCos.
There are no "system commands". There's just your program.
> I know in windows or unix you can do a code line like
> system("clear"); Can I do similar commands within c in eCos?
No. Your application is the only thing running on the system.
There's no shell to which you can send command strings that
execute other programs.
> Additionally, is there an unzip tool that comes with
> eCos so that I can accomplish the above by just invoking a system
> command?
No.
> For example, writing a line like: system("unzip
> testArchive.jar");
eCos doesn't come with a shell. eCos doesn't have independent
processes that can be used to fork/exec other programs.
--
Grant Edwards
grante@visi.com
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss