Jump to content

ChuckRoss

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by ChuckRoss

  1. #!/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 New...