Hi Everyone,
i have a job which writes data into a Sequencial file. My requirement is , i have to create a file (abc.txt). but each and everytime the job runs , i have to create a abc.txt along with a time stamp when data is written into the file abc.txt.
can anyone hint me on how should i approach .
Thank you all
sudharma
New file creation for Each time the job runs
Moderators: chulett, rschirm, roy
Re-name the file after each run in after job sub-routine "ExecSh".
Code: Select all
mv /fully/qualified/path/of/abc.txt /fully/qualified/path/of/abc`date +"%Y-%m-%d-%H.%M.%S"`.txt
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Do you mean use the current timestamp on the filename? Search the forum, we discuss using job parameters or the start timestamp macro.
Kenneth Bland
Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle