Pick of the Week - Nov 10 [Show all picks]
Path Finder 5 - A feature-laden Finder replacement
Submit Hint Search The Forums LinksStatsPollsFAQHeadlinesRSS
12,000 hints and counting!


Click here to return to the 'Use Growl to monitor long-running shell commands' hint
The following comments are owned by whomever posted them. This site is not responsible for what they say.
Use Growl to monitor long-running shell commands
Authored by: kyngchaos on Thu, Oct 11 2007 at 8:42PM PDT
I don't think sourced shell init files need to be executable. .bash_profile isn't. I didn't make .preexec.bash executable, and it works for me.

But I do have the unhelpful "Some command" message.


[ Reply to This | # ]
Use Growl to monitor long-running shell commands
Authored by: sapporo on Fri, Oct 12 2007 at 1:40AM PDT
To debug the "Some Command" problem, you could start by adding a line to preexec() that displays the command it stores in the environment:
function preexec () {
	export PREEXEC_CMD="$BASH_COMMAND"
	echo "DEBUG: PREEXEC_CMD set to '$BASH_COMMAND'"
	export PREEXEC_TIME=$(date +'%s')
}
If that looks correct, then something goes wrong in precmd().

[ Reply to This | # ]