aspose file tools*
The moose likes Beginning Java and the fly likes Giving command line instrux while the program is running Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Giving command line instrux while the program is running" Watch "Giving command line instrux while the program is running" New topic
Author

Giving command line instrux while the program is running

Christopher Whu
Ranch Hand

Joined: Sep 03, 2008
Posts: 80
Looking for a good tutorial on how to write a proggy that listens for command line instrux while running. I just need to be pointed in the right direction. Thanks in advance.
Karsten Daemen
Greenhorn

Joined: Nov 19, 2009
Posts: 19
Look for a tutorial about "threading", threads allow you to do multiple things at once, like listening to the command prompt and executing other routines ...

Give me golf clubs, fresh air and a beautiful partner, and you can keep the clubs and the fresh air.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Please UseRealWords when posting. Using abbreviations makes your writing much harder to understand, especially for the many Ranchers for whom English isn't their native language. It also suggests that you don't care enough to ShowSomeEffort when presenting your question.

You can edit your post by using the button.

Thanks!
pete stein
Bartender

Joined: Feb 23, 2007
Posts: 1561
Just what do you mean by "listens for command line instructions"? Do you mean a simple console program? If so, look at the Scanner class. Something else? Then perhaps give us more details on your problem.

Much luck!
Christopher Whu
Ranch Hand

Joined: Sep 03, 2008
Posts: 80
I did not know the terminology. I guess I am looking for a good console application tutorial . I want to be able to type commands to the application while it's running.

I will sceck out the scanner class.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Giving command line instrux while the program is running
 
Similar Threads
IO
Enter in place of ctrl+c
Objects and Classes
Recommendation: IDEs and SCJP don't mix
Alternative method of Connecting to database