hi,
I am trying to go some servers to check if there is scheduled task. so with win32::taskscheduler I can get the first server and
all the information, but when I loop to the next server I cannot "settargetcomputer" it always dies with an errorcode 1.
does anyone no this thing. could it be that an object is still open? how to close? how to debug?
so long
volker strasser
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Dienstag, 20. Juli 2004 19:41
To: [EMAIL PROTECTED]
Subject: Perl-Win32-Admin Digest, Vol 6, Issue 15
Send Perl-Win32-Admin mailing list submissions to
[EMAIL PROTECTED]
To subscribe or unsubscribe via the World Wide Web, visit
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin
or, via email, send a message with subject or body 'help' to
[EMAIL PROTECTED]
You can reach the person managing the list at
[EMAIL PROTECTED]
When replying, please edit your Subject line so it is more specific than "Re: Contents of Perl-Win32-Admin digest..."
Today's Topics:
1. Win32::FileSecurity problem (Ruud Feringa)
2. RE: Win32::FileSecurity problem (Tim Johnson)
3. Ignore rogue EOF (Conor Lillis)
4. RE: Ignore rogue EOF (Dutrieux Yves)
5. Re: Ignore rogue EOF (colin_e)
6. RE: Ignore rogue EOF (Conor Lillis)
----------------------------------------------------------------------
Message: 1
Date: Mon, 19 Jul 2004 21:43:07 +0200
From: "Ruud Feringa" <[EMAIL PROTECTED]>
Subject: Win32::FileSecurity problem
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=iso-8859-1; format=flowed
Hi,
I have a problem with setting acls with Win32::FileSecurity::Set($filename,
\%perm )
When the username in the permision hash is preceded with the domain name I get the following error:
<domain>\<username>
Error handling errror: 1722, LookupAccountName at c:\perl\eg\acl.pl line 45
When I use the username only (so without <domain>\ ) I do not get this error, but because we are migrating to another domain that's not what I want. By the way, the 'get' sub gives the account names WITH the domain part! What is going wrong?
any tips are welcome!
-Ruud
_________________________________________________________________
_________________________________________________________________
Ook een gouden buddy worden in Messenger? Go for gold!
http://mobile.msn.com/?lc=nl-nl
------------------------------
Message: 2
Date: Mon, 19 Jul 2004 12:51:21 -0700
From: "Tim Johnson" <[EMAIL PROTECTED]>
Subject: RE: Win32::FileSecurity problem
To: "Ruud Feringa" <[EMAIL PROTECTED]>,
<[EMAIL PROTECTED]>
Message-ID:
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset="us-ascii"
Is there any chance that you need to be using two backslashes instead of one? (It's such a common problem, I just have to ask)
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Ruud Feringa
Sent: Monday, July 19, 2004 12:43 PM
To: [EMAIL PROTECTED]
Subject: Win32::FileSecurity problem
Hi,
I have a problem with setting acls with
Win32::FileSecurity::Set($filename,
\%perm )
When the username in the permision hash is preceded with the domain name I get the following error:
<domain>\<username>
Error handling errror: 1722, LookupAccountName at c:\perl\eg\acl.pl line
45
When I use the username only (so without <domain>\ ) I do not get this error, but because we are migrating to another domain that's not what I want. By the way, the 'get' sub gives the account names WITH the domain part! What is going wrong?
any tips are welcome!
-Ruud
_________________________________________________________________
_________________________________________________________________
Ook een gouden buddy worden in Messenger? Go for gold!
http://mobile.msn.com/?lc=nl-nl
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
------------------------------
Message: 3
Date: Tue, 20 Jul 2004 12:46:05 +0100
From: Conor Lillis <[EMAIL PROTECTED]>
Subject: Ignore rogue EOF
To: "Perl-Win32-Admin (E-mail)"
<[EMAIL PROTECTED]>
Message-ID:
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset="iso-8859-1"
Hi, I havge a script qwhich analyses our Mailsweeper logs for traffic statistic purposes. Unfortunately some spam mailers have started putting EOF chars (hex 1A) into the subject line, causing my script to only partially load the log file when reading the file in. Is there a way to overcome this ?
Here is the read statement that is failing, I can provide a snippet of the logfile as an attachment to anyone who is interested..
my $logfile= 'v:\\logfile\\20040715.log'; if (-e $logfile){open (LOG,"$logfile") || die $!;} @array = (<LOG>); close(LOG); print "There are " [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> ." lines in the file $logfile\n"; print "Last line ".(@array-1)." is [EMAIL PROTECTED]"; exit;
The information in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. Access to this e-mail by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, distribution or any other action taken or any views, opinions or advice contained in this e-mail are those of the sending individual and not necessarily those of the firm. It is possible for data transmitted by e-mail to be deliberately or accidentally corrupted or intercepted. For this reason where the communication is by e-mail, J&E Davy does not accept any responsibility for any breach of confidence which may arise from the use of this medium. If you have received this e-mail in error please notify us immediately at mailto:[EMAIL PROTECTED] and delete this e-mail from your system.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ASPN.ActiveState.com/ASPN/Mail/Browse/Threaded/perl-win32-admin/attachments/20040720/75b2d837/attachment-0001.htm
------------------------------
Message: 4
Date: Tue, 20 Jul 2004 14:44:52 +0200
From: "Dutrieux Yves" <[EMAIL PROTECTED]>
Subject: RE: Ignore rogue EOF
To: "Conor Lillis" <[EMAIL PROTECTED]>, "Perl-Win32-Admin \(E-mail\)"
<[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="iso-8859-1"
Try to read the log in binary mode.
open LOG, "<:raw","$logfile" or die $! ;
Yves
________________________________
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] De la part de Conor Lillis Envoy� : mardi 20 juillet 2004 13:46 � : Perl-Win32-Admin (E-mail) Objet : Ignore rogue EOF
Hi, I havge a script qwhich analyses our Mailsweeper logs for traffic statistic purposes. Unfortunately some spam mailers have started putting EOF chars (hex 1A) into the subject line, causing my script to only partially load the log file when reading the file in. Is there a way to overcome this ?
Here is the read statement that is failing, I can provide a snippet of the logfile as an attachment to anyone who is interested..
my $logfile= 'v:\\logfile\\20040715.log'; if (-e $logfile){open (LOG,"$logfile") || die $!;} @array = (<LOG>); close(LOG); print "There are "[EMAIL PROTECTED]" lines in the file $logfile\n"; print "Last line ".(@array-1)." is [EMAIL PROTECTED]"; exit;
The information in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. Access to this e-mail by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, distribution or any other action taken or any views, opinions or advice contained in this e-mail are those of the sending individual and not necessarily those of the firm. It is possible for data transmitted by e-mail to be deliberately or accidentally corrupted or intercepted. For this reason where the communication is by e-mail, J&E Davy does not accept any responsibility for any breach of confidence which may arise from the use of this medium. If you have received this e-mail in error please notify us immediately at mailto:[EMAIL PROTECTED] and delete this e-mail from your system.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ASPN.ActiveState.com/ASPN/Mail/Browse/Threaded/perl-win32-admin/attachments/20040720/2b854263/attachment-0001.htm
------------------------------
Message: 5
Date: Tue, 20 Jul 2004 14:06:43 +0100
From: colin_e <[EMAIL PROTECTED]>
Subject: Re: Ignore rogue EOF
To: Conor Lillis <[EMAIL PROTECTED]>
Cc: "Perl-Win32-Admin \(E-mail\)"
<[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="us-ascii"
As you are running on Windows you may need to use binmode() on your log file to make the read ignore the EOF character.
Regards: Colin
Conor Lillis wrote:
> Hi, I havge a script qwhich analyses our Mailsweeper logs for traffic
> statistic purposes. Unfortunately some spam mailers have started
> putting EOF chars (hex 1A) into the subject line, causing my script to
> only partially load the log file when reading the file in. Is there a
> way to overcome this ?
>
> Here is the read statement that is failing, I can provide a snippet of
> the logfile as an attachment to anyone who is interested..
>
> my $logfile= 'v:\\logfile\\20040715.log'; if (-e $logfile){open
> (LOG,"$logfile") || die $!;} @array = (<LOG>); close(LOG); print
> "There are "[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>." lines in the file $logfile\n";
> print "Last line ".(@array-1)." is [EMAIL PROTECTED]"; exit;
>
>
> The information in this e-mail is confidential and may be legally
> privileged. It is intended solely for the addressee. Access to this
> e-mail by anyone else is unauthorised. If you are not the intended
> recipient, any disclosure, copying, distribution or any other action
> taken or any views, opinions or advice contained in this e-mail are
> those of the sending individual and not necessarily those of the firm.
> It is possible for data transmitted by e-mail to be deliberately or
> accidentally corrupted or intercepted. For this reason where the
> communication is by e-mail, J&E Davy does not accept any
> responsibility for any breach of confidence which may arise from the
> use of this medium. If you have received this e-mail in error please
> notify us immediately at mailto:[EMAIL PROTECTED] and delete this
> e-mail from your system.
>
>-----------------------------------------------------------------------
>-
>
>_______________________________________________
>Perl-Win32-Admin mailing list
>[EMAIL PROTECTED]
>To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ASPN.ActiveState.com/ASPN/Mail/Browse/Threaded/perl-win32-admin/attachments/20040720/1bc1099d/attachment-0001.htm
------------------------------
Message: 6
Date: Tue, 20 Jul 2004 18:40:23 +0100
From: Conor Lillis <[EMAIL PROTECTED]>
Subject: RE: Ignore rogue EOF
To: Conor Lillis <[EMAIL PROTECTED]>, "Perl-Win32-Admin (E-mail)"
<[EMAIL PROTECTED]>
Message-ID:
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset="iso-8859-1"
I overcame the issue by inserting the following line
use open IN => ":raw";
many thanks to colin_e and Dutrieux Yves for steering me in the right direction !
-----Original Message-----
From: Conor Lillis [mailto:[EMAIL PROTECTED]]
Sent: 20 July 2004 12:46
To: Perl-Win32-Admin (E-mail)
Subject: Ignore rogue EOF
Hi, I havge a script qwhich analyses our Mailsweeper logs for traffic statistic purposes. Unfortunately some spam mailers have started putting EOF chars (hex 1A) into the subject line, causing my script to only partially load the log file when reading the file in. Is there a way to overcome this ?
Here is the read statement that is failing, I can provide a snippet of the logfile as an attachment to anyone who is interested..
my $logfile= 'v:\\logfile\\20040715.log'; if (-e $logfile){open (LOG,"$logfile") || die $!;} @array = (<LOG>); close(LOG); print "There are " [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> ." lines in the file $logfile\n"; print "Last line ".(@array-1)." is [EMAIL PROTECTED]"; exit;
The information in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. Access to this e-mail by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, distribution or any other action taken or any views, opinions or advice contained in this e-mail are those of the sending individual and not necessarily those of the firm. It is possible for data transmitted by e-mail to be deliberately or accidentally corrupted or intercepted. For this reason where the communication is by e-mail, J&E Davy does not accept any responsibility for any breach of confidence which may arise from the use of this medium. If you have received this e-mail in error please notify us immediately at mailto:[EMAIL PROTECTED] and delete this e-mail from your system.
The information in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. Access to this e-mail by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, distribution or any other action taken or any views, opinions or advice contained in this e-mail are those of the sending individual and not necessarily those of the firm. It is possible for data transmitted by e-mail to be deliberately or accidentally corrupted or intercepted. For this reason where the communication is by e-mail, J&E Davy does not accept any responsibility for any breach of confidence which may arise from the use of this medium. If you have received this e-mail in error please notify us immediately at mailto:[EMAIL PROTECTED] and delete this e-mail from your system.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ASPN.ActiveState.com/ASPN/Mail/Browse/Threaded/perl-win32-admin/attachments/20040720/a289f492/attachment.htm
------------------------------
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
End of Perl-Win32-Admin Digest, Vol 6, Issue 15
***********************************************
*** Diese Mail wurde nach gef�hrlichen Inhalten gescannt ***
*** WICHTIG: Bitte Vorsicht beim �ffnen von Mailanh�ngen von unbekannten oder verd�chtigen Absendern ***
*** eSafe scanned this email for malicious content ***
*** IMPORTANT: Do not open attachments from unrecognized senders ***
All for One Systemhaus AG, Abteilung Professional Services
_______________________________________________ Perl-Win32-Admin mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
