Name

call — Executes a YCP client or a Y2 client component.

Synopsis

any call ( string name ,
  list arguments );
 

Parameters

string name

client name

list arguments

list of arguments

Return

any

Description

This implies * that the called YCP code has full access to all module status in the currently running YaST.

The modulename is temporarily changed to the name of the called script or a component.

In the example, WFM looks for the file YAST2HOME/clients/inst_mouse.ycp and executes it. If the client is not found, a Y2 client component is tried to be created.

Usage

  call ("inst_mouse", [true, false]) -> ....