Two very useful things I learned too late...

2 replies [Last post]
Ex-parrot's picture
Offline
Joined: Dec 20 2003
Posts: 6835

You can multitask at the console! Something which took me far too long to figure out.

When launching an app[b]

#appname & launches the app in the background
#appname & launches the app in the foreground

[b]When an app is already running

Ctrl + Z makes the app stopped (no longer running and backgrounded).

Job Management

#jobs lists the current jobs you have running
#fg [job number] put a job in to the foreground
#bg [job number] put a job in to the background

Now use these skills wisely!
First post.

__________________

Michael

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
catmistake's picture
Offline
Joined: Dec 20 2003
Posts: 1098
its never too late

/Applications/~app~/Contents/MacOS/~app~ &

launch multiple instances of Cocoa apps, as many as you want...
the & is supposed to return you to the command line... but I'm getting some weird error about unnamed Mach port that I have to ctrl-c out of... but the app still launches

Vellos's picture
Offline
Joined: Dec 19 2003
Posts: 58
The joys of timesharing UNIX,

The joys of timesharing UNIX, implemented back in the 70's. Laughing out loud

But yeah, I use this all the time if I'm editing and compiling code from an SSH session on a Linux box. I'll suspend my text editor for the .java file, and run the compiler while it's suspended, and then bring it back forward when I need to use it. This has been around forever, but it doesn't make it any less useful.

__________________

http://vel.ath.cx:8080/