RE: surveying and applying file permission's

2004-08-12 Thread Wagner, David --- Senior Programmer Analyst --- WGO
[EMAIL PROTECTED] wrote: > Hello to all, > > I have been attempting to create a PERL script to survey and store > (CSV file) the file system permission's on our NT servers user file > area. All of my attempts have ended up creating an entry for every > directory, even if the ones below it shares t

RE: DISKPIG.PL

2004-04-20 Thread Wagner, David --- Senior Programmer Analyst --- WGO
[EMAIL PROTECTED] wrote: > I have been trying to get the script DISKPIG.PL from the roth.net > site to go but all I manage to get is: > > "bareword syntax no allowed while "strict subs" in use, line 40 " > > it also complains about syntax error at DISKPIG.PL line 97 near > "<" > > Not b

RE: HELP!!

2003-03-13 Thread Wagner, David --- Senior Programmer Analyst --- WGO
    As you will find out, there are many ways to do what you ask. I have a regex:   #!perl -w   _ = 'abcdefghi'; s/(\w{3})(?=\w)/$1-/g; printf "%-s\n", $_; Output: abc-def-ghi   The s/ express groups together three characters and then uses (?=\w) to do the hypen if there is a following charact

RE: SMTP not sending

2003-02-20 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Jeff Zanzinger wrote: > I just installed the windows 2000 server and having trouble sending > email from ActivePerl using Net::SMTP or Mail::Sender. The perl > program executes without error but no emails are ever sent out. Your > guidance is greatly appreciated! Below is the perl program. > >

RE: Detecting $ARGV[0]

2003-01-27 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Glenn Meyer wrote: > Is there a better way to detect a parameter given in a command line? > For example, to run the script (obviously) c:\>script.pl I have > also added some "switches" to help with setup of the options (like) > c:\>script.pl /h to see a help message > c:\>script.pl /ito gene

RE: Perl page breaks

2003-01-09 Thread Wagner, David --- Senior Programmer Analyst --- WGO
John Deretich wrote: > Hi , > > does any one know how to insert a page break when > formatting a report? Using the select operator to > change the number of lines per page isn't very accurate. > > thanks, > > John You should be able to to \f for top of form. Wags ;) **

RE: last

2002-12-09 Thread Wagner, David --- Senior Programmer Analyst --- WGO
last, next are used in relationship to a block like while ( 1 ) { next if ( $abc < 1 ); last if ( $abc == 1 ); # other code } used with while, for, foreach or really I believe any block defintion. The guru's can give us a better info if nece

RE: compare arrays Netadmin monitor globalgroups

2002-10-23 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Since you should have uniqueness in the usernames, you could place one set of data(say the FILE) into a hash using the usernames as the key. Now you can read from the function and where the key does not exist, do something. Wags ;) -Original Message- From: Robert-Jan Mora [mailto

RE: Pattern Matching on Win32 Pathnames

2002-04-19 Thread Wagner-David
You can use \Q and \E to tell the regex to not do any other interpreting of characters within a variable: my $s1 = "c:\\root\\sub1\\sub2\\myfile.dat"; my $s2 = "c:\\root\\sub1\\"; $s1 =~ s/\Q$s2\E//gi; printf "%-s\n", $s1; Output: sub2\myfile.dat Wags ;) -Original Message-

RE: Win32::LanMan question

2002-04-02 Thread Wagner-David
Title: Message     Are you running with warnings and/or strict to insure that all is happening as you expect it to?   Wags ;) -Original Message-From: Matthew Wagenknecht [mailto:[EMAIL PROTECTED]]Sent: Tuesday, April 02, 2002 12:37To: 'Weir, Jason - Contractor'; [EMAIL PROTE

RE: ActivePerl HTML Help question

2002-03-14 Thread Wagner-David
Depends on the module being installed and if the author provided the html. I have installed two modules today: one appeared and one didn't. Wags ;) -Original Message- From: MacAlpine, Tim [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 14, 2002 11:47 To: '[EMAIL PROTECTED]' Su

RE: Folder size?

2001-12-24 Thread Wagner-David
If you use AS Perl, then you can ppm install File::Tools Wags ;) ps Thanks for the insight to Tools. -Original Message- From: Chuck Lawhorn [mailto:[EMAIL PROTECTED]] Sent: Monday, December 24, 2001 10:17 To: [EMAIL PROTECTED]; win32-admin Subject: Re: Folder size? It's part o

RE: Folder size?

2001-12-24 Thread Wagner-David
It was there in earlier versions(I am runing as 5.6.0 build 623), have it loaded. In the doc which I have, it says it was not part of the base install and you could load using PPM. I went out and looked at the PPM availability and there is no Recurse or even Find under File.

RE: s///;

2001-10-17 Thread Wagner-David
I removed the \n for testing and added an e as part of the regex: $_ = 'THIS IS A TEST OF THE WORK OF LC WITHIN A REGEX'; printf "%-s\n", $_; s/(\w+)/lc($1)/e; printf "%-s\n", $_; Output: THIS IS A TEST OF THE WORK OF LC WITHIN A REGEX this IS A TEST OF THE WORK OF LC WITHIN A REGEX -Or

RE: Finding Access dates in Perl.

2001-10-16 Thread Wagner-David
John, Here is a shot. Ran twice using the same script and the access time does not change. You should be able to change accordingly. What I did was place a hard coded date of 10 days ago and returned if the access date was greater than 10 days ago. Code starts here: #!perl -w use Fil

RE: Sending screen output to multiple output devices simultaneously

2001-09-21 Thread Wagner-David
Title: Sending screen output to multiple output devices simultaneously     Should be able to use Tie to bring it together.   Wags ;) -Original Message-From: DePriest, Jason R. [mailto:[EMAIL PROTECTED]]Sent: Friday, September 21, 2001 11:20To: [EMAIL PROTECTED]Subject: Sendi

Use of Win32::Daemon

2001-09-17 Thread Wagner-David
Title: Use of Win32::Daemon     Has anyone used David Roth's module? Any examples? I have loaded, but have no doc. Checked doc which is usually added as part of the ppm install and nothing is there.     Any help would be greatly appreciated. Wags ;)

RE: Automating unzipping of files

2001-03-15 Thread Wagner-David
Take a look at module called PerlZip. Not vouching for it, but the developer does frequent a number of different perl lists: http://www.generation.net/~aminer/Perl/ Wags ;) -Original Message- From: Ken Januski [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 15, 2001 18:10 To: [EMAIL PR