Remote cron jobs


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Remote cron jobs
# 1  
Old 11-09-2007
Remote cron jobs

I'm ssh'ing into a remote machine, and I'm trying to set up a cron job on it. The cron job requires a graphical program (Open Office), but the ssh host is a virtual host that isn't letting me open Open Office. I can open it via the terminal in a ssh session with X11 forwarding, but I get this error when the cron job tries to run:

X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=root>

/usr/lib/openoffice/program/soffice.bin X11 error: Can't open display: localhost
:10.0
Set DISPLAY environment variable, use -display option
or check permissions of your X-Server
(See "man X" resp. "man xhost" for details)

The DISPLAY environment variable is set to localhost:10.0 during the cron job, so that isn't the problem.
# 2  
Old 11-09-2007
It is a really bad idea for a cronjob to require access to an Xterminal. An Xprinter maybe but not a graphical terminal.

What are you trying to achieve?
# 3  
Old 11-09-2007
I need to run an open office script to get open office to convert some documents into PDFs for me. I'm running "ooffice -invisible", but this still tells me it needs X11 (I can't do it in a ssh session that doesn't have X11 forwarding).
# 4  
Old 11-09-2007
The you would need to set up an Xprt server, this is like an X server for a video terminal, except it's output goes to a printer.
# 5  
Old 11-09-2007
I don't need to print. The script simple takes documents from one location and saves them as PDFs into another location.
# 6  
Old 11-09-2007
You don't need to show anything on the screen either, but openoffice still wants to connect to an X server.
# 7  
Old 11-09-2007
that's correct
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Cron Jobs

How to see which cron jobs are not running? (2 Replies)
Discussion started by: rahul.raj1989
2 Replies

2. Red Hat

Cron jobs

I'm running cronjobs on a redhat 5.X. Cronjobs are getting failed frequently so how to find the root cause (2 Replies)
Discussion started by: karthik9358
2 Replies

3. Solaris

Cron jobs and at jobs

There are two jobs in Solaris , Cron and at jobs.. I know how to disable or enable cron jobs. How can I enable at jobs and disable it. Kindly help. Rj (2 Replies)
Discussion started by: jegaraman
2 Replies

4. UNIX for Dummies Questions & Answers

cron jobs

Hi, We have a group of hosts using which the cron jobs are submitted... Few days ago i had submitted a cron job in of these hosts, but unfortunately forgot the host name :( Can anyone please help me out in finding this host name from which the cron s submitting the job, i dont want the... (2 Replies)
Discussion started by: bhavanisree
2 Replies

5. Solaris

cron jobs

how to Put a cron entry which should be same script triggered on every Saturday and 1st of every month at 01.00 GMT. 0 2 1 * 6 --( At 2.00 GMT every sat & on 1st of every month) the above syntax is correct? Thanks (1 Reply)
Discussion started by: kurva
1 Replies

6. Linux

cron jobs

I created a php script. I'd like to have it run as a cron job every day at 10:30am. So i added 30 10 * * * /script.php to the cron file Is it possible to run the script on the command line to test it out ? (1 Reply)
Discussion started by: dannyd
1 Replies

7. Solaris

Cron Jobs

I'm trying to run cron jobs to start any inhibited processes after a system reboot. I can schedule th cron, but i'm confused as to how to incorporated the reboot, since reboot is scheduled at different times, once every month. How can I write this to start every 15 min after after a reboot ... (2 Replies)
Discussion started by: Remi
2 Replies

8. UNIX for Advanced & Expert Users

cron jobs

I need to monitor my cron jobs with another unix machine since occasionally the cron will go down on the main server but there are no errors. Can anyone help with a script to write to use the cron on the back up machine to monitor the main server? I am using SCO and the cron jobs have been... (3 Replies)
Discussion started by: rmarral
3 Replies

9. UNIX for Dummies Questions & Answers

Cron Jobs

Where can someone find info on Cron Jobs? Very new to UNIX and the PC I inherited looks to have several of them. Looks like they are some kind of background program that runs automatically at specified times. Would like to delete some of them and know more about them. (6 Replies)
Discussion started by: dereckbc
6 Replies

10. UNIX for Dummies Questions & Answers

cron jobs

I was wondering if itīs possible to cron job not to run on a certian day and time. Iīve got a job that runs everyday at 08:00 but would like it not to run on the 20:th between 08:00 and 10:00 Anyone know if this is possible, and if. How do i do it? regards... dOzY (3 Replies)
Discussion started by: dozy
3 Replies
Login or Register to Ask a Question