Tagged Questions
0
votes
1answer
31 views
Python launching problems OS X
I'm trying to install python on mac OS X 10.7.5. I installed it from MacPort and I think before I did, I screwed up $PATH somehow. It seems to install fine but then when I try to run ipython I get
...
4
votes
1answer
146 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 ...
1
vote
1answer
239 views
How can I set Last Modified Date of file after using HandbrakeCLI to convert a file?
Running this on OS X Lion.
I'm batch converting several hundred home movies using Handbrake CLI. I'd like to set the last modified date and created date to that original file.
I'm using the ...
1
vote
1answer
68 views
.bash_profile not running with multiple commands
I am having an issue with my .bash_profile script.
If I simply have the line
source ~/sh/bashmarks.sh
the bashmarks.sh script runs as expected.
However, if I add an alias
source ...
0
votes
1answer
407 views
Can't get commands inside .bash_profile startup script to run
From my bash shell (latest version of Lion) if I issue the command...
source ~/sh/bashmarks.sh
The bashmarks.sh script will run and the functionality it provides is available. However I don't want ...
7
votes
4answers
2k views
AppleScript vs. Bash script?
I'm a long-time Windows "power user" and developer who has recently decided to move over to Mac OS X.
On OS X Lion and indeed previous versions there seem to be two main options for scripting and ...
4
votes
3answers
706 views
Is it possible to have bash escape spaces in pwd?
I'd like to copy the current directory to the clipboard, something like: pwd | pbcopy. However, pwd does not escape the space, so something in "Application Support", for example, doesn't copy ...
3
votes
1answer
264 views
How do I find where an environmental variable got set?
I installed a program to try it out, and decided I didn't like it so I moved the app to the trash.
Today, in my shell, I noticed that there are a couple of PROGRAMNAME_BLAHBLAH environmental ...
1
vote
4answers
130 views
How to obtain Bluetooth ID (OS X)
I need to remotely grab the Bluetooth ID from multiple machines throughout my network. What are the best ways to remotely obtain the Bluetooth ID in OS X?
0
votes
1answer
228 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 ...
3
votes
2answers
199 views
How to search for a file by a hash value with bash script (terminal)?
I am writing a script for Mac OS X Lion 10.7 and I would like to know how I can search for files based on their SHA1 hashes. I would like to search the whole file system for the file(s) I will be ...
2
votes
2answers
149 views
Lion Fullscreen Desktop Switching Quirk
I make Java programs, many of which require input from the command line before they actually open a window. When I'm using the Terminal in fullscreen mode and I run java Program, it jumps over to an ...
1
vote
1answer
589 views
How to change bash version with homebrew
I have used homebrew to install the newest version of bash on my local system. I have added a symbolic link from: /usr/local/bin/bash to /usr/local/Cellar/bash/4.2.20/bin/bash and added the line: ...
0
votes
3answers
164 views
Why does Terminal ignore capital “B”?
this happens to me from time to time: when I am using the Terminal, suddenly the terminal starting to ignore the capital 'B', regular 'b' works fine, other capital letter work fine. other applications ...
1
vote
1answer
423 views
Run a Cocoa application on Lion as another user
I'm trying to run an application as the user 'steve' with the window displayed on my desktop ( brendan ).
This is what I have been doing so far.
sudo -u steve open -a /Path/To/MyApplication.app
...
3
votes
2answers
607 views
Bash script to toggle wifi in lion
Is it possible to have a bash script that toggle my wifi on and off? I am using lion (10.7.2).
1
vote
2answers
489 views
What changes have been made to bash in Lion?
I am working on some bash shell scripting for a local login script and it works fine on Leopard and Snow Leopard but fails on Lion. I was curious if there was a place that listed the differences in ...
18
votes
3answers
4k views
Is it safe to upgrade Bash via Homebrew?
I'm new to OS X. I'm running OS X Lion on a MacBook Pro. Is it safe to upgrade the bash shell using Homebrew:
$ brew install bash
If safe, how do I make it the default instance of the shell I run ...
3
votes
5answers
2k views
Why do I have to source ~/.bash_login every time I open Terminal
When ever I close and open Terminal.app, it never loads my ~/.bash_profile. I have my RVM setup at the top of the file but it never loads it.
As you can see, when I type rvm into Terminal, it says ...
1
vote
2answers
209 views
show battery in prompt and have it update after every command
i just fresh-installed Lion, and i am in the process of seeing up my system.
i am using this function (found somewhere online...) to show it in the prompt :
battery_status()
{
maxcap=`ioreg -l | ...