About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
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/>
[{"Product":{"code":"SSFVK3","label":"IBM Sterling Connect:Enterprise for UNIX"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Not Applicable","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]
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
Manage My Notification Subscriptions