Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Giving command line instrux while the program is running

 
Christopher Whu
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ...
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic