The default Unix shell used by Terminal in Mac OS X

learn more… | top users | synonyms

3
votes
0answers
164 views

Issues with Unicode symbols in some applications running in Terminal.app and iTerm2

Darwin DeoGloria 13.3.0 Darwin Kernel Version 13.3.0: Tue Jun 3 21:27:35 PDT 2014; root:xnu-2422.110.17~1/RELEASE_X86_64 x86_64 Fresh user account. Terminal.app and iTerm2 with UTF-8 set. Accented ...
2
votes
0answers
20 views

Terminal: disable printing/output of keyboard commands

I have the same problem as this person – I am running a C script and somehow when I pass the EOF signal with Ctrl+D, ^D gets printed to the console. My question is therefore: is it possible to ...
2
votes
0answers
29 views

Is there a way to run a bash script everytime I print something?

I wanted to run a script that changes my background image whenever use the printer. Is it possible? Is there a way to know when OS X is printing something?
2
votes
0answers
28 views

In iTerm, how can I change alt+delete to ignore slashes?

I set up my iTerm to work a lot like OSX does in other text fields, eg ⌘ Command+Delete = delete line backward, ⌥ Option+left arrow = "move cursor back one word" and ⌥ Option+Delete = delete word ...
2
votes
0answers
178 views

Set file metadata attribute values

I'm trying to set the values of some file metadata attributes in OS X Yosemite - kMDItemDateAdded and kMDItemLastUsedDate - the values of which can be shown using mdls <filename>. I'm trying to ...
2
votes
0answers
34 views

Determine when an application last launched

I need to have a script return a date that a particular application launched (in this case Parallels, but solution should be non-specific) so that our asset management system can mark the license for ...
2
votes
0answers
342 views

How to make files safe so users can download and OS will not quarantine them?

I work with Axure software that generates dynamic and navigable prototypes in HTML. Once they are done I need to send a ZIP file of those HTML files to clients via e-mail or any download internal ...
1
vote
0answers
43 views

Mac Terminal (+bash +tmux +set-o vi) missing characters at end of line

Often when editing a historical bash command in vi mode (after pressing ↑), and then moving backwards in the text using b. When I begin editing the text after pressing i or a, the extra text I insert ...
1
vote
0answers
23 views

In bash script, how to have a script that runs in the background and starts when an application is opened

I'm making a script which should run when I open Safari. I want it to open when the user logs in and run in the background, then have part of the script to run when Safari opens. Is this possible in ...
1
vote
0answers
45 views

How to set the colour of a folder with a specific name on mac terminal?

I am using these four lines in my .bash_profile file to enable colouring on my mac terminal (Mac OS Yosemite). export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ " ...
1
vote
0answers
64 views

Bash script to import RootCA and set it to Always Trust from Server

I am working on a way to import a RootCA into the login keychain of OS X and set it to always trust, the cert is located on a file share server. I am relatively new to the whole Bash scripting scene ...
1
vote
0answers
111 views

How to use nohup/send process to background on os/x

The command nohup <command> & does not actually work properly on mac it seems: the process is suspended. Issuing fg appears to be required to reactivate the command. Here is an ...
1
vote
0answers
149 views

Problems with a simple shell script

I've faced with the problem of using simple shell commands like AWK and print within my sh scripts on my Mac ( the same script works perfect on the Linux). For instance below script which seek for the ...
1
vote
0answers
17 views

Window UI Texture Artifacts

I just install OSX Lion on an old Mac Pro, as well as all the major updates 10.7.1 through to 10.7.5. Then I installed the BASH Shellshock patch for OSX Lion 10.7.5 and after restarting my Window UI ...
1
vote
0answers
56 views

Is HISTFILESIZE behavior different in Yosemite?

For a long time I've used the HISTFILESIZE environmental variable to control the number of lines that get written to my terminal history (the default of 500 is not enough; I set it to 10000). Ever ...
1
vote
0answers
86 views

dtruss -f is not following children processes?

Following is not following the child "sql.py" python process: sudo dtruss -f run-test sql.py 2>&1 Here is the output - which shows no evidence of following the invoked python: PID/THRD ...
1
vote
0answers
82 views

Running “irb” changes my zsh to bash on iTerm2

