Jump to content

Recommended Posts

Posted

#!/bin/bash

filename = fileOne.txt

echo "FileStart" | sort | uniq -c > fileTwo.txt

ls /home/username/mail/namespace.heliohost.org/mail_name/new/ > fileOne.txt

cat $filename | while read LINE

do

for w in `cat cd /home/username/mail/obsidian.heliohost.org/mal_name/new/

$LINE`; do echo $w; done|sort|uniq -c >> fileTwo.txt

done

cat fileTwo.txt | mail you@mail.com

rm fileOne.txt

rm fileTwo.txt

rm /home/username/mail/namespace.heliohost.org/mail_name/new/*

exit

 

so if i can not get the hosting to allow this in bash how is it finished in window scripting or PowerShell?

the script only runs once per time of changing the mail name

are there any other environmental variables I must set before running the script?

the mail_name/new/ folder is populated daily with mail from the other aggregators and when I need to know what's important I'm not going to want to play the little cubby hole game.

 

thanks

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...