UNIX SCRIPT FOR AUTOMATION

Closed
Sri - May 3, 2010 at 01:51 PM
rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 - May 4, 2010 at 08:20 AM
I have a file (*.txt) generated for the PLSQL package. I have to send the file to a location
using unix commands.

how do i do that.

3 responses

rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 766
May 3, 2010 at 10:29 PM
use mv to move the file or cp to copy the file
0
The package i run, produces a file every time its run and the package is scheduled to run daily. and daily a file is produced and i need to write a unix script to move the file every time.
0
rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 766
May 4, 2010 at 08:20 AM
I think for that you would need a cronjob to move the file. You would first write your output file and once the package is done with it, have it write a flag file. Let the cron look for that flag file and if present, move the the file to the location and delete the flag file.

Alternatively have the package write to the location of you choice.
0