Dear Yves,

############################################################
my $netsvc   = "c:\\rskit\\netsvc.exe";


my $services = 'Microsoft Exchange Internet Mail Service' ;
   

my $host = "\\\\hotnt002";

open(TEST ,">c:\filetosend.txt");

system ("$netsvc $host /query \"$service\" >c:\filetosend.txt");

close (TEST) ;

system ("$netsvc $host /query \"$service\" >c:\filetosend.txt"); 
###################################################################

gives Access Denied. Please tell me where is Blat.exe file??.

Please suggest me 


        
        From:  Dutrieux Yves [SMTP:[EMAIL PROTECTED]]
        Sent:  Friday, August 24, 2001 4:00 PM
        To:  'Veeraraju_Mareddi'
        Subject:  RE: Redirecting Command Output to a file

        Personnaly, I use "Blat.exe" for this kind of task.
        So, your first command would be : system ("$netsvc $host /query
\"$service\"
        >c:\filetosend.txt")
        and after that system("blat filetosend.txt -to $to_user -f
$from_user
        -server $smtp_server")

        Yves

        -----Message d'origine-----
        De: Veeraraju_Mareddi [mailto:[EMAIL PROTECTED]]
        Date: vendredi 24 ao�t 2001 11:52
        �: [EMAIL PROTECTED];
        [EMAIL PROTECTED]
        Objet: Redirecting Command Output to a file


        Dear Friends,

        I have a small  task . Actually I have the following line in SCRIPT.
I want
        to redirect this command output a file. 
         
        system ("$netsvc $host /query \"$service\"") == 0 and warn "+error
$!" ;

        But I want this OUTPUT to be sent in a mail, either by sending it in
a
        Attachment or  As a text in Mail.

        Please suggest me how to redirect this output a FILE or MAIL.

        I am using Win32::MAPI interface for Mailing.


        Your help is highly appreciated

        Regards
        Rajuveera



        _______________________________________________
        Perl-Win32-Admin mailing list
        [EMAIL PROTECTED]
        http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin

Reply via email to