Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This job contains a pre-processing job (API job) which is executed before the main script (the shell job) is executed:

Code Block
collapsetrue
<?xml version="1.0" encoding="ISO-8859-1"?>

<job  process_class="my_Agent">
    <script  language="powershell">

echo "job is starting"
sleep 10
echo "job is finishing"

    </script>
    <monitor  name="process_powershell" ordering="0">
        <script  language="powershell">
            <![CDATA[
		function spooler_process_before()
		{
		$files = get-childitem *
		echo $files
		$spooler_log.info("hallo")
		return $true
		}
            ]]>
        </script>
    </monitor>
    <run_time />
</job>

...