The default Unix shell used by Terminal in Mac OS X
0
votes
2answers
35 views
Compress files with the output name same as Parent Folder with Automator
I've been searching the internet for a solution to this. I would like to create an Automator workflow that will zip the selected files, name the zip the name of the Parent directory and save that zip ...
4
votes
1answer
144 views
How to reset $PATH?
I was trying to add something to $PATH and it went totally wrong. I now can't run any commands such as ls. I've looked at this answer and used the following lines:
...
4
votes
1answer
144 views
declare -x messages appear in my terminal. How can I get rid of it?
declare -x Apple_PubSub_Socket_Render="/tmp/launch-qoybJQ/Render"
declare -x Apple_Ubiquity_Message="/tmp/launch-DWchNf/Apple_Ubiquity_Message"
declare -x COMMAND_MODE="unix2003"
declare -x ...
2
votes
1answer
67 views
Compare multi-digit version numbers in bash
Trying to write a script that searches for the version of the Application then returns the value. My problem is the value is three to four intergers long (example 4.3.2).
I have searched for a while ...
1
vote
1answer
33 views
How to get inode from alias file?
In this MacWorld forum thread aliases are described as
Aliases can reference an object in the file system either by a
persistent ID or by path. Generally they will contain both
pieces of ...
1
vote
1answer
44 views
How to invoke a script when closing any file with a given extension
Is it possible to automatically invoke a given applescript when closing -any- file with a given extension in a specified folder (and subfolders)?
If not in AS, is this possible in bash? (The AS I am ...
0
votes
1answer
222 views
Allow the Terminal.app to pass command key based keystrokes to terminal programs
I want to allow programs running in the terminal the ability to interpret the keyboard short cut Cmd + S
I have already Remapped the Terminals' default binding of Cmd + S to Ctrl + S via the ...
2
votes
0answers
38 views
How to find delay when launching new Terminal (iTerm)
When I press CMD+N in iTerm2 to bring up a new iTerm window, sometimes it takes 10 seconds before I get my prompt. If I immediately repeat the process, the whole thing takes 1 second. To me this ...
2
votes
0answers
606 views
Why don't my aliases in .bashrc work?
I have Lion on my Mac Air. I wrote some aliases in ~/.bashrc file, which looks like:
# Aliases
alias p='pdflatex *.tex;open *.pdf'
alias bromine='ssh administrator@bromine.org'
I then sourced my ...
1
vote
0answers
25 views
Terminal configuration lost after booting up
On OS X 10.8.3, my Terminal.app is configured with my .bashrc file. In my .bash_profile I have:
source .bashrc
It works great, except when I let some Terminal windows opened and shut down the Mac. ...
1
vote
0answers
36 views
Can an alias be added to the dock via the command line?
I found this article but it handles the GUI solution.
I would like to automate the setup of a new machine, and do that I've created Dropbox shares of a number of my common configurations. (I could ...
1
vote
0answers
34 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?
...
0
votes
0answers
20 views
Making checks before rsyncing external drive on OSX
I have the following issue on OSX though I guess this could equally be filed under bash. I have several encrypted portable drives that I use to sync an offsite data store or as an on-the-go data store ...
0
votes
0answers
62 views
Can I start a named VPN connection from a shell script?
I'd like to start a VPN connection from a bash script. I've managed to figure out mostly how to do this with the pppd executable, but that won't work for my purposes. This VPN shows up in the network ...
0
votes
0answers
30 views
pbpaste and aira2
I'm creating alias to do few things and run into a problem:
Alias executes couple commands and on success starts download of resulting url, which is being copied into clipboard. Everything works fine, ...
0
votes
0answers
87 views
Login hook to test if this is first login
I want to know if a login hook runs before or after a home directory is created in /Users during the first time a user logs in. If the home directory is created before the login hook runs, then I want ...
0
votes
0answers
512 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 \;