Christian Audet
Moderator
Staff member
Hi All,
I already made some business function using FindFirst, FindNext to loop thru file on my disk with success. Now the problem is when I want to create a E-One process that do the same on the unix server.
What I want to do ?
----------------------------------------
I'm want to create a process (probably a UBE) that will delete files (4 to 7 bytes text files) on the E-One Unix Server based on the date of the file. Those file get created by one of our custom apps and we want to keep them for a week maximum. The process I want to implement will delete every day the file that are more than a week old.
Example :delete files 5 days old and over.
Did I worked on it ?
-----------------------------------------
I created the pseudo code and ready to code it, I understand all the logic I need, I already work with findfirst, findnext and findclose, the problem is that those function are not working in Unix.
Have I done some research ?
--------------------------------------------
Yes ! My research in peoplesoft lead my to a lot of B96*** BFSN which are all "1" (client only), of course because they use findfirst and findnext.
Other research on the Internet lead me to use opendir(), readdir() and closedir() from dirent.h, is that right ? I'm not sure yet but I'm trying to find out.
Did I code something ?
------------------------------------------
I did not even code anything yet. My concern is how can I use this (assuming these are the right functions) from a Peoplesoft Business Function. dirent.h does not exist on my machine which I guess is normal if this is a UNIX library only.
That's where I am, I think that these function may be a solution but I never created a Peoplesoft business function that use unix only function and did not find anything understandable on the subject.
Is there a alternative solution ?
-------------------------------------------
Yes ! creating a unix script to delete old file every night may be a quick solution but if we ever want to delete on something else that the date stamp which reside in peoplesoft only then it will not be possible.
Any advise will be appreciated and if any information is missing from this message it will be my pleasure to provide it to you.
Christian Audet
I already made some business function using FindFirst, FindNext to loop thru file on my disk with success. Now the problem is when I want to create a E-One process that do the same on the unix server.
What I want to do ?
----------------------------------------
I'm want to create a process (probably a UBE) that will delete files (4 to 7 bytes text files) on the E-One Unix Server based on the date of the file. Those file get created by one of our custom apps and we want to keep them for a week maximum. The process I want to implement will delete every day the file that are more than a week old.
Example :delete files 5 days old and over.
Did I worked on it ?
-----------------------------------------
I created the pseudo code and ready to code it, I understand all the logic I need, I already work with findfirst, findnext and findclose, the problem is that those function are not working in Unix.
Have I done some research ?
--------------------------------------------
Yes ! My research in peoplesoft lead my to a lot of B96*** BFSN which are all "1" (client only), of course because they use findfirst and findnext.
Other research on the Internet lead me to use opendir(), readdir() and closedir() from dirent.h, is that right ? I'm not sure yet but I'm trying to find out.
Did I code something ?
------------------------------------------
I did not even code anything yet. My concern is how can I use this (assuming these are the right functions) from a Peoplesoft Business Function. dirent.h does not exist on my machine which I guess is normal if this is a UNIX library only.
That's where I am, I think that these function may be a solution but I never created a Peoplesoft business function that use unix only function and did not find anything understandable on the subject.
Is there a alternative solution ?
-------------------------------------------
Yes ! creating a unix script to delete old file every night may be a quick solution but if we ever want to delete on something else that the date stamp which reside in peoplesoft only then it will not be possible.
Any advise will be appreciated and if any information is missing from this message it will be my pleasure to provide it to you.
Christian Audet