Move the file from one path to another using .sh file in EBS Oracle apps.


Login or Register to Reply

 
Thread Tools Search this Thread
# 1  
Move the file from one path to another using .sh file in EBS Oracle apps.

Hi All,

I just want to move the file from one path to another using .sh file in EBS oracle apps.

I have written in .prog but i need in .sh (file.sh)

XXC_SAMPLE_FILE.prog
Code:
#!/bin/bash
  # XXC_SAMPLE_FILE.prog
  DATE_TIME=`date | awk {' print $1"_"$2"_"$3"_"$4 '}`
  echo "parse_parms"
  REQID=$5
  echo $5
  echo "Request Id:" $REQID
  OUTPUT_FILE=$APPLCSF/$APPLOUT/o$REQID.out
  ATTACH_FILE="/XXC_OUTPUT"
  cp $OUTPUT_FILE $ATTACH_FILE

  echo " "
  echo "-----------------------------------------------------------------------"
  echo " "
  now1=$(date +"%T")
  echo "Installation Start time : $now1" 
  # ************************************
  #  End of Script
 # ********************************

Can you please help me on this?

Thank you,

Last edited by Mist123; 1 Week Ago at 09:43 AM..
# 2  
I think it works like it is.
Suggestions for improvement:
Code:
DATE_TIME=`date | awk {' print $1"_"$2"_"$3"_"$4 '}`

works, but the { } should be inside the ' ', to explicitly escape the { } special meaning in the shell.
Code:
DATE_TIME=`date | awk '{ print $1"_"$2"_"$3"_"$4 }'`

Put quotes around $variables in command arguments, to prevent the shell from doing further substitutions on them.
Code:
echo "$5"
cp "$OUTPUT_FILE" "$ATTACH_FILE"

echo and cp are commands.
Login or Register to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Need help to move .csv file from UNIX path to windows shared drive or c:\ drive
lakshmanraok117
Hi Guys, Can any one help me on this. I need help to move .csv/.xls file from unix path to windows shared drive or c:\ drive? Regards, LKR... UNIX for Dummies Questions & Answers
1
UNIX for Dummies Questions & Answers
Need help to move .csv file from UNIX path to window c: shared drive
lakshmanraok117
Hi Guys, I need to move myfile.csv file from unix path(\oracle_home) to window c:\ shared drive h:\. Thanks in advance! Regards, Lakshman... Shell Programming and Scripting
1
Shell Programming and Scripting
Mod_proxy_html on Oracle EBS
arumon
Hi , I am trying to impliment mod_proxy and mod_proxy_html as a reverse proxy for oracle EBS. Everything is working fine except the submenu links (still pointing to the internal url) of the modules tree view. Please help me. Regards, Arumon... UNIX and Linux Applications
0
UNIX and Linux Applications
how to delete core file (file created due to apps crashed)
s3270226
1. The problem statement, all variables and given/known data: When looking for corefiles, include any file with core in its name. (Some UNIX/Linux systems add the PID of the process that created the core to reduce the chances of overwriting an already existing core file that might be needed. The...... Homework & Coursework Questions
6
Homework & Coursework Questions
Oracle Apps Cron Job
cjhall01
Hi, I have created a shell script which will ftp a file from my Oracle DB server to a remote server - I've named this ftp_test.sh. I have set up a cron job to fire off the shell script and when I set the job I get a message returned that the job has been installed and everything seems o.k....... UNIX for Dummies Questions & Answers
1
UNIX for Dummies Questions & Answers