The default Unix shell used by Terminal in Mac OS X

learn more… | top users | synonyms

-1
votes
0answers
14 views

Hold item System Prefs

How to lock System Preferences item only to staff group members?
0
votes
0answers
4 views

Open Directory network user last logon time

I am looking for a bash command to query my LDAPv3 server from the client side in order to find the current user's last logon time.
0
votes
1answer
17 views

Bash Script that only runs in terminal

I created a Bash script that should be able to be ran on any machine. The problem I'm having it'll only run in terminal. When a user double clicks the script, some users have it open up in iTerm, and ...
0
votes
0answers
31 views

echo command works fine at terminal but not from shell script

#!/bin/bash # the echo command below work fine when copy pasted into terminal # but behaves differently when run from sh script echo "starting and running from script file" echo ">...
0
votes
0answers
13 views

How can I cd to an alias directory in the Mac OSX terminal without creating symbolic link [duplicate]

I used to be able to cd into aliases with my Mac. Today I was messing around with ~/.bashrc and ~/.bash_profile to make PostgreSQL work. After I restarted my computer it stopped cd'ing to aliases and ...
0
votes
0answers
16 views

How to scan all available sound output devices on Mac?

I have an early 2015 Macbook Pro and Raspberry Pi which is running Airplay player. However, my Macbook usually won't recognise Airplay player as sound output when Raspberry Pi is turned on. It does ...
0
votes
1answer
16 views

srite a script that installs a package file automatically with limited interaction from user [duplicate]

I'm trying to run a package installer from terminal and have it complete with limited interaction from the user. This will need to be ran on any computer. The bash script I have so far is: sudo ...
2
votes
1answer
29 views

Bash Script That Automates A Software Install

I am trying to create a bash script that automates all parts of a .dmg/pkg software install. For example, the script should pull the installer from here: http://download.techsmith.com/snagitmac/enu/...
0
votes
0answers
9 views

Is there a way to display an instance of BezelUI (brightness HUD, volume HUD) using BASH or AppleScript?

Long story short, I've written a simple BASH script to control the brightness of a non-Apple external monitor using ddcctl. It works, with a couple hacks. It would be really cool if I could display a ...
0
votes
0answers
7 views

Git Pull/Push not working with git-completion

I'm currently having an issue with git-completion when it comes to my own aliases set up. I have my .bash_profile set up like so (stripped some to not show other info): alias checkout='git checkout' ...
0
votes
0answers
14 views

brew upgrade breaks terminal, requiring reset

When I run brew upgrade in my Bash shell, it breaks the terminal display (in both iTerm2 and Terminal) such that I can't see anything I type in the following prompt and I can't see the history. For ...
0
votes
0answers
16 views

Warning when starting script with osascript within script

