Question & Answer
Question
How to call a Connect:Direct script or process using Perl programming (SCI48522)
Cause
Answer
Since there is no Perl API for Connect:Direct you will have to rely on the system function to perform a call to Connect:Direct in a Perl script.
#!/usr/bin/perl
use strict;
$ENV{NDMAPICFG}
="/home/cd3500/cdunix/ndm/cfg/cliapi/ndmapi.cfg";
my
$CDDIR="/home/cd3500/cdunix/ndm";
system("/home/cd3500/cdunix/ndm/bin /direct -x? <<EOJ<BR>submit maxdelay=0 proc1 process snode=meg.cd.v3500 snodeid=(cd3500, cdirect)<BR>? ? ? ? ? ? copystep? copy from (file=$CDDIR/bin/direct? pnode)<BR>? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? to (file=/tmp/test.me snode)<BR>pend ;<BR>? ? ? ? ? ;<BR>? ? ? ? ? EOJ");</P><br/>
Historical Number
PRI6641
Product Synonym
[<p><b>]Fact[</b><p>]
Connect:Direct UNIX
Release 3.4.01 [<br/>] SCI48522
[<p><b>]Goal[</b><p>]
How to call a Connect:Direct script or process using Perl programming
Was this topic helpful?
Document Information
More support for:
IBM Sterling Connect:Enterprise for UNIX
Software version:
All
Document number:
169353
Modified date:
17 December 2019
UID
swg21522009