Versions Compared

Key

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

...

Enter username and password, in a single parameter together with the preferred command. When the command is executed, the command prompt is returned to the Unix shell.

mzsh can also read commands from the standard inputThe standard input can be passed to mzsh using the standard unix command xargs. This means that commands that are meant to be executed can be included in a script file or simply let other commands produce the commands for it, see the following example.

Info
titleExample - Non-interactive mode


Code Block
languagetext
themeEclipse
$ while read wf ; do 
echo wfstart $wf
done < my-wfs.list | xargs mzsh mzadmin/<password> wfstart


The command in the example reads the names of the workflows included in the file my-wfs.list and generates start commands for each of them. The output of this action is then fed from standard input as arguments to mzsh.

...