Article View: news.software.readers
Article #35305Re: How to write dosshell with Java Programming
From: Greg Wooledge
Date: Sat, 19 Jul 1997 00:00
Date: Sat, 19 Jul 1997 00:00
24 lines
1651 bytes
1651 bytes
On Thu, 17 Jul 1997 14:41:54 +0800, Teo Han Hui Eugene <s7606254@mercury.np.ac.sg> wrote: > How to shell to DOS or UNIX or Window 95 or X Windows? > i know in C, it's to run Command.com. Please don't. Use the system() function that ANSI went to all that trouble to include in the stanard. If you want to run an actual interactive shell, then read the SHELL environment variable (with getenv()) -- don't hard-code the shell's name. > But in Java, i'm in Unix o/s, how am i going to that? There's probably no newsreader written in Java (I don't know of any, at least), so your choice of newsgroup is way off base. If there's no system() function, or something like that, then either (a) read the Java documentation, or (b) ask in one of the comp.lang.java.* newsgroups. -- ------------ Greg Wooledge ------------- ------- wooledge@kellnet.com ------- --- http://kellnet.com/wooledge/main.html ---
Technical Details
Message-ID:
<slrn5t02nd.mca.wooledge@phoenix.local>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailReferences:
<Pine.SOL.3.91.970717143800.18564A-100000@mercury>Show Full Headers
Complete Article Headers
Message-ID: <slrn5t02nd.mca.wooledge@phoenix.local> Subject: Re: How to write dosshell with Java Programming Date: Sat, 19 Jul 1997 00:00:00 +0000 From: wooledge@kellnet.com (Greg Wooledge) References: <Pine.SOL.3.91.970717143800.18564A-100000@mercury> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 257623262 Organization: homo sapiens Reply-To: wooledge@kellnet.com Newsgroups: news.software.readers