From mboxrd@z Thu Jan 1 00:00:00 1970 From: yk.9fans@icloud.com (Yaroslav Kolomiiets) Date: Mon, 23 Oct 2017 20:20:50 +0300 Subject: [9fans] Backgrounding a task In-Reply-To: <587079C0-5E5F-4781-BBEF-3B2BDEADED7F@gmail.com> References: <9D0254D2-6739-4260-B903-48D2D57E7816@gmail.com> <587079C0-5E5F-4781-BBEF-3B2BDEADED7F@gmail.com> Message-ID: <9D87888B-7BCA-4B26-BA2B-AAF2FFB04FE7@icloud.com> Topicbox-Message-UUID: c3d6cbda-ead9-11e9-9d60-3106f5b1d025 ?window -m cmd? will run the command in the same namespace, forked, but in new window. ?-m? is for ?mount?, an alternative way of communication with the window system to /dev/wctl which is default. Yaroslav Kolomiiets 7 ????. 2017 ?. ? 15:21 Chris McGee ????: Thanks for the tip! I'll give that a try. Chris ? ?????????? > On Oct 7, 2017, at 12:04 AM, Skip Tavakkolian wrote: > > Spitballing here: in the new window do something like > > cat /proc/123/ns | rc > > Or first massage the ns then generate an output for rc. > >> On Fri, Oct 6, 2017, 4:34 PM Chris McGee wrote: >> Hi All, >> >> When I'm using Unix, there's a workflow that I use for long running commands that I'm hoping to find the equivalent in the Plan 9 way of doing things. >> >> I will occasionally run a command, realize that it will take a long time to complete. I don't want to kill it. I'll just Ctrl-Z and bg to put it into the background using the shell. It's almost as if I had run it with '&' in the first place. I can then run other commands in the same working directory, environment and shell history. >> >> Is there an equivalent to this workflow in Plan 9? >> >> I realize that the whole job control system dates back to old single session terminals, which isn't a problem with Rio where you can draw new windows at will. Initially I thought, that you just drag that window to a corner somewhere and let it complete. But, if I draw a new window it won't be in the same working directory, have the same environment and namespace. Maybe there is a way to create a window that inherits these from an existing process? >> >> Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: