Hello,
i found accidential tousands of files (collected over the years) in a &PH& folder.
I have searched in the forum already, for housekeeping e.g. the &PH& subfolder for a project.
I always find a hint to the CLEAR.FILE command.
I understand, this is a manual on demand task.
But i would like to automate this task and let it be done by scheduled unix jobs.
Question: can i simply remove files older then e.g. 10 days from this &PH& folder?
like: find &PH& -mtime +10 -exec rm -f {} \;
Or would i damage any system files by this?
Further question: if i can do as suggested, are there other folders which should be cleaned up regular?
Hope, anybody can help me.
Thanks a lot and best regards - Manfred
Cleanup / Housekeeping system generated files like &PH&a
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 58
- Joined: Wed Apr 04, 2007 10:02 am
-
- Participant
- Posts: 58
- Joined: Wed Apr 04, 2007 10:02 am
-
- Participant
- Posts: 3
- Joined: Wed Dec 16, 2009 7:58 am
Re: Cleanup / Housekeeping system generated files like &
How do we run the DS command in a unix script?
/usr/local/ds/Ascential/DataStage/Projects/$ValueProjectName/'&PH&'
but was is command to execute this line? I have my project name and logins but cant find the good command to execute it.
/usr/local/ds/Ascential/DataStage/Projects/$ValueProjectName/'&PH&'
but was is command to execute this line? I have my project name and logins but cant find the good command to execute it.
Manfred Hagedorn wrote:Hello,
i found accidential tousands of files (collected over the years) in a &PH& folder.
I have searched in the forum already, for housekeeping e.g. the &PH& subfolder for a project.
I always find a hint to the CLEAR.FILE command.
I understand, this is a manual on demand task.
But i would like to automate this task and let it be done by scheduled unix jobs.
Question: can i simply remove files older then e.g. 10 days from this &PH& folder?
like: find &PH& -mtime +10 -exec rm -f {} \;
Or would i damage any system files by this?
Further question: if i can do as suggested, are there other folders which should be cleaned up regular?
Hope, anybody can help me.
Thanks a lot and best regards - Manfred