terminal

Basic terminal output using C++ - Questions

元气小坏坏 提交于 2019-12-12 03:38:36
问题 Well, the question may sound a bit too vague but here's 2 things I need to do and I'd definitely need some input on this : Output something (e.g. using cout ) with color (note: My TERM environment variable is set to xterm-color if that makes any difference; also, is there any uniform way to output colored text that's compatible with both pure mac and *nix terminals in general, so that the code is portable) Output something at the same position on the terminal screen. OK, this may sound

Mac Access Issues over VPN

故事扮演 提交于 2019-12-12 03:36:49
问题 I can access sites when using browser, but when inside a Mac application I always get "Operation Timed Out" over VPN . Is this a companies firewall issue or my local DNS settings issue? I have been going back and forth with our IT admin team on this. With the same firewall roles Windows users are able to run things smoothly. Few Examples.. Mac Terminal himalay$ git clone https://github.com/spring-guides/gs-consuming-rest.git Cloning into 'gs-consuming-rest'... fatal: unable to access 'https:/

Problems with Homebrew on Yosemite

拈花ヽ惹草 提交于 2019-12-12 03:36:24
问题 I'm a newbie to Homebrew, having some problems. Can anyone help? I've been using step-by-step instructions from the belowmentioned website but I ran into a wall. Here's what brew doctor tells me. I can't install "winetricks" because "freetype" is disabled. I can't "link freetype" because "Linking /usr/local/Cellar/freetype/2.5.5... Error: Could not symlink include/freetype2/config /usr/local/include/freetype2 is not writable." http://www.techboxed.com/news/how-to-get-star-wars-the-old

Disabling Mission Control, Spaces, Dashboard and any other external process

偶尔善良 提交于 2019-12-12 03:14:48
问题 I was wondering if it was possible to (for a short period of time) disable and re-enable external processes to an application like Mission Control, Spaces, Expose, Dashboard, etc... within an application, while still allowing the user to use my application? A way of accomplishing this I found was to use NSTask to disable the processes with the corresponding terminal command. For Example: - (NSString *)runCommandWithBase:(NSString *)base arguments:(NSArray *)arguments { //Create the task

Is it possible to forward the output of “service httpd restart” for example to “notify-send $output”? [closed]

二次信任 提交于 2019-12-12 03:09:50
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . If I create a script that will restart apache: service httpd restart ... I will never know what the output was because it does not open the terminal window. I am wondering if the output can be taken and then forwarded to: notify-send output ... this way there is some visual of what happened for few seconds on

Print lines that contain a value in a specific column shared by more than 1 entity in another col

穿精又带淫゛_ 提交于 2019-12-12 03:05:19
问题 I want to extract only those values in Column 2 that are shared by at least 2 unique values in Column 2. Using the same input (in this case 3- tab-separated columns): waterline-n below-sheath-v 14.8097 dock-n below-sheath-v 14.5095 waterline-n below-steel-n 11.0330 picnic-n below-steel-n 12.2277 wavefront-n at-part-of-variance-n 18.4888 wavefront-n between-part-of-variance-n 17.0656 audience-b between-part-of-variance-n 17.6346 game-n between-part-of-variance-n 14.9652 whereabouts-n become

autoIT resizable terminal service

会有一股神秘感。 提交于 2019-12-12 02:57:11
问题 When I resize "Terminal server", I want that the "RDP session" follow the resizing without grey borders appear Anybody can help me? Thanks I have the following code: $host = "" ;<<<<<<< enter here the host name or ip address $hGUI = GUICreate("Terminal server", 900, 700, -1, -1, BitOR($GUI_SS_DEFAULT_GUI,$WS_SIZEBOX,$WS_THICKFRAME)) $oRDP = ObjCreate("MsTscAx.MsTscAx.2") $oRDP_Ctrl = GUICtrlCreateObj($oRDP, 0, 0, 900, 700) GUICtrlSetResizing(-1,GUI_DOCKLEFT+$GUI_DOCKRIGHT+$GUI_DOCKTOP+$GUI

CGI script, save `printf` to file using Terminal (OS X)

試著忘記壹切 提交于 2019-12-12 02:54:39
问题 I asked a question earlier about how to read a POST request with your own local server (On OS X) Now my problem is that i can't save the POST Data received on my server. I currently use while true; do nc -l 10000 < /dev/null ; printf '\n\n\n'; done to receive and display the POST Message sent from my iOS device, and it workes perfectly. But how can i save the printf output? I tried using a local .sh file and send the POST Request withe the following code (with no success): #!/bin/sh printf

Colorize B&W terminal-based apps?

耗尽温柔 提交于 2019-12-12 02:48:28
问题 Is there any software that will automagically add terminal colors to terminal-based apps that don't support colors? How would it work? Well, the software could at least try to identify source code in the same way that syntax highlighters do (albeit most syntax highlighters would have problems with parts of the source tree being off-screen), and this general method can be extended to lots of other more-human forms of data; for example, dates, times, money, email addrs, etc are easy to

Command not found

て烟熏妆下的殇ゞ 提交于 2019-12-12 02:16:21
问题 I am quite new to the Mac Terminal environment. I donwloaded sqlplus (which is recognised as a UNIX executable program) and then in Terminal I do cd a few times until I arrive in the folder I put this in (\Applications\instantclient_10) in this case. When I type 'ls' I see a listing of all the files including the sqlplus. So I would then expect to simply type at the Telnet prompt 'sqlplus' and then this would start but instead keep getting -bash: sqlplus: command not found This is problem one