this ncn_CheckDir.pl is available in the same folder where the BC_CheckDir exist .
That is in my system file
BC_CheckDir and perl file
ncm_CheckDir.pl available in /cnt/mgr/test/bin
can any one explain why this error is coming and what is happening
in the script
Hmmm... To me it seems like the error comes from line 11; you posted your script on 6 lines.
Can't find ncn_CheckDir.pl, script says ncm_CheckDir.pl -a. Do you have a typo there, or was it when you were typing it into the post?
i tried both way as pkbali suggested
still not found error is coming
when i put ./ncn_CheckDir.pl it is giving me
BC_CheckDir[11]: ./ncn_CheckDir.pl: not found
when hard coded the path then also
with all path and not found is coming
---------- Post updated at 06:02 AM ---------- Previous update was at 04:55 AM ----------
That's what I was wondering too, looks like the last half of a trap statement.
I suspect the script has comments at the top that have been cut out (for privacy etc.) along with the trap.
eg green section below:
#!/usr/bin/sh
# Eight lines
# of comment
# The OP didn't
# want to post
# to this thread -
# Perhaps for
# Privacy Reasons
#
trap 'exit 255' USR1
ncn_CheckDir.pl -a
...
#!/usr/bin/sh
#
# BC2M0010_CheckDir - Verify if transmission files exist
#
# Revisions:
#
# 11/08/01 created for second midday batch
cd /cnt/mgr/test/bin
trap 'exit 255' USR1
ncn_CheckDir.pl -a
/cnt/mgr/test/working/applog_CheckDir.log -c
/cnt/mgr/test/lib/config/bp_CheckDir.conf -s
/cnt/mgr/test/log/syslog
all the files available in bin directory.we are doing migration.
in old server (sh-shell) it is working.
in new server (ksh shell) giving the error
ncn_CheckDir.pl -a not found.