Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Weird Script

Status
Not open for further replies.

jmanj

Programmer
May 20, 2003
298
US
I have a ksh scripts that when called by a cobol program
although it is successful I'm getting the following
log messages 4 times.

sh: D: not found.

This script is in aix and when I call the script using the
command line I'm not getting any messages at all.

The script is just a copy from other working scripts and this
is the only one I'm having such messages so far.

Thanks for any input.
 
Better yet, modify the script to show the process list:

[tt]echo "test2 test2 test2"
echo "my PID is $$, PPID is $PPID"
echo "ps listing:"
ps -f
echo "parent/child ps listing:"
ps -ef|grep -E "$$|$PPID"
echo "global ps listing:"
ps -ef
exit 0[/tt]

post the output back here please.


HTH,

p5wizard
 


From the procedure division:

**** call EMAIL script.

INITIALIZE Z6014WS-CMD-STRING.

STRING "Z6014_mail2.ksh"
DELIMITED BY SIZE
INTO Z6014WS-CMD-STRING. << change this line to become:
into Z6014WS-SYS-COMMAND.

CALL "SYSTEM" USING Z6014WS-CMD-STRING.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top