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?
> >
> > --
> > 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]

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.

-- 
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]

Reply via email to