Ndm scripting issue


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Ndm scripting issue
# 1  
Old 02-14-2014
Ndm scripting issue

Friends,

I am trying to use the below type of code in my script, but its not at all executing, its an ndm scripting called inside the shell script,

Any help is greatly appreciated,


Code:
 
vsource=/temp/ndm
vtarget=/temp/ndm
vlist=list.txt
for i in $( cat $dir/$file1 )
do
  v1=$i
  v2=$i.log
  ndmlog=$log
  ndmcli  -x << EOJ >> $ndmlog 2 >> $logdir/$Script.ndm
  submit maxdelay=unlimited  ${ndmSTEP}PROC1    process    snode=$vndmNODE
   ndmSTEP1    run task snode (PGM=UNIX)
    sysopts="mv $source/$v1 $vtarget/$v2 ; 
     cd $vsource; echo $v2 >> $vtarget/$vlist; cat $vtarget/$v2 >> $vlist"
   pend;
   EOJ
  done


Prerana,
# 2  
Old 02-14-2014
Remove those leading spaces in your here document and re-try:
Code:
dmcli  -x << EOJ >> $ndmlog 2 >> $logdir/$Script.ndm
submit maxdelay=unlimited  ${ndmSTEP}PROC1    process    snode=$vndmNODE
   ndmSTEP1    run task snode (PGM=UNIX)
    sysopts="mv $source/$v1 $vtarget/$v2 ; 
     cd $vsource; echo $v2 >> $vtarget/$vlist; cat $vtarget/$v2 >> $vlist"
   pend;
EOJ

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Scripting issue

Hi Experts, I'm stuck with a single liner bash script. Need your help to fix it. Let me brief you that what is my expectations from this script. I need the interfaces configured for a list of servers, their respective IP address and FQDN in a output file. The output should be in the same... (3 Replies)
Discussion started by: arun_adm
3 Replies

2. Shell Programming and Scripting

Scripting Issue

Hi All, I am facing a problem when i am trying to run shell script more than 5 times. I have shell script(.sh file) which ran perfectly fine in the early attempts(1,2,3,4 runs). But if i try to run the script more number of times, i am facing the below error message. Too many ('s I do... (3 Replies)
Discussion started by: am24
3 Replies

3. Shell Programming and Scripting

Scripting issue

I am having a problem. which I have described below>> I have to run a script with the format : <File_name><Start_date><End_date> abcd.sh 19-JAN-2015 01-May-2014 problem is I need to compare these two dates and throw an error as start date must be less than or equal to end date. But... (13 Replies)
Discussion started by: Chandan_Bose
13 Replies

4. UNIX for Dummies Questions & Answers

Scripting issue

Hi experts... I am really new to this scripting, i really need your help. I have this script to read and print the report, however the script does not pickup the correct hostname (eg. Svtns11d).. The script will start reading/pick up on the second line instead of reading the first line.... (1 Reply)
Discussion started by: talkhard154
1 Replies

5. Shell Programming and Scripting

Scripting Issue

needing this script to shut down 1 IceS and start up another, close the 2nd one after 12 seconds and then reboot. here is what i have so far #!/bin/bash ShutDown() { echo "Shutdown in progress." wall <<ENDOFWALL CI Shutdown has been intiated!!!! Shutdown will occur in 30 seconds...... (1 Reply)
Discussion started by: Zaine
1 Replies

6. Shell Programming and Scripting

Scripting Issue

I am having an issue with a script that I created today, my first attempt at this, and was wondering if anyone can give me insight to what changes need to be made. Below is a copy of the script that I have written. WEe are trying to monitor whether or not a services is running. I do have a cron... (1 Reply)
Discussion started by: lsudubee
1 Replies

7. Shell Programming and Scripting

scripting issue

Hello, Guys I am having a sql script file which contains some sql statements including inserting values, One column is of the data type date. Now i am having a KSH script for inserting values via this script into the database. The problem I am facing that when I am inserting value in the... (1 Reply)
Discussion started by: mraghunandanan
1 Replies

8. Shell Programming and Scripting

NDM manual

Hi, Can any of you tell me how to get this ndm manual stuff? I need it to know specific error ids and descriptions Thanks, Vinodhini (1 Reply)
Discussion started by: vinodhini4
1 Replies

9. UNIX for Advanced & Expert Users

NDM File transfer - doubt...?

Hi, I have configured NDM (Connect: Direct) to copy a bunch of files from one server to another. I create a master file contains the list of files which need to copied, and my shell script read the file and send the file one by one thru NDM. The problem is, since the files are very big in size... (0 Replies)
Discussion started by: r_sethu
0 Replies

10. Shell Programming and Scripting

How to NDM a file in unix

.................................. Network data mover is a secure mechanism to transfer data . can any body guide me out .... how it is done (1 Reply)
Discussion started by: anumkoshy
1 Replies
Login or Register to Ask a Question