[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
You can use variables in `dio87d' and `dio87d'. A variable is identified by a unique name and has a value which is a string.
For example, we will create three variables `var1', `var2' and `var3'. `var2' is created with an initial value : `a_value'.
$ dio87d -d $ dio87d -d $ $ dio87c vc 0 $ dio87c va var1 $ dio87c va var2 a_value $ dio87c va var3 $ $ dio87c vc 3 $ dio87c -- vl -v var1 var2 a_value var3 |
va
command is used to create a new variable. The first parameter
is the name of the variable. The second optional parameter is an initial
value. vl
is used to print variable list. `-v' option prints
value of each variable.
You can use vsv
command to change a variable value. For example,
we will change the value of `var3' :
$ dio87c -- vl -v var1 var2 a_value var3 $ $ dio87c vsv var3 value_of_var3 $ $ dio87c -- vl -v var1 var2 a_value var3 value_of_var3 $ |
This variables are created in `dio87d' daemon because we used dio87c
utility. But you can create variable in `dio87d' daemon with dio87c
utility :
$ dio87c vc 0 $ dio87c va var1 $ dio87c va var4 $ $ dio87c vc 2 $ dio87c -- vl -v var1 var4 $ dio87c -- vl -v var1 var2 a_value var3 $ |
vk
is used to delete a variable :
$ dio87c vl var1 var2 var3 $ $ dio87c vk var2 $ $ dio87c vl var1 var3 $ |