Open thshdw opened 8 years ago
@edgr-sanchez et al For those interested we can use this issue to discuss the alpha.
Goals for the alpha:
Awesome! Let me know if/when I can help you test it.
When you use cmder do you use powershell or cmd?
I ask because we either support both or we force one. I would prefer to not support both, and would lean towards powershell.
In cmder with powershell you can do cd ~/.ssh
and you can't do that with cmd. For this reason alone when I use cmder I always use powershell
Do you have any preferences, or Input?
Would it be possible to use bash.exe?
I actually use Cygwin with Cmder, but i think it's too much to ask for someone to download that as well and since the Windows 10 update this summer will add Ubuntu Bash to Windows, I think it'd be a great addition.
Otherwise, I'm ok with Powershell. I like it better than Cmd.
What do you think?
Thanks. I'll start testing in using cmder with powershell.
Regarding bash, are your talking about Bash on Ubuntu on Windows I want to look at supporting that in a later release. Initially I want shuttle for Windows to work in Win 7, Win 8, and Win 10. Cmder will give us better windows support. In addition I don't have Windows 10 yet so I can't do any testing. :smile:
I’ve downloaded the insider preview and tested bash on Ubuntu On Windows. Interactive terminals remain open, here are some examples:
bash -c “ssh myserver@myip.com” makes a connection to the ssh server as expected. When you type exit in the ssh session spawned in bash; bash exits bringing you back to windows.
bash -c “top” runs top and refreshes as expected
bash -c “ps aux | grep ssh” runs the command, prints the output then exits out of bash.
bash -c “apt-get install ThingToInstall” installs ThingToInstall then exits out of bash bringing you back to windows.
So interactive sessions remain open. Once a script has completed and is not waiting for some input then bash will close bringing you back to your windows cmd window.
If your want to script running a service inside your Ubuntu for Windows instance it seems that this wont work... see this Q&A
Faizal Luthfi
Does “Bash Ubuntu on Windows” have any parameter to start automatically Linux command on open? For example, I can create custom shortcut to run “Bash Ubuntu on Windows” with a parameter to start apache web server.
1 week ago
REPLY
Rich Turner
As per the documentation (https://msdn.microsoft.com/en-us/commandline/wsl/reference), you can call the following to start bash with the -c parameter, followed by a command you want bash to run, e.g.:
bash -c ls
HOWEVER, note that bash will close after completing the requested command – if no other bash console is running, Windows will terminate the bash process, closing Apache.
Because of this, we recommend opening bash and calling a script to start the services you want to run in the background instead.
Read more at https://blogs.windows.com/buildingapps/2016/03/30/run-bash-on-ubuntu-on-windows/#ick1jBRTIWSid5GJ.99
@edgr-sanchez opended an issue on the shuttle for mac page requesting an app like shuttle for Windows. See his request here https://github.com/fitztrev/shuttle/issues/171
I'm closing that issue and moving the conversation here.