- Joined
- Oct 19, 2009
- Messages
- 17
- Reaction score
- 2
- Points
- 3
- Your Mac's Specs
- MacBook Pro 13" 2.53GHz 4GB OSX 10.6
Hey everyone
I'm new to Mac OS, just switched from Ubuntu and sometimes its quite hard to get used to different stuff...
So, I searched the Internet for over an hour, but nothing could solve my problem. You will see it is quite simple (at least it was in ubuntu)
All I want to do is following:
To launch a particular program, I have to start X11 (xgterm), change directory and execute a command.
so basically its:
cd /iraf
xgterm -sb -geometry 80x24 -title "Image Reduction and Analysis Facility (IRAF)" -bg "black" -fg "orange" -bd "white" -cr "grey" -e "ecl"
and I don't want to type this every time I have to use the program. My question is: Can I create an alias, or write a script, so that I just have to type one simple command to execute those above in the bash?
Another thing is: In ubuntu I could launch all apps by typing their names (whatever was in /usr/local/bin). How do I create such a file, which enables me to launch a specific app from the terminal...?
I hope you can help me
cheers
I'm new to Mac OS, just switched from Ubuntu and sometimes its quite hard to get used to different stuff...
So, I searched the Internet for over an hour, but nothing could solve my problem. You will see it is quite simple (at least it was in ubuntu)
All I want to do is following:
To launch a particular program, I have to start X11 (xgterm), change directory and execute a command.
so basically its:
cd /iraf
xgterm -sb -geometry 80x24 -title "Image Reduction and Analysis Facility (IRAF)" -bg "black" -fg "orange" -bd "white" -cr "grey" -e "ecl"
and I don't want to type this every time I have to use the program. My question is: Can I create an alias, or write a script, so that I just have to type one simple command to execute those above in the bash?
Another thing is: In ubuntu I could launch all apps by typing their names (whatever was in /usr/local/bin). How do I create such a file, which enables me to launch a specific app from the terminal...?
I hope you can help me
cheers