Simplest way to send characters to USB serial device on Mac using script
I have a simple serial device that I need to talk to (but not listen to) periodically via command.The device is connected OK as /dev/usbxxx.What is the simplest/easiest way to do this?Installing...
View ArticleEnter key prints ^M in certain situations in iTerm
I am using iTerm2 on a Macbook Pro running MacOS Mojave.In certain situations, such as when doing a git add -p, pressing return ends up printing ^M instead of performing the action.Stage this hunk...
View ArticleWhy is libcurl showing as not usable on Mac OS X?
I'm running the configure command to install a particular software package, but it fails when it reaches it's libcurl requirement. This is the output it gives: checking for the version of libcurl......
View Article'cd' command in terminal - using partial folder name
If I want to navigate inside folder with long hard-to-type name, is there way to use cd with some kind of shortened name of this folder, to get free from unnecessary work?
View ArticleHow to create text substitution in command line instead of System Preferences...
Is there any way to create text substitutions in the command line instead of System Preferences>Keyboard>Text?I see that when you export text substitutions, it creates an html file, so I'm not...
View ArticleHow to run a command after an already running, existing one finishes?
If I start a script that is going to take a long time, I inevitably realize it after I've started the script, and wish I had a way of doing some kind of alert once it finishes. So, for example, if I...
View ArticleHow to change macOS terminal background color from command line?
I am trying to programmatically change the background color of my mac terminal following this question, and the accepted answer points to this CSV for a list of colors, to be used with the following...
View ArticleDo any of the recent serial terminal solutions (VersaTerm, FabGL Serial...
I'm thinking about attaching a serial terminal (real iron!) to my Mixtile Cluster Box (with ASMedia ASM2824), whose control board is equipped with a (hidden) UART interface. As my VT420 has died, I'd...
View ArticleHow can I copy on select in the OS X Terminal?
The common Unix terminal option to select and then right-click to paste is the best invention after the mouse. Is there any way to make Terminal in OS X do this? Hack the source code? Install...
View ArticleHow to temporarily disable history in zsh like bash at the end of the session?
In bash if we run unset HISTFILE at the end of the session then it does not save the commands that ran during that session.But in zsh, after we run unset HISTFILE or fc -p, it stops recording commands...
View Articleerror downloading wine32 on kali linux - 'Package 'wine32' has no...
\\the command I wrote:root@kali:~# apt-get install wine32\\what I got:Reading package lists... DoneBuilding dependency tree Reading state information... DonePackage wine32 is not available, but is...
View ArticleCommand for removing monitor/promisc from an adapter on OSX Yosemite
How do I accomplish this? I see posts on how to turn it on with the Apple802.11.framework but nothing on turning it off. I ran wash and now I’m currently stuck on monitor mode. Please help!sudo...
View ArticleRun command after opening terminal window from script using bash
I have a very simple script I use to open Terminal from Xcode in project root folder:#!/bin/bashopen -a Terminal "`pwd`"I want to extend it to run pod install command so I've added && to run...
View Articlezshell says command not found in MacOS
I'm using MacOS Monterey 12.4. When I open zsh I get immediately/etc/zshrc:7: command not found: locale/etc/zshrc_Apple_Terminal:104: command not found: mkdirI understand that my terminal immediately...
View ArticleHow can I verify that CNTLM works correctly?
I had installed and configured CNTLM on my Windows 7 machine.CNTLM is running and I can see it in Process. I have problems with a development tool that points to http://localhost:3128, I have doubts...
View ArticleMac OSX Mavericks - ZSH can't 'source ~/.zshrc', too many open files
I can't source any changes to my .zshrc (or my .bash_profile for that matter), because I get this error when I try:/Users/ME/.zshrc:source:100: too many open files: /Users/ME/.zshrcI've tried ulimit -n...
View ArticleHow to fix “cmd.exe” running without a visible window?
I use Windows 11 24H2 and somehow my cmd.exe runs without an actual window. I can see that it runs successfully in the task manager but the window itself isn't visible at all.I can run cmd.exe as an...
View ArticleHow do I mount a SMB folder in macOS via Terminal?
I have been working on a bash script to have systems mount a shared SMB folder(Windows Server) to a local folder /usr/local/Installers on macOS 12.I can create the folders just fine en mass to 100...
View Articleprevent kernel message which appears on terminal screen /dev/tty1
Kernel debug level messagewatchdog : BUG: soft lockup - CPU#0 stuck for 22s!appears in my console(/dev/tty1) and I am trying to prevent it.I tried following 3 methods but none of them worked:I set...
View ArticleUsing zsh and mcports. Command not found
I installed macports but I use zsh. What should I modify in the .zshrc file to get it to look for macports? I think macports is located in /opt/local/bin/port
View Article