Posted: Sat Jul 13, 2013 2:32 am Post subject: Reg : File deletion
Acolyte
Joined: 20 May 2013 Posts: 58
Hi Friends,
A small query is it possible to delete a file in compute node based on the timestamp.
We have a requirement where we have to delete all the files in the directory which are older than 7 days. We don't want to go with java compute node or a java program to achieve it.
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
IT is not possible with a normal CompteNode without calling a bit of java to do it for you.
HOWEVER
This taks is more suited to a simple job scheduler such as CRON. Even Windows has one (nicely hidden away)
If you google for your problem, you will probably find a script that will do pretty well exactly what you want.
Do it that way and forget about using broker for this task. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum