Skip to main content
gamedev.net
🔒 Locked

[java] Very basic question

Started by tordyvel Dec 1, 2002 at 4:05 PM 0 replies 250+ views
Original Post
tordyvel
tordyvel
Is there any way of of executing command promt stuff with java? Like if I want my program to call the "grep"-command and then get the output for further use.
Arild Fines
Arild Fines
Look into the Runtime class, especially the exec method.



For those who believe in God, most of the big questions are answered. But for those of us who can''t readily accept the God formula, the big answers don''t remain stone- written. We adjust to new conditions and discoveries. We are pliable. Love need not be a command or faith a dictum. I am my own God. We are here to unlearn the teachings of the church, state, and our educational system. We are here to drink beer. We are here to kill war. We are here to laugh at the odds and live our lives so well that Death will tremble to take us -- Charles Bukowski
--AnkhSVN - A Visual Studio .NET Addin for the Subversion version control system.[Project site] [IRC channel] [Blog]

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.