Hi guys,
first of all I would say that this is my first time I write in a Forum.
I've read the "forum rules" and I hope i will respect them.
I searched everywhere for the solution of my problem but I didn't find anything.
Here my problem:
I'm using a sap job scheduler: in a particular job there are two main steps (scripts) that are based on unix command mv (first step) and touch command (second step/script): the first script (step) called "movedate.sh" uses a mv command to rename a file: it appends the current date and time to the name of the file, after the same script moves the file to another directory (using always the same "mv" command).
The second main step is a script based on a "touch" command: it finds out if the original file (without the date appended to his name) exists in the original folder, and if not, it tries to re-create it.
The first step goes ok (in fact you can see the file archived in the destination directory with the time stamp added to its name), but even if this step goes ok, the second one (that tries to create the file) goes in error because it says that the original file exists (as if the time-stamp was not added to the name of the file! But I can see the file archived with time-stamp in a different folder!)
The size of the file is few KB, the touch command occurs 10 seconds after the file has been archived (I use the time stamp appended to the name of the file as a time-reference).
The file system is shared.
So I "changed" the movedate.sh script, it does the same operations, but there are some checks that it performs: it checks if the time stamp has been added to the name, and it checks if the file with the time-stamp is located in the destination directory (if ok it means that it has been moved!)
So I have not no more errors... It seems to me that these checks act as a "refresh". Does it depend on the structure of the file system (as I said it's shared between three different servers)?
Any ideas why does this occur?
Thanks in advance for the replies.
Bye
Antonio 