Versions Compared

Key

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

...

Anchor
1154432
1154432
Syntax









Wiki Markup
*exec* \{_logical\-name_ *\|* _host\-name_\} \{cmd=_command_ \| cmdref=_command\-ref_ \| stc=_started\-task_\} \[user=_userid_\] \[pwd=_password_\] \[port=_port_\] \[codepage=_codepage_\] [file=_filename_ \| xfile=_filename_ \[key=_key_\]\] \[option=_option_\] \[mergelog=*yes*\|*no*\] \[trace=*yes*\|*no*\] \[input=_data\-element_\] \[svropt=_server\-options_\] 	\[stdout=_data\-element_\] \[stderr=_data\-element_\]









Description

The exec command executes system commands on remote machines if you have Universal Command (UCMD) Manager on the same system with the UDM Manager.

...

Use the following script snippet (or something similar) to exit based on a comparison of _execrc to _halton:

<pre>
exec cmd ...
if $(_execrc) GE $(_halton)
   set _rc=$(_execrc)
   exit
end
</pre>


Panel


Html bobswift

(See Remote Execution Requirements for more detailed information.)

...

The following example uses the exec command to execute a simple directory listing on a Windows machine that is part of a transfer session:

html-bobswift
Panel


<pre>
exec winmachine cmd="dir c:\"
</pre>



The following example uses the exec command to invoke a started task:

html-bobswift
Panel


<pre>
exec mvsmachine stc="mytask,parm=$(TASK_PARM)"
</pre>



The following example calls the exec command that uses a data element for input to the remote command:

html-bobswift
Panel


<pre>
# Define the data element
 
data shellinput
  echo "Comparing $(_file) with $(_file).old:"
  diff $(_file) $(_file).old
  exit
end

# Rename all existing files on the destination

forfiles dst=*
  rename dst $(_file) $(_file).old
end

# Copy the new files over and compare them*

forfiles src=*
  copy src=$(_file)
  exec dst cmd="sh" input=shellinput*
end
</pre>


Additional Information and Examples

...