I'm running OSX 10.9.4, and my default shell is set to z shell. I was just working out my installation of Ruby and RVM and playing around with irb when I suddenly notice that my window title says ...
1
vote
0answers
227 views

PROMPT_COMMAND='history -a; history -n' changed (broken) in Yosemite / bash 3.2.53

I need my command history to be shared across all terminal sessions and all commands available for immediate recall from any other terminal. This is the default for old school ksh shells but hasn't ...
1
vote
0answers
72 views

How to fix Bash on an older MacOS

I am still running MacOS 10.6.8 on my older iMac because of software issues-some of my most useful stuff won't run on systems past Tiger. Can I use the patch published by Justin Meyers in "Every Mac ...
1
vote
0answers
145 views

bash autocompletion scripts in OS X

Here is what I learned so far: # settings on mac if [[ $(uname) == "Darwin" ]]; then # enable bash completion if [ -f `brew --prefix`/etc/bash_completion ]; then . `brew ...
1
vote
0answers
132 views

Detecting that an external display is plugged in or unplugged on a laptop via bash

Is there a way via bash to detect that an external display has been plugged in or unplugged via bash? I know that I can create a crontab command that fires a script that uses the system_profiler ...
1
vote
0answers
71 views

What's the /home directory for, or did I just accidentally create it?

I saw reference to a bash command, cd /home, in a multiple choice quiz about navigating within Terminal. I tried it, expecting -bash: cd: /home: No such file or directory, but to my surprise it took ...
1
vote
0answers
93 views

Most efficient way to get all files in a directory

I have a million+ files spread across four fiber-connected arrays. I need to get the path, filesize, and last_modified date to insert into a mysql database. What would be the best way to do this? ...
1
vote
0answers
3k views

using -exec command on mac os x

Does any know why the -exec does not work on mac os x lion terminal? It works on linux and other variants but not on mac os x find / -iname "*.mp3" -exec mv {} /mnt/mp3 \;
0
votes
0answers
2 views

Non-debug qlmanage

I've got a bash alias set up in my terminal, alias quicklook='qlmanage -p ', in order to easily quicklook files from the terminal, but the output bugs me. Testing Quick Look preview with files: ...
0
votes
0answers
53 views

.bash_profile is not working unless sourcing it manually

I got a new machine (yosemite osx), and I am trying to set it up. I have created .bash_profile, but unfortunately it doesn't work. Even if I log back in or restart the machine, and open terminal ...
0
votes
0answers
15 views

Enable remote management remotely on a mac

I am trying to use remote desktop to send a script to all Macs on my network that creates an additional admin account and hides it. I am trying to do this using Apple Remote Desktop. However most of ...
0
votes
0answers
22 views

Protect changes to plain text file written by standard user's execution of bash script

