From: Simon D. <Sim...@ya...> - 2006-08-21 17:31:28
|
>From Henry Nestler: >> Now what would be be really sweet was if colinux-console-* could >> simply accept the name of a running coLinux service to attach to. > > Ok, that is an solution for services. What does command prompt starts? > > If you not give any params to colinux-console-*, then the first colinux > will be attach. Inside the source you will see comment 'todo: add not > only the first console here' (or so). > > Do not create a new tool. Better you add a new param to the > colinux-console-*, for sample '-i N' where N is the number of colinux. And that's pretty much how the old '-a' switch used to work. The only weakness with that old mechanism was the issue of ambiguity: if a later instance started before an earlier instance (for whatever reason) then those instance numbers would not be in the predicted order. It wasn't a problem in any way, shape or form. But it caught me out a few times. ;-) Anyway, to resolve the ambiguity of the earlier '-a' switch, coLinux-daemon would need a complementary '-i N' parameter. However, I feel that a '-n <name>' parameter for coLinux-daemon would work better *if*: a) coLinux-console-* could attach to a *named* instance with its own complementary '-n <name>' parameter, and b) the names of running instances could be enumerated (this would be useful for future management consoles because you could tell at a glance which instance you're dealing with). I'd be tempted to patch 0.7.1, but I wouldn't know where to start. ___________________________________________________________ Yahoo! Messenger - with free PC-PC calling and photo sharing. http://uk.messenger.yahoo.com |