scriptName.sh contains the following code. osascript <<EOD (display dialog "To: $name $number \n $sentence" ¬ with title "Message" ¬ buttons {"Send", "ReDo", "...
0
votes
0answers
24 views

Session restoration in terminal has stopped working

Running 10.11.5 From the time I installed El Captain I have enjoyed having the individual bash histories restored with my sessions (along with the window contents which has been the default for some ...
0
votes
1answer
28 views

How to use iTerm along with the default bash terminal?

I want to use iTerm with my default bash terminal because there is a lot of customization that i have done to my .bash_profile and I don't want to lose it or perform all the hard work again.
1
vote
1answer
34 views

Why find and exec with multiple conditions doesn't work without parenthesis?

I have two very similar find commands only one of which works. Since it's relevant, I must mention that there are no files with .c or .hpp extensions. # That one works find ~/src/ \( -type f -iname '*...
0
votes
1answer
47 views

Git auto-completion not working on Mac OSX 10.11.5 El Capitan

I have tried the examples found here to get Git auto-completion working on El Capitan, however none of the examples work for me. I installed bash-completion with Homebrew (brew install bash-...
3
votes
2answers
62 views

Making ~/.bashrc function callable to set up an environment

I have an installed app lets call it my_app that I wish to be able to call from the command line. It is located in /Applications/my_app.app/Contents/Resources. So what I was hoping to do was to have ...
2
votes
0answers
19 views

could .bash_profile, in theory, be slammed into the iCloud Drive and symlinked? [duplicate]

could .bash_profile in theory be slammed onto iCloud Drive and symlinked from there? I'd love to use the same .bash_profile on every computar. Why this isn't the same as Dropbox - this, if answered, ...
0
votes
0answers
13 views

Running “npm init” in bash, can't see input or output

My bash shell is acting weird suddenly. When I run "npm init", the questions are are hidden by funky characters, and when I type in my answers, they're hidden too. It happens in both Terminal and ...
0
votes
1answer
22 views

Automator Action/Bash Script for selecting files from a list

As a part of my workflow, I often face this scenario: I have a folder with let's say, 100 files named 1.mov to 100.mov I have a list of valid files let's say, files 1.mov, 2.mov .... 15.mov (These ...
1
vote
3answers
111 views

Is there a way to list all available commands in terminal

Is there a way to list all available commands in terminal? I know linux has compgen -c is there an equivalent command for OS X? Update: The actual issue was that I was using zsh instead of bash. So ...
0
votes
0answers
26 views

Possible to force command line to be somewhere else than bottom of the screen?

In my vimrc, I have the following line: let so=999 to force the cursor to stay in the middle of the screen, which is something I find more comfortable. However, when going back to the terminal, ...
-1
votes
2answers
31 views

-bash: /usr/bin/svn: No such file or directory

I am trying to upgrade my svn version. So I deleted older binary sudo rm /usr/bin/svn Then I installed svn brew install svn And linked it too athakur:home athakur$ brew link --overwrite ...
-1
votes
1answer
71 views

Batch copy time creation and modification date from files using OSX

First of all, I have asked the same question at stack overflow, but I am not sure if it's right over there. That's why I decided to post it here, too. t'm having a hard time trying to copy the ...
3
votes
3answers
144 views

Bash script to click button on an HTML page

I'm trying to write a Bash script that opens a browser, clicks an HTML button on a webpage, and closes the browser after getting response. I need this script to be executable from within Terminal. If ...
0
votes
1answer
72 views

ICMP packet with a negative round trip time?

I often keep a ping running in my Terminal so that I can pop it up to keep an eye on any network issues in our office. Recently, I ended a long-running ping session and noticed in the summary ...
1
vote
0answers
18 views

Open Directory local admin users

Is there a bash command to add an Open Directory admin group to the local admin group on a Mac with 10.10? I'm trying to remove all local admin accounts but still be able to control them with Apple ...
1
vote
2answers
59 views

How to pass a file set as a variable from AppleScript to a Bash shell script

I've got a two part problem. I am trying to pass a variable from AppleScript to be used as a variable inside a bash shell script. I cannot figure out how to this work. I have read about ...
0
votes
1answer
120 views

Last command source file

Despite what I thought, there does not seem to be any concrete/modern answer on the net, so my question is: where does the last command get its information from? I have found the file before, but ...
0
votes
0answers
22 views

qlmanage (quicklook) crashes on file update

So has a possible bug and I want to know if others can reproduce it or if it's unique to my system. If you open a file with qlmanage -p foo.gif &> /dev/null & a debug mode of quicklook ...
8
votes
3answers
855 views

Moving .bash_profile to Dropbox

I'd like to move my .bash_profile to Dropbox to have my custom Terminal functions available on all my Macs. Is this possible and are there possible implications? For example I have a command for ...
2
votes
0answers
29 views

Bash Ctrl-A Returns to Start of Line but Doesn't Display Properly

When I ssh into a Linux server from bash Terminal, I can use CTRL+A to return to the start of line properly, and CTRL+E to go to end of line and everything works fine. When I use bash locally on my ...
2
votes
2answers
81 views

Log file that `sudo last` accesses?

The bash command last (needs sudo) prints out logs, which contain information on when different users log in/out of the shell. I have been looking for the file that stores this information, that last ...
1
vote
1answer
41 views

date command gives no output

I made an alias earlier today that I saved in my .bash_profile. The alias was called date. I had momentarily forgotten that date is already a native command on OS X (and Linux) in /bin. I removed the ...
1
vote
1answer
87 views

Use script without root

I write a maintenance script with different commands. the script has sudo commands inside. Now I want to use crontab, but my first problem is: How can I use the script on user level without root ...
0
votes
1answer
35 views

What automatic script runs with Bourne Shell (/bin/sh) for root?

I want to add some aliases to my OSX command line environment for easier navigation when in the root prompt (sudo su to root). On the Bourne Again Shell (/bin/bash), I can edit /var/root/.bash_profile....
3
votes
2answers
73 views

How can I get the dev name associated to a Volume name?

I am creating a bash script to unmount my usb drive after the backup is done. To unmount the drive I use the command: diskutil unmount disk4s1 But sometimes when I plug my usb drive it gets a ...
1
vote
1answer
40 views

OSX Unmount usb disk drive from Automator bash script

I have a task in automator to make my backup, it runs shell script code, lot of code is working well but the unmount command doesn't works, I don't get unmount the unit after backup. I checked to run ...
4
votes
2answers
189 views

How can I run a shell script that prompts for user input from within Applescript

I have two pieces of code. One is Applescript and the other a Bash shell script. The shell script needs to run concurrently with the applescript, return some values and then exit. The problem is the ...
3
votes
1answer
44 views

El Capitan get current desktop name from bash

I am trying to write a bash script that needs some identifier of the current active desktop (I want my emacs-clients to connect to different servers depending on the active desktop). I have searched ...
2
votes
1answer
27 views

How to export Moom settings (especially keyboard shortcuts) to external file?

I'm working on some shell scripts to customize OS X to my preferences just by calling one script. From a lot of native OS X options, script is going to easily import some predefined settings form 3rd ...
0
votes
1answer
38 views

Help Understanding Terminal's Command

OS X 10.11.5 on a Mid 2011 iMac. I'm new to development on OS X and am trying to understand enough to figure out a Ruby path issue I'm having. I ran Inspector on Terminal and was surprised by the ...
0
votes
1answer
80 views

Creating a Installpackage for mac

I have a lot of Programms that i always need to install to a new mac. I wanted to simplify this process through an installpackage. I allready tried Iceberg with some success but have a specific error. ...
0
votes
1answer
69 views

How can I edit the .bash_profile?

I want to use matplotlib in Python, but it gives me this error "ValueError: unknown locale: UTF-8". So I searched the internet and people suggest that I should edit my .bash_profile. But when I open ...
0
votes
1answer
38 views

OS X Automator: Using custom command in AppleScript's “do shell script”

I have recently asked a question about automatically inserting a value produced by a custom executable into a prompt field. Please look over this post to know exactly what I am talking about. The ...
2
votes
3answers
157 views

Set the result of command to variable in Terminal post execution

How can you set the output of a command run in terminal to a variable after it has run? Background (You can skip of you don't need the background) I run VirtualBox VM and do a lot from the command ...
1
vote
2answers
43 views

Why does 'set -x' cause the terminal to dump garbage

This problem is quite annoying and I cannot search Google for 'set -x' because the minus sign has another terminology there. In my MacBookPro, when I use 'set -x' to debug bash commands, I'm getting ...
1
vote
0answers
37 views

Are there any advantages to using GNU over the default OSX command line utilities? [closed]

Are there any advantages to using GNU utilities (installed via homebrew) as opposed to the default, BSD based OSX utilities? They seem very similar to me, but I will not pretend to be a master of ...
2
votes
0answers
38 views

Set up a Mac to run OSX (None Browser) application in pure kiosk mode

I've been trying for a number of months, using many methods, to run a Nuiteq Application called Snowflake on our 10 Mac Minis attached to touch-screens in pure Kiosk mode. I'm using Yosemite. These ...
0
votes
2answers
58 views

I get a bash syntax error message every time I open Terminal on macbook

-bash: /Users/admin/.bash_sessions/720116FC-4C25-4FFA-AC15-00D5C843C15F.session: line 1: syntax error near unexpected token (' -bash: /Users/admin/.bash_sessions/720116FC-4C25-4FFA-AC15-00D5C843C15F....