I have written a simple bash script that I want to use as a time clock for employees (work-studies) in my computer lab. The script works great. 1. Each work-study has two icons (two separate bash ...
0
votes
0answers
8 views

Bash Script to Login to server and copy a folder to local drive

I have created a nice netboot image that I use to fix computers that misbehave. Reformatting them and restoring from this solves problems for us all time and has proven to be a remarkably efficient ...
0
votes
0answers
23 views

How to turn off bash_profile from automatically opening when opening Terminal?

I recently changed the ownership of the .bash_profile file from root to MyUsername. Since then, when I start/open Terminal, the bash_profile file automatically opens too. To disable it from doing ...
0
votes
0answers
39 views

Conditional lsof loop in bash script

I found this example of a conditional lsof loop and want to adapt it to my situation. typeset fSrc="/path/to/sourcedir" typeset fTgt="/path/to/targetdir" while : ; do ls /path/to/sourcedir | ...
0
votes
0answers
40 views

Mac doesn't recognise simple commands like 'ls'

I installed Apache and tried to change the permissions for one of Apache's working directories. After that my machine keeps changing the default path. I can't access the simple commands unless I set ...
0
votes
0answers
28 views

using FISH shell — set default folder for multiple tabs?

I'm using fish shell in OS X. Using the standard bash shell, you can open multiple tabs in Terminal, cd to a different directory in each, and then save the setup as a Window Group (via Window > ...
0
votes
0answers
58 views

Stealthy Mac, Disabling network services on OS X (Non-Server)

I have written a bash script to harden OS X Security and be as stealthy as possible. The script: Disable bonjour Start firewall and block all non-essentials incoming traffic Enable Stealth Mode to ...
0
votes
0answers
35 views

Nano: how to obtain syntax highlighting?

I have a default installation of nano under /usr/bin/, and I am trying to make nano highlight the bash scripting language code. I have been searching around, but I had no success: I got always some ...
0
votes
0answers
46 views

Show Google Search in Address Bar in Safari v8.0 in OS Yosemit

I'm trying to show/hide google search in Safari v8.0 in mac os "Yosemite" using bash script, I used the following command in terminal but it didn't work even after I restarted Safari, so am I doing ...
0
votes
0answers
20 views

AppleScript and Configurator

I have written a bash script to modify a mobileconfig file (iOS profile in a xml-plist format) as per this link and I am now in the process where I would like to interact with Configurator via ...
0
votes
0answers
21 views

How to open application through notification in terminal shell

I have the following command to run in a terminal shell script: osascript -e 'display notification "This is a Text" with title "This is a Title"' This is a shell code running in applescript to open ...
0
votes
0answers
14 views

Check access to share BEFORE mounting

Quesiton: Can I check access to a share before I mount it? I'm using various bash scripts on Mavericks 10.9.5. One script mounts shares, based on group membership. Due to the nature of the script, ...
0
votes
0answers
41 views

os.Popen command is not working

I'm writing a python script that is suppose to change default display settings for all users. I run the script as sudo because it needs to change every display. This line is suppose to change the ...
0
votes
0answers
24 views

change bash color profile on su $username

With my useraccount I use a .bash_profile that contains this line: export PS1='\[\e[0;36m\]\u\[\e[0m\]@\[\e[0;33m\]\h\[\e[0m\]:\[\e[0;33m\]\w\[\e[0m\]\$ ' With my adminaccount I use a .bash_profile ...
0
votes
0answers
66 views

Bash Terminal Environment variables = dollar sign

I think I'm having trouble with environment variables (I'm trying to install seismic unix, the make install doesn't work, and I think that environment variables are the problem). The makefile calls a ...
0
votes
0answers
69 views

Trying to run commands in bash causes Homebrew error

Whenever I try and run any commands in terminal (bash), my window goes crazy and it keeps looping through an output of: /usr/local/Cellar/rbenv/0.4.0/libexec/rbenv-hooks: line 32: cd: ...
0
votes
0answers
22 views

Terminal [Bash 3.2.53] “line up” keystroke

What is the key combination I need to move the cursor up 1 line while in Terminal? If I use the key binding "Ctrl+p" [like in emacs] all I get is the previous command. TIA for your time.
0
votes
0answers
53 views

Creating Smart Folders (perhaps programmatically) based on photo IPTC metadata?

I have thousands of photos with IPTC metadata -- I'm mostly interested in the star-ratings and the tags -- and I'd like to create folders for those images that automatically stay in sync as I change ...
0
votes
0answers
24 views

Need Help with Post-install Script to Switch Off “Displays have separate Spaces”

We have an PC application adapted to run on the Mac using Wine that we install using Apple's Installer. Because Wine uses X11 to display the adapted application's GUI and because of the way X11 (aka ...
0
votes
0answers
33 views

Any verification tricks for Mac OS X files?

Is there a good way to verify the various files in Mac OS X? Ideally, one wants to verify system files in an installed system, but right now I'm curious about verifying the Yosemite installer. If ...
0
votes
0answers
41 views

Software Recommendation: Menu bar app to run saved bash scripts

I am looking for a an app that has a dropdown menu from the menu bar to run bash script snippets. Does something like that exist? Thanks in advance!
0
votes
0answers
138 views

Why am I getting command not found even though path to command exists in PATH variable?

On Mac OSX 10.10.1 I get command not found for anything installed in /usr/local/bin (however command is found if I use sudo) PATH variable contains this path. for example pip. Here are some lines from ...
0
votes
0answers
54 views

How Do I Override the Addition of the folder for the Server app version of PostgreSQL?

I am currently using RVM for managing different gemsets for different versions of Ruby. RVM has made changes where the RVM folders must be listed first or else I have to manually set the gemset each ...