Am 22.10.2007 um 22:50 schrieb Benilton Carvalho:

> if [ ! ${SSH_TTY} ]; then
>     if [ "`ps -x | awk '{print $5}' | grep X11`" = "" ]; then
>         open /Applications/Utilities/X11.app &
>         osascript -e 'tell application "Terminal" to activate'

You could also test for the presence of $PROMPT. If it exists, then  
it's an interactive shell.

--
Greetings

   Pete

"Give a man a fish, and you've fed him for a day. Teach him to fish,  
and you've depleted the lake."



--~--~---------~--~----~------------~-------~--~----~
"Carbon Emacs" group mailing list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/carbon-emacs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to