Now we can start the program using YaST. For this,
we will use a script /sbin/yast2
.
It is an envelope for easier setup of a running
YaST environment.
So if you are reading this document with a browser, you could
copy-and-paste the program listed above into a file
hello.ycp
, and then run
/sbin/yast2 hello.ycp
which should render the following
“spectacular” result.
Starting off with this simple example we will now explore the more
subtle details of YCP
. Since all programming is about handling of data
there must be a way to hold it in variables of different types. In the
next section you will get to know the various data types that YCP
knows about.