When an app is installed via MacPorts, or one of the other programs used to bring Linux apps to the Mac, it is stored as a program requiring a terminal program to run. This is fine for some programs such as 7zip but not for others such as pan (a GUI newsreader) and gftp (a […]
Tag: OS X shell programming
As is one can tell from the dates on my posts, I spent a while tracking this one down. The original link is in a now inaccessible e-mail account so I went out and located it directly on the web. The date of the manual is in 2010 so it looks as though it is […]
Almost any series of commands which can be run in the shell can be run from a shell script. Tying in some of the last few posts I published here this is an example. Let’s say I wanted to run the gedit editor from the shell rather than from the dock/GUI… I would first have […]
This is largely a repeat of an article in an earlier issue of the magazine. It works across all forms of *NIX (including OS X) and in a limited way Windows as well. Most professional *NIX people don’t recommend it. The reasons escape me at the moment. One thought some network analysts had a couple […]
These tips can be used with the OS X terminal, iTerm, and most Linux shells. I have also verified the history works with the Windows “DOS Prompt”. It’s nice when things work out in a consistent cross-platform way. 😉 The history feature is useful when a programmer wishes to perform similar commands over again. In […]
The Mac has a unique way of setting up its $PATH variable. These are the locations the BSD portion of OS X looks at to find programs to run. In this case the list of paths can be found in the file /etc/paths. To edit it the administrator needs to sudo their favourite editor since […]
Programmers are always looking for tools to make things easier. The Terminal program included with OS X is adequate. This alternative makes things a little less spartan. According to the documentation this is an active project where the author implements features from other shells. One thing I find useful is the use of the scrollwheel […]