Need a simple Perl Program in .bat
Posted on 2004-11-02
I am in need of a very simpel perl program. Im limmited in my programming know how. I took 1 semister of Perl 5 in college and it seemd to be a very nice easy language... I need a basic app Im sure you experts could type out in like 10 lines of code and in 2 min ehehhe....
Below are some Scalars I have used in class that I would like you to use if you need them...
I need it to be somefile.bat When I run it from a comand propt it will display PROGAM RUNING or something on the command window.
When the .bat is run it should start have a count down timer in seconds.... I will edit it to set the var to the actual time I want
please set it to count down from say 10min.... I will modifity the timer when I need in the code.
At the end of timmer it should EMAIL a .txt file. I will edit it and provide the name of the txt file and location of the text file.
please set the file to send to c:\temp.txt
I will eddit the code for the email address I need and file I need sent.
I want it to send me an .txt file every 20-30 min. THe text file alwasy ahs same name.
my $email = "self\@home.com"; # Your email account
my $support = "send\@isp.com,$email"; # Where Txt File is to go to addresses
my $msvr = "mail"; # mail.isp.what ever.. this is the SMTP/POP3 Server Var
Let me know if you need more info thanks.