From: Henry N. <Hen...@Ar...> - 2006-08-21 16:29:48
|
Simon Dainty wrote: > The 0.6.4 distro version of colinux-console-net supported the -d > switch that allows us to specify which running instance of coLinux > a console should attach to (I have two instances running as services), > and worked fine. > > The 0.7.1 distro has forsaken this in place of the -a switch that > only accepts a PID. This, too, is fine. Except - well - I need to > acquire the PID and manually specify it as a command-line arg. > > Does anyone know of a simple command-line tool that will take > a process name and return a PID? > > Hmmm... Maybe I should just stop being bone idle, load Visual > Studio and write my own. > > 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. -- Henry Nestler |