I want to delete files older then x days on a samba share using the smbclient command like:

smbclient //MYSERVER/MYSHARE -A /root/.smbclient -c "dir <mask>";

What do I need to put in < mask > to do this? Or is there another approach?

link|improve this question

80% accept rate
Why not mount it and periodically run find with -ctime (or -mtime or -atime or whatever your original filesystem support) along with -exec rm? – 3molo Nov 7 '11 at 15:10
If possible I want to do it with smbclient – markus Nov 7 '11 at 15:30
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.