PeterTaps
February 28th, 2012, 09:41 PM
Folks,
I am developing a Java based application that acts as a server and, based on client requests, it can spawn GUI applications such as VLC. The idea is to control some features of VLC and other GUI applications remotely.
The way it works today is that the user starts the application manually from a terminal window:
$ java -jar /home/peter/MyServer.jar
The application starts listening on a socket. It also waits for terminal input. If the user enters "quit" from the terminal, the application quits.
This works as expected. From a remote client application, I am able to spawn VLC and other GUI applications as needed.
Now, I would like to run this application automatically when the user session starts. I tried adding the following command from "Startup Applications" GUI
java -jar /home/peter/MyServer.jar > /home/peter/myout.txt 2>&1
However, this does not fire up at all.
Is there any log file that I can look at to see why this doesn't work?
I would appreciate it if you could share your thoughts on what is the right way to write such application. I am guessing waiting for "quit" from console is probably not a good idea.
Regards,
Peter
I am developing a Java based application that acts as a server and, based on client requests, it can spawn GUI applications such as VLC. The idea is to control some features of VLC and other GUI applications remotely.
The way it works today is that the user starts the application manually from a terminal window:
$ java -jar /home/peter/MyServer.jar
The application starts listening on a socket. It also waits for terminal input. If the user enters "quit" from the terminal, the application quits.
This works as expected. From a remote client application, I am able to spawn VLC and other GUI applications as needed.
Now, I would like to run this application automatically when the user session starts. I tried adding the following command from "Startup Applications" GUI
java -jar /home/peter/MyServer.jar > /home/peter/myout.txt 2>&1
However, this does not fire up at all.
Is there any log file that I can look at to see why this doesn't work?
I would appreciate it if you could share your thoughts on what is the right way to write such application. I am guessing waiting for "quit" from console is probably not a good idea.
Regards,
Peter