Starting a program without it stealing focus


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Starting a program without it stealing focus
# 1  
Old 05-20-2011
Starting a program without it stealing focus

Hi all

I have a java program I'm starting in Mac os from the terminal using the command

Code:
java -Djava.library.path=/Users/me/Desktop/Cfiles/DynamicCTGLayout/build/Release  -jar [name of .jar file]

However, when I do this, my current program I'm using becomes "deselected" and the java program's GUI becomes "selected."
I'd like to know if there is a way to start my java program hidden or minimized via the command terminal, something equivalent to DOS's

Code:
start /min java ...

The reason I want to do this is because I want to write a script that will launch the java program many times and I'd like to do something else in the background.

Sincerely,
WhiteTiger
# 2  
Old 05-20-2011
Try with appended & at the end of you command line. It makes your program to run in the background and i guess this what you expect.
# 3  
Old 05-20-2011
no, that doesn't work
if I do that, indeed, the console doesn't have to wait for the application to finish for me to keep typing, but the java GUI still steals the focus and becomes the currently selected program.

I need it actually hidden or minimized right off the bat
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Monitor keypresses without focus?

Hi all, I'm new to Linux, been at it a couple weeks. I have written a script that basically acts as a watchdog to ping a server on a set interval, make sure chromium-browser is running, and a couple other things (it displays data via web browser). I'd like to make it stop the script when I hit... (4 Replies)
Discussion started by: strategery
4 Replies

2. UNIX for Dummies Questions & Answers

How to grep a line not starting with # from a file (there are two lines starting with # and normal)?

e.g. File name: File.txt cat File.txt Result: #INBOUND_QUEUE=FAQ1 INBOUND_QUEUE=FAQ2 I want to get the value for one which is not commented out. Thanks, (3 Replies)
Discussion started by: Tanu
3 Replies

3. What is on Your Mind?

Learning System Administration: What to focus on?

In the fall I am taking courses in System Admin and Networking Admin, along with Cisco classes. Sometime next year I hope to get Red Hat and CCNA certifications, then try to get some experience and a job. I am wondering what I can focus on in the meantime (and in my spare time) that will... (1 Reply)
Discussion started by: ScottLew
1 Replies

4. UNIX for Dummies Questions & Answers

Display command stealing focus

Please Help a Newbie, I'm using the display command to post a picture of several configurations for a machine operator to choose from. The Issue I have is when I display the image the displayed image steals focus from my bash window. The operator then has to re-select the window to answer the... (1 Reply)
Discussion started by: BitBoy
1 Replies

5. UNIX for Dummies Questions & Answers

tcpdump - stealing storage

Hello, I hope someone can explain something to me just so I can understand why this took place: We have Avaya telephony servers that are running RHEL 5 on them. A week ago, callers were dialing into the server and could not hear a ".wav" file that was supposed to be played in an AVP IVR. ... (1 Reply)
Discussion started by: truecall
1 Replies

6. Shell Programming and Scripting

Starting a C++ program from shell script

Hi, I have a little problem...I want to do the following things: Have my own little script that has 2/3 functions and starts a c++ application using some parameters. The problems appear when I start the c++ app using the shell script, the c++ takes over and after I ctrl+c the script... (0 Replies)
Discussion started by: valiadi
0 Replies

7. Shell Programming and Scripting

how to send a key to a windows without focus

Hi, i found xte and xdotool for sending some keys to windowed applications but they need to have the focus on it. Can someone say me if i can do the same but wihtout focusing the window i want to type something ? edit: xreplay (0 Replies)
Discussion started by: linked
0 Replies

8. UNIX for Dummies Questions & Answers

Gnome focus

Hello all, Is there a way to make sawfish window manager focus on a gui when you click it but not make it raise to the top? I know that motif and CDE (soalris) allow you to focus with out raising the windows. THANKS (2 Replies)
Discussion started by: larry
2 Replies
Login or Register to Ask a Question