Versions Compared

Key

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

...

Anchor
1091845
1091845
In this example, the exec command runs on a UNIX system via UCMD Manager and executes the sh command to a remote UNIX system using UCMD Server. With a shell interpreter, such as Cygwin, installed under Windows, the same example would also apply to a Windows system. The example was tested using Linux as both the local and remote platforms.

...

Anchor
1091966
1091966
Due to this difference, in this example stdout.txt is created in the current directory as set by the shell script and in the Windows example it is created in the UCMD server working directory.

Panel
1. set echo=yes
2. open r=houston user=joe pwd=abcdefg port=7887
3. exec r cmd="sh /home/joe/wrk/xmp/ls/ls.sh" user=joe pwd=abcdefg port=7887
4. quit 

Anchor
1091789
1091789
UDM Script Explanation

...

Panel
2011.07.68 10.13.06.845 UNV2800I Universal Data Mover 6.3.0 Level 0 Release Build 104 started.
2011.07.68 10.13.06.845 Processing script: ls.udm
2011.07.68 10.13.06.847 open r=houston user=joe pwd=* port=7887
2011.07.68 10.13.07.114 Data session established using cipher: NULL-MD5
2011.07.68 10.13.07.159 Two party session established with r (component 1278600806)
2011.07.68 10.13.07.161 Transfer mode settings:
2011.07.68 10.13.07.198   type=binary
2011.07.68 10.13.07.198   trim=no
2011.07.68 10.13.07.198 Session options:
2011.07.68 10.13.07.198   Keep Alive Interval:    120
2011.07.68 10.13.07.198   Network Fault Tolerant: yes
2011.07.68 10.13.07.198 exec r cmd="sh /home/joe/wrk/xmp/ls/ls.sh" user=joe pwd=* port=7887
ls.sh
stdout.txt

2011.07.68 10.13.08.072 quit 
2011.07.68 10.13.08.074076 Session closed
2011.07.68 10.13.08.074076 Finished processing script: ls.udm
2011.07.68 10.13.10.074076 UNV2801I Universal Data Mover 6.3.0 Level 0 Release Build 104 ended successfully.

UDM exec Command Parameters

The exec command parameters used in this example are:

Parameter

Description

cmd

Command to execute on the remote system using command type cmd (command).

user

Remote user ID with which to authenticate and execute the command on the remote system.

pwd

Password with which to authenticate the user ID on the remote system.

port

Port that the Universal Broker is listening on for the remote machine. The port is inherited from the UDM Manager's configuration file unless explicitly overridden in the call to the exec command.

Components

Universal Data Mover Manager for UNIX

Universal Command Server for UNIX