How to open command prompt starting with "shell>" in windows? - mysql

The Documentation of mySQL explain some issues in command prompt starting with "shell>" command as shown in the picture , while the normal cmd prompt starting with"c:\users\pc>" and the cmd line client of mySQL5.7 starting with "mySql>" ...how to open cmd prompt starting with "shell>"? if not in windows OS what is the correspondent action in windows? .....picture

"shell>" is a placeholder for whatever your command shell of choice (e.g. bash, cmd.exe, etc.) actually uses. It is not literal text.

Related

How to redirect QEMU output to Windows cmd console?

I am trying to use the qemu-system-arm.exe on Windows 10 to simulate an ARM environment.
I use below command to disable serial and graphic:
qemu-system-arm -machine versatilepb -kernel t.bin -nographic -serial
none
I set the -serial none because my t.bin doesn't touch the serial port of the QEMU virtual machine. So there should be no data on the serial line.
But when I type commands in the (qemu) prompt, it contains many unexpected control characters. Though the command seems still working.
QEMU 4.0.95 monitor - type 'help' for more information
(qemu) h[K[Dhe[K[D[Dhel[K[D[D[Dhelp[K
I also tried to use com0com to create a pair of virtual serial ports. And connect them as below.
But both ends show nothing as I type commands. I guess it was due to incorrect baud rate. So I tried a few but still no luck. As said above, I think the serial line is quite because there's serial communication happening.
I launched qemu the same way on Linux, the (qemu) prompt works perfect. Only Windows has such mess characters.
So how to redirect (qemu) output to Windows cmd console properly? I just want to check some machine states.
(Well, this is just a work around...)
I launch exactly the same command within a Cygwin shell, the mess characters disappear now...
ANSI support is missing in the Windows command console (before Windows 10 Terminal app).
Your com0com solution works just fine, at least for me (QEMU on Windows 8.1 emulating Debian MIPS).
All I had to do was to add the following, and then connect with PuTTY to COM9:
-chardev tty,path=COM8,id=hostcom8 -device pci-serial,chardev=hostcom8 -append "console=ttyS2" (I had ttyS0 and ttyS1 virtual serial ports)

octave opens GUI when I type "octave" in terminal

I have a problem:
installed octave and do not know why, every time I type octave in the terminal opens the GUI interface (gui --force-octave) Octave and not the terminal octave as is right. how can I fix this?
If you have Octave 4.0, the GUI is the default:
** A graphical user interface is now the default when running Octave interactively. The start-up option --no-gui will run the familiar command line interface...
https://www.gnu.org/software/octave/NEWS-4.0.html
You can add this alias octave='octave --no-gui' to your ~/.bashrc file and every time you type octave, it opens in your terminal.
Good luck

Openshift asks to change permission of file to 600 on Windows

while executing rhc setup i got following error
Your private SSH key file should be set as readable only to yourself. Please run CHMOD 600 C:/user/myuser/.ssh/id_rsa
Now how can i execute such command on windows.
However, I tried to use git bash. But have not got any success.!!
You can execute Linux commands on windows machine using Cygwin.
There are a couple of more tools using which you can do the same but I found Cygwin great!!!

How do I tell the Compute Engine gcutil-tool the location of a file when doing a push/pull?

gcutil does not understand when I use "d:/documents and settings/paul/desktop/somefile.txt"
I am using Cygwin terminal with Windows Xp.
Cygwin uses Unix-style paths, which do not have explicit drive letters.
Try /cygdrive/d/Documents and Settings/...
With my Windows XP is so that D:\cygwin\home\exampleusername\examplefile.txt can be referenced as ~/examplefile.txt from the cygwin command line.
And I can get files from the Linux instance when I am at my local command prompt: I can "gutil ... pull ..." files from the instance and "gcutil ... push ..." files to instance.
Push or pull at the Linux instance command prompt does not work, I think this is a issue with my local firewall.

Start JRubyStack with Console 2

I have installed the JRuby Stack environment in Windows which uses the default windows cmd as a console. I want to use Console 2 but unfourtunately I don't know how to configure it.
I tried creating a new tab in Console to and in Shell I gave it the path to
"C:\Program Files\BitNami JRubyStack\use_jruby.bat"
Unfourtunately, this bat opens the CMD by default:
#echo off
CALL C:\PROGRA~1\BITNAM~1\scripts\setenv.bat"
cd "C:\Program Files\BitNami JRubyStack"
START "BitNami JRubyStack Environment" cmd
So.. any ideas?
Thanks!