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:
-------------------------------------------------------------------------
#!/bin/bash
#/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
/root/kylix/entwickler/patternsapp
-------------------------------------------------------------------------
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
places:
/etc/ld.so.conf
or
LD_LIBRARY_PATH
Typically, /etc/ld.so.conf 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/ld.so.conf 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.