page1

Practical Introductions


If you want to use a perlscript in YCP you have two posibilities:

1.The fastest way: fire and forget


You can call your perlscript via the target agent:

SCR(`Execute (.target.bash, "call script" )

SCR(`Execute (.target.bash, "/usr/lib/myperscript -nofaults ")
With this method you can easiely send input data via commandline. As output you only get the exit code of your script see target agent for detail


2.Second possibility:

Use the perl-binding:

2.1 pro:
2.2 con:
Next >>