- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- about a x window program executing
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2002 07:57 PM
03-05-2002 07:57 PM
about a x window program executing
I want to run an X window progran through CRON mechnism ,but I found there are some questions .who can tell me how I should to set the environments variables to run an X window program through CRON mechnism ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2002 08:07 PM
03-05-2002 08:07 PM
Re: about a x window program executing
doesn't an X program need a valid
display on which to run?
export DISPLAY=IP:0.0
if so you would need some from of tty in
which to do this. crons do not run on a
tty they run in the background.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2002 10:54 PM
03-05-2002 10:54 PM
Re: about a x window program executing
xterm -bg gray90 -fg gray10 -display 127.0.0.1:0 &
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2002 09:30 PM
03-06-2002 09:30 PM
Re: about a x window program executing
There are a few ways:
In the command field of your crontab file, put:
export DISPLAY=
or as already said, you can append on the command the -display
However, there are a few program which don't have this option. Eg. xhost doesn't have this option, but then, it's not really a X client program, but rather a manager of sorts of the X server.
Cheers.
- Andy Gray
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2002 05:18 PM
03-08-2002 05:18 PM
Re: about a x window program executing
to be safe, you'll need an "virtual fram buffer", like VNC, or like it is part of the recent X-server of HP-UX.
Then point your cron-job towards it:
# cron job:
export DISPLAY=5.4.3.2:1.0
your-x-client ...
where "5.4.3.2" is the IP-address of the frame-buffer, and "1" is the server-process number of it (since "0" usually is the local graphics screen).
HTH,
Wodisch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2002 07:10 PM
03-08-2002 07:10 PM
Re: about a x window program executing
While this should be done anyway in /etc/profile, etc, it is easier to get your script started by adding all the environment settings to your script, including the DISPLAY variable.
Bill Hassell, sysadmin