Date: Fri, 20 Apr 2007 23:27:35 -0700
Reply-To: David L Cassell <davidlcassell@MSN.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: David L Cassell <davidlcassell@MSN.COM>
Subject: Re: How to use SAS process to collect information and email it
through firewalls
In-Reply-To: <c2192a610704200740s5c2abbcap4fbd58ed622d6f5b@mail.gmail.com>
Content-Type: text/plain; format=flowed
proccontents@GMAIL.COM wrote:
>
>Hello Guys being Friday morning just playing around this piece of Code, by
>kuhasu's I do not know where I going wrong ?? when I submitting it a DOS
>window pop's up warning( 'c:\send\mailcmd' is not recognized as an internal
>or external command,
>operable program or batch file.
>) , any Ideas where ( by the I am doing on office machine and default mail
>is outlook but I did log in to my Gmail account during the time I
>submitted
>the program
>______________________________________________________
>Kuhasu's blog
>From sasCommunity
>Jump to: navigation, search
>[edit] Hacker!Sasor!Whoever!
>You can use sas process to collect information and email it through
>firewalls!*^_^*
>
>Sounds like a tallent hacker,isn't it?
>Acctually,it's another usage of sas for remoted data process.
>
>Remember: Use it good.
>
>[edit] codes here:
>1. creat a dataset.(You can omit it,'cause someone might do it for you:>)
>
>/*Create an dataset*/
>
>data sendmail;
>input test;
>cards;
>1
>2
>3
>5
>;
>run;
>proc print data=sendmail;
>run;
>/*2. Save the output and the log(output can be created,but logs are not
>recommanded if you wanna hack something) */
>/*Save the output and the log*/
>
>DM OUTPUT 'FILE "c:\send\test.OUT"';
>DM LOG 'FILE "c:\send\test.LOG"';
>
>3. Finally,send this output file as attachment to the email address you set
>/*Send the output to mailbox*/
>
>data _null_;
>call system('c:\send\mailcmd procontents@gmail.com "proccontents@gmail.com"
>"proccontents@gmail.com" "Subject: SAS results" "Contents: SAS results" ""
>"c:\send\readme.txt"');
>run;
1) Remember that SasCommunity is a Wiki, so anything in it can be
really, really wrong. Or really, really right. Or none of the above.
2) This isn't working for you because it is using a chunk of freeware
called
mailcmd . You can find it at just about any large site that carries Windows
freeware. But it's new. It's at version 1.0 which usually means Bug City.
(I wouldn't know - I don't have it installed and tested, and I don't plan
to.)
3) The only places with firewalls have IT people who are not going to let
you install version 1.0 freeware on their systems. The place I found the
software didn't even have 1 review of the software, which is not a really
good sign.
4) I would think that a lot of companies/groups/agencies would specifically
block outputs from tools like this, so you would not be able to send out.
5) SAS can do this without an external program.
HTH,
David
--
David L. Cassell
mathematical statistician
Design Pathways
3115 NW Norwood Pl.
Corvallis OR 97330
_________________________________________________________________
Don’t quit your job – Take Classes Online and Earn your Degree in 1 year.
Start Today!
http://www.classesusa.com/clickcount.cfm?id=866146&goto=http%3A%2F%2Fwww.classesusa.com%2Ffeaturedschools%2Fonlinedegreesmp%2Fform-dyn1.html%3Fsplovr%3D866144