- shell script is generally saved with ".sh". But here should be "prog" extension.
- save the shell script with extension "prog".
- move this file to server.
- place our script file in bin folder of any product top.
- create a soft link for this file by using ln command.
- For example ln $FND_TOP/bin/fndcpesr <our script name without extension>
Create a .prog file in $XX_CUSTOM_TOP
echo "Start"
P_SOURCE_DIR=$5
P_FILENAME=$6
echo "File Path-->>" $P_SOURCE_DIR
echo "File Name-->>" $P_FILENAME
if [ ! -f $P_SOURCE_DIR/$P_FILENAME ]
then
echo $P_SOURCE_DIR/$P_FILENAME " does not exist"
echo "**************************************************" #>> $REPFILE
echo "*$P_SOURCE_DIR/$P_FILENAME " does not exist" *" #>> $REPFILE
echo "**************************************************" # >> $REPFILE
PROBLEMS=1
exit 1
else
echo $P_SOURCE_DIR/$P_FILENAME " exist"
exit 0
fi
Run below commands
------------------------
cd $XX_CUSTOM_TOP/bin
chmod 755 XX_FILE_CHECK.prog
$ dos2unix XX_FILE_CHECK.prog
$ ln -s $FND_TOP/bin/fndcpesr XX_FILE_CHECK
----------------------------
Create executable
Create Program.
How to Register a Host Concurrent Program in Applications
touch /u01/1153/visionappl/fnd/11.5.0/bin/TEST.txt
2. Register this as a concurrent executable in Application Object Library called TEST of type HOST. 3. Register this as a concurrent program in Application Object Library called TEST of type HOST. 4. Add this request to the System Administrators request group. 5. In the $FND_TOP/bin create the softlink from TEST.prog to fndcpesr: $ ln -s $FND_TOP/bin/fndcpesr $FND_TOP/bin/TEST 6. IN $FND_TOP/bin type: TEST TEST.prog The result will be a creation of a file called TEST.txt. 7. Delete the file TEST.txt: rm TEST.txt 8. Bounce the concurrent managers. 9. Test in Applications, by running TEST as a user with the 'System Administrators' responsibility.
No comments:
Post a Comment