Operating System - HP-UX
1754304 Members
2745 Online
108813 Solutions
New Discussion юеВ

Is this shell scripting ?

 
intp
Frequent Advisor

Is this shell scripting ?

Hi,

I want to know what code is this ?
Is it unix shell scripting ?
If so where can i find help on these (submit,pnode,copy from ..etc ? ).
I couldn't find these in shell script document.

Pls help.

Thanks



/opt/cdunix/ndm/bin/ndmcli -x << EOJ
submit $1 process snode=$2
step1 copy from (file=$RMSDIR/$3.txt pnode)
ckpt = 250M
compress = extended
to (file=$3.txt disp=rpl snode)
if (step1 = 0) then
step2 copy from (file=$RMSDIR/$3.eot pnode)
to (file=$3.eot disp=rpl snode)
eif
test if (step1 = 0) then
if (step2 = 0) then
run task pnode sysopts="echo good > $RMSDIR/$1.ndmstatus"
else
run task pnode sysopts="echo bad > $RMSDIR/$1.ndmstatus"
eif
else
run task pnode sysopts="echo bad > $RMSDIR/$1.ndmstatus"
eif
pend ;
EOJ
4 REPLIES 4
Peter Godron
Honored Contributor

Re: Is this shell scripting ?

intp,
look to me like a command script passed into the ndm command line interface.
NDM is a file transfer product, but has been around a long time. Today most people use ftp.
Peter Godron
Honored Contributor

Re: Is this shell scripting ?

At a guess I would say the program does:
copy the file $RMSDIR/$3.txt from pnode to snode with certain controls (checkpoint at 250M in uncompressed format ?)

If this transfer worked copy the second file

Depending on the overall status write a message to the ops terminal
intp
Frequent Advisor

Re: Is this shell scripting ?

thanks . I'm able to figure out what process it does. But wanted to know exactly what scripting language is this, in case i need to make modifications later.

NDM(network data mnover) ? so is there any documentation available for this ?
Joel Girot
Trusted Contributor

Re: Is this shell scripting ?

Hi intp,
Network Data Mover. Former name of a software product from Sterling Commerce, now know as CONNECT:Direct.
http://www.sterlingcommerce.com/Products/AllProducts/Connect/direct.htm

Joel