DRM: Emai Plan files to webmail address?

pichelman

ADSM.ORG Member
Joined
Mar 27, 2008
Messages
122
Reaction score
0
Points
0
PREDATAR Control23

Hi-

Wanted to ask how TSM admins are getting their DRM Plan files offsite safely?

I started using a Perl Script and also another SMTP client mailer but failed with trying to attach "latest" plan file and get the naming convention right.

Ex:
PLAN.20110304.095016

Any ideas?
Thanks for any help.

-P
 
PREDATAR Control23

Solaris...

#!/bin/ksh
# Set Environment Variables

MAIL_GROUP="<name>@email.com <[email protected]"
HOST=`hostname`

# Looking for latest "rpf" file
RPF_DIR_FILES=`ls -rt /tsm/drm/recov/rpf.20* | tail -1`
RPF_FILE=`basename $RPF_DIR_FILES`

# Emailing attached file
uuencode $RPF_DIR_FILES $RPF_FILE | mailx -s "DRM Plan from $HOST" $MAIL_GROUP
 
PREDATAR Control23

Thanks Greg - although I am a Unix/Linux fan.
Was looking for a Windows solution out there?

Anyone?

-P
 
Top