Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Macro name changed from html to html-bobswift during server to cloud migration processing.

...

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

Panel

Html bobswift

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

(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:

Panel

Html bobswift

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


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

Panel

...

Html bobswift

<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:

Panel

Html bobswift

<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

...