See below. Also it would be a lot easier for people to follow this thread if you will post your reply at the bottom and not the top. We read from the top to bottom. So posting at the top becomes confusing.
On Wednesday 26 September 2007 13:46:16 houh wrote: > Tx for the reply. > Currenlty Iam using Exceed and I believe it is like VNC. > > The issue I have is that OpenOffice looks for the DISPLAY > variable else it will not run. Iam not sure which config file > this is stored in OpenOffice. So running a cron script on a > server that is not logged on, OpenOffice (even with running it > using the -headless option) will not run on that server. Also, if > I run OpenOffice with -headless option on the serer and then I > logout from the server, the OpenOffice process dies. I need to > run a cron script that fires a java app that uses OpenOffice on a > server without the need to set the display variable for > OpenOffice to run and be logged on to the server. > Please provide yopur feedback > > Hussein > > linuxmaillists wrote: > > On Friday 21 September 2007 13:42:26 houh wrote: > >> The problem is with OpenOffice itself and not with the cron > >> job that runs the java application. > >> under linux, In order for the java application to run the > >> reports using OpenOffice and save them, openOffice has to be > >> running on the server and the report will be displayed on the > >> screen and then saved to a destination file and then the > >> report will be closed (this is automated in the java app). > >> This is all performed by running the reports on the screen . > >> This means that OpenOffice requires that the server will logon > >> all the time. Iam looking for a way that OpenOffice can run > >> silently in the background and still be able to save the > >> reports by the java application. Currently I run OpenOfffice > >> in Linux as: soffice > >> "-accept=socket,port=8100;urp". This opens OpenOffice blank > >> document. If I close this document, OpenOffice process > >> terminates. When the java app runs the reports using > >> OpenOffice, the reports are displayed on the screen and then > >> saved. Iam not sure if there is an option that allows > >> OpenOffice to run silently in the background so that if the > >> server that OpenOffice is not logged on, OpenOffice will still > >> be running and the java app will generate the reports and save > >> them. > >> > >> Tx again > >> > >> Hussein > >> > >> linuxmaillists wrote: > >> > On Friday 21 September 2007 10:41:37 houh wrote: > >> >> These scripts are run by CRON and not user initiated, the > >> >> scheduler in Linux. to invoke the list of scheduled jobs, > >> >> you can type: > >> >> crontab -l > >> > > >> > I am still missing what you are trying to accomplish. It > >> > sounds like you want to have a session running that is > >> > running your automated cron job without you or any one else > >> > actually logged into the server. > >> > > >> > SSH and VNC has the means to log in to a remote computer > >> > start a session have some job running and then the user who > >> > logged in can break their connection without closing the > >> > session. Whatever job is running will still be running > >> > because the session was not closed, it was just disconnected > >> > from by the user. > >> > > >> > If you don't want the user having anything to do with this > >> > process why won't this method work for you? What am I > >> > missing? > > > > What I told you will work but you don't seem to be grasping it. > > If all you are trying to do is have a process running without > > being logged into the server (display:0) than start the > > vncserver, on the server you want to run your process, to allow > > a connection on display:1 or higher then log off the machine > > locally (display:0) do a remote log into the box through > > ssh/vnc connecting to display:1 or higher, start OpenOffice.org > > and the java app and run cron. Leave it all running simply > > close the shell/vnc window without doing a log off like you > > would at the local box. Your process will be running and any > > time any one logs into the server locally (display:0) they will > > not even see the OpenOffice.org running because it is running > > on display:1 or higher not display:0. The process will run > > until you log back in remotely and stop it or the server powers > > down. If you want the process to run without any one seeing it > > this will work. > > > > Display:0 is reserved for local GUI display sitting in front of > > the monitor. Display:1 and higher is for remote GUI display. > > Whatever process or application that is started in display:1 or > > higher will continue to run even though you closed the > > shell/vncviewer window. None of what is started in display:1 or > > higher through the remote log in, which, is no longer > > connected, will be seen on display:0 when logged into the > > server locally but the entire process is still running in the > > back ground on display:1 completely invisible to any one logged > > on to display:0. I do not know what Exceed is or does. But VNC allows you to run the VNC server on the remote server that you want to run your process. Once you start the VNC server it is running even if you are not logged in to the remote server locally or otherwise. You connect (You are not logging in and starting a desktop session it is already running you are just connecting to it.) to that VNC server on the remote server from a local box with the VNC viewer. Once you are connected remotely to the VNC server with the VNC viewer on your local box, you can start any process you want on the remote server and it will run in that session that you connected too that was already running before you connected. You can close the VNC viewer (I did not say log out of the remote server) on the local box you were at to remotely connect to the VNC server on the remote server. Closing the VNC viewer on the local box will not terminate anything on the remote server because it is not running on the remote server. Because you are not logging out of a session you are just disconnecting your remote box from the session and it continues to run even though you are not connected any more. So whatever process you started is still running. This will give you exactly what you want. Try it, you have nothing to lose. What you are doing now isn't working any way. -- http://24.197.142.167/ See the OpenOffice.org FAQ Microsoft users go to http://www.pclinuxos.com for a great user friendly Linux experience! --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
