Hello group,
Let me explain a little,
I´m running under HP UX 11.i SO. I need to put on the server via FTP a file with the following attributes: -r--r--r-- this is read for all.
Also I tried using inet.conf to change the umask for ftp and works perfect on giving the permissions for the file, but there is another application B2B runing on the same server that needs the files of ftp created with the default permissions.
Due to the B2B application is more important than the other application, the defaults permissions for FTP reamins. So,
I need help on writing a scritp that, detects, when a upload is done on a specific directory and change the file permissions. I know that runing a cron on a specific time basis is the trivial answer, but what I´m looking for is some more sofisticated. A scritp that triggers when a upload is done.
This is possible? I was looking for some pice of code to give me a clue on this but I was unsuccesful.
I will appreciate any ideas on this.
Thank you in advance