Articles   Members Online:
-Article/Tip Search
-News Group Search over 21 Million news group articles.
Member Area
-Account Center
-Top 10 NEW!!
-Submit Article/Tip
-Forums Upgraded!!
-My Articles
-Edit Information
-Become a Member
-Why sign up!
-Chat Online!
-Indexes NEW!!
-Build your resume
-Find a job
-Post a job
-Resume Search
-Link to us
Visit Embarcadero
Embarcadero Community
Run Kylix GUI programs directly from a console Turn on/off line numbers in source code. Switch to Orginial background IDE or DSP color Comment or reply to this aritlce/tip for discussion. Bookmark this article to my favorite article(s). Print this article
execute from a script 09-Jan-05
Kylix All Versions
User Rating
No Votes
# Votes
Kleiner, Max
Reference URL:
Max Kleiner
			It can be useful to start a Kylix app from a console in cooperation with a
scheduler like cron or crontab. We have to write a short script and should
not forget to add the display variable, which is set in the environment file.
Check your display in a console with the command .

Then in the script enter the name of the X display you want the application to run 
on, so the X window system has to know which display to use.
For example a scheduler wants to run patternsapp, the script goes like this:

#/opt/kylix >/dev/null
# patternsapp starts from cron timer each week

export DISPLAY=limax:0
export PATH=$PATH:/opt/kylix2/bin:/opt/kylix2/lib:/root/kylix/entwickler
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/kylix2/bin:/opt/kylix/mylib


LD_LIBRARY_PATH is an environment variable you set to provide the runtime shared 
library loader an extra set of directories to look for when searching for shared 
libraries. You can list multiple directories, separating them with a colon (:). 
The access of libraries is controlled by almost two settings on a Linux system: An 
entry listing the directory which contains the required libraries in one of two 


Typically, /etc/ will already have a number of directories listed, so 
simply copying the files into an already listed directory would do.
In comparison with W2k, the use of /etc/ or a directory listed there-in 
is equivalent to copying the shared library to the (system-wide) \WinNT\System32 
folder; A common convention for locating such community shared object files on 
Linux systems is to place them in the /bin directory. 

Using LD_LIBRARY_PATH is equivalent to specifying application-specific search paths.

At least you want to check the script. 
To start a own console:
1. Press Ctrl+Alt+F1  to go to your main console.
2. Log on to Linux.
3. Execute the script.
4. To switch between displays, type Ctrl+Alt+F7 to get back to display 0.

Vote: How useful do you find this Article/Tip?
Bad Excellent
1 2 3 4 5 6 7 8 9 10


Share this page
Download from Google

Copyright © Mendozi Enterprises LLC