request for a small unix space 10-20mb.

LordSnailz

Diamond Member
Nov 2, 1999
4,821
0
0
I know a few of you guys have Unix spaces out there, so I'm hoping I can get some love.

I need about 10-20mb of space where I can run a cronjob to launch a wget command and a perl script afterwards. The perl script will parse the html file wget gets and sends an email if it sees a match.

Naturally, I checked with Rossman, and he's been able to help but we've run into some issues but he's too busy to help troubleshoot, so I'm trying my luck here.

thanks guys!
 

notfred

Lifer
Feb 12, 2001
38,241
4
0
Instead of using wget, add this to the top of your perl script:

use LWP::Simple;
$htmlpage = get( "http://someurl/here" );
Then parse $htmlpage with the rest of the script.

Now you don't need unix anymore because you don't need wget, and you can run it on your windows desktop PC as a scheduled task.

:)
 

LordSnailz

Diamond Member
Nov 2, 1999
4,821
0
0
Originally posted by: notfred
Instead of using wget, add this to the top of your perl script:

use LWP::Simple;
$htmlpage = get( "http://someurl/here" );
Then parse $htmlpage with the rest of the script.

Now you don't need unix anymore because you don't need wget, and you can run it on your windows desktop PC as a scheduled task.

:)

Sweet!! Any more info. on the LWP command? I can do a google search on it but you can save me some time ...
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
You can get shell accounts. Looks like the company I used to use isn't out there anymore, but most aren't too expensive.
 

LordSnailz

Diamond Member
Nov 2, 1999
4,821
0
0
Almost got it to work ... the only thing I need now is a program that supports comamnd line email through winxp. I want it to send out an email if the perl script was true but I can't find a program that helps me do exactly that. There were a few that came up in google but those required a SMTP server which I do not know how to setup.

I'm still not ruling out the request for the unix diskspace either =)
 

notfred

Lifer
Feb 12, 2001
38,241
4
0
Send email from within your perl script with Net::SMTP

Change the variables at the top to match the message you want to send.

Where it says "some.mail.server" change that to any SMTP server you have access to. The easiest way to do that is to look in your email client's settings, and see what you're using for "outgoing (SMTP) mail server". It's probably something like "mail.yourisp.com" or "smtp.yourisp.com".

Anyway, set that up, and the script will send your mail through that server.

Here's the example:
 

LordSnailz

Diamond Member
Nov 2, 1999
4,821
0
0
ah! okay, so the smtp server is from the ISP ... damm, I feel so stupid, I spent at least an hr. during the weekend trying to get it to work ... thanks, I'll give it a try when I get home.