This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Linux / UNIX and the fly likes Shell Script Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Shell Script" Watch "Shell Script" New topic

Shell Script

Sid varma
Ranch Hand

Joined: Apr 06, 2009
Posts: 37
can some one help me in writing a shell script to monitor 2 folders every night, and automatically send an e-mail(with the newly created folder names) if any new folder is created in those 2 folders

folder paths : // and //

for example. If a new folder named 1802 is created under the //, the email which will be sent at night should contain that folder name. If multiple folders are created, then all those folder names must be emailed.

thanks in advance

Siddhartha Varma
SCJP 1.6 - 93 %, SCWCD - 85%
Peter Johnson

Joined: May 14, 2008
Posts: 5852

Please note that Java Ranch is NotACodeMill. Also, EaseUp.

Having said that, you are more likely to get some help if you post the script you have put together so far and describe what parts you are having problems with.

JBoss In Action
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Shell Script
It's not a secret anymore!