[Uaflug] Need 'mail' help.
Dayne Broderson
dayne at alaska.edu
Thu Apr 12 08:03:49 AKDT 2007
You probably need to configure the box to had the mail to your mom's ISP.
They should have an SMTP server, and that is what you'd have to configure
the box to use for mail delivery.
You could do the scp using ssh-keys so it doesn't prompt for a password..
but I'd avoid that.. since that would be passwordless keys to your account
sitting on a machine you don't fully control.
A better option would be to write a tiny little CGI/php app on Mod0 that
allowed a machine to submit its 'name' and 'ip'. Then have it store that
for you to go and check to see what IP that machine's name is.
Another option is to get a dynamic DNS provider and setup their script..
then just use that domain name. Might have to tweak the script to pull
the IP from your script instead of ifconfig.
# dayne at alaska.edu # 907.474.6182 #
On Thu, 12 Apr 2007, Paul Swanson wrote:
> I'm running Ubuntu Feisty, and I can't send myself an email using
> 'mail' (I installed mailutils).
>
> mail -s "Subject" email at address.com
> Body text blah
> [ctrl+d]
>
> Correct? Well, it's not working.
>
> In a more generic sense, I just need to get a tiny bit of information
> off of a remote computer every now and then. If there's some other way
> to get it to me, that'd work as well.
>
> What I'm ultimately trying to do is get the IP address of my mom's
> computer. It changes every few days, and I need to SSH into it. What
> I'm thinking right now is - Run a cron job that twice a day runs this
> script:
>
> rm index.html
> wget whatismyip.com
> egrep -m 1 -o '([0-9]{1,3}\.){3}[0-9]{1,3}' index.html > temp.txt
> if [ "`cat momsip.txt`" != "`cat temp.txt`" ]; then
> mv temp.txt momsip.txt
> mail -s "Mom's IP address" -t my at email.com
> # ???
> fi
>
> I suppose I could also have it scp the file into my modzer0 account,
> but this seems more elegant. Also, would it need the password every
> time?
>
> Or is there a much more elegant solution?
>
> Thanks,
> Paul
> _______________________________________________
> uaflug mailing list
> uaflug at linux0.cs.uaf.edu
> http://linux0.cs.uaf.edu/mailman/listinfo/uaflug
>
More information about the uaflug
mailing list