RE: trying to access nt-variables to include it in html

2001-10-10 Thread Charlton, Mark
I am by no means an expert, (I'm barely a beginner!), but isn't the username available through the @ENV array? Regards Mark -Original Message- From: Björn Göhringer [mailto:[EMAIL PROTECTED]] Sent: 10 October 2001 09:54 To: [EMAIL PROTECTED] Subject: trying to access

Re: trying to access nt-variables to include it in html

2001-10-10 Thread Simon Oliver
Just use $ENV{username} within your script. -- Simon Oliver Björn Göhringer wrote: we want to include the environment variable username in an html page so we can start different actions depending on which user is logged in and accesses the page. so when i go to the command line and

RE: TPJ?

2001-10-10 Thread Tillman, James
One nice thing Sys Admin mag has done is release an archive of all the TPJ issues: http://www.samag.com/tpj/issues/ That just means they're maintaining the status quo, since EarthWeb (the previous owner) already had that. Unless it's free to the public now, in which case, they've added

RE: Perl/Tk book

2001-10-10 Thread Tillman, James
P.S. On the issue of the Perl + OLE + Office Automation that I poked around about earlier. I wanted to report that there is a tool which will report on the methods and properties of an automation server, if it provides typelib information. It is called OLEVW32.EXE. I am still wanting to

RE: trying to access nt-variables to include it in html

2001-10-10 Thread Tillman, James
Just use $ENV{username} within your script. More than likely this will not work with a default CGI configuration because the web server runs as a user called IUSR_COMPUTERNAME (usually). Also, I think the username env variable is masked from the %ENV, anyway. What you really need to do if

RE: Perl/Tk book

2001-10-10 Thread Will Ganz
The Advanced Perl Programming book for OReilly also has a good section on Tk. In some people's opnion, it is better than the Perl/Tk book from the same publisher. I have both and agree with their assessment. If you have ever done anything with a Java GUI program, then you will notice that the

RE: Question regarding printing from IE via OLE (followup to previous question?)

2001-10-10 Thread Morse, Richard E
Hi! Thanks for the suggestion, but I still don't get prompted to print, nor does it print on its own -- although I no longer get the errors I'm running this on Win95, with IE 5.5 -- does that require different constants? Thanks, Ricky -Original Message- From: Sisyphus

[PBML] Re: Regular expression needed

2001-10-10 Thread Jorge Goncalvez
Hi, I have a file with several lines which begins with: /bootp/linux/ I would like to match theses lines I tried this while (INFILE) { chomp(); /^\/bootp/linux/\/ but it doesn't work how can I do ? Thanks. ___

RE: [PBML] Re: Regular expression needed

2001-10-10 Thread Vroom, Tim
Title: RE: [PBML] Re: Regular expression needed you need to escape all of the /'s in your path with in the match /^\/bootp\/linux\//; should match; a good technique for building regular expressions is to match a small portion of what you're looking for. then after you

RE: Editing word documents

2001-10-10 Thread Charbeneau, Chuck
From: Christopher Hahn [mailto:[EMAIL PROTECTED]] Subject: RE: Editing word documents I wanted to ask again whether anyone had found a useful *book* that deals with OLE from perl. MS's MSDN site seems designed so as to spread the info out to such an extent that I do not see the big

OT: Exchange Server Log Files

2001-10-10 Thread Adam Frielink
This is Off Topic... My Exchange Server manuals don't contain any reference to a Log file containing records for Emails that were relayed. I have need to verify whether certain emails I am sending via an app I wrote are actually relaying though the server. Can anyone point me to a log file

RE: Exchange Server Log Files

2001-10-10 Thread Ken Cornetet
Title: RE: Exchange Server Log Files Are you talking about Exchange 5.5? If so, the logs you are looking for are in the tracking.log share of your IMS server(s). The log files are created one per day, and are tab delimited. The log file names, and log timestamps are in GMT, so be

Accessing the windows print spooler API

2001-10-10 Thread Stephen Patterson
I've got some hairy looking C code from microsoft (http://support.microsoft.com/kb/articles/Q158/8/28.ASP) which gives an example of loading print queue information into a set of arrays, and which I'd like to convert to perl. This runs OpenPrinter to create a printer handle and then EnumJobs

RE: Translate a Shell Script Perl Script

2001-10-10 Thread Peter Eisengrein
Welcome to our little family. You'll find that at times we can be a grumpy sort but that most are happy to help. However, we'd usually rather to teach you to fish and feed you for life rather than to simply give you a fish and feed you for a day. With that in mind, here are many of the function

RE: [PBML] Re: Regular expression needed

2001-10-10 Thread Jeffrey
Another method is to specify different delimiters for the match. This avoids LTS (leaning toothpick syndrome): m#^/bootp/linux/#; m%^/bootp/linux/%; m(^/bootp/linux/); Each of the lines above are equivalent -- they're also equivalent to /^\/bootp\/linux\//; --- Vroom, Tim [EMAIL PROTECTED]

Perl-ASP related question

2001-10-10 Thread Hugo Escobar
Hi all: Excuse me if this question has been answered before: Does anyone know a way/scripts/tools to translate (at least help to translate) MS-ASP-VBScript code to Perl? I know about commercial products like ChiliSoft but I'm looking for something in the open source world.

RE: Accessing the windows print spooler API

2001-10-10 Thread Tillman, James
OpenPrinter(szPrinterName, hPrinter, NULL); This is a Win32 API call, not an OLE object method. EnumJobs(hPrinter, 0, 0x, 1, (LPBYTE)pJobInfo, dwNeeded, dwNeeded, dwReturned); Same here. My thinking is that to do this in perl, I should open a printer handle with

RE: [PBML] Re: Regular expression needed

2001-10-10 Thread Thomas_M
Jeffrey [mailto:[EMAIL PROTECTED]] wrote: Another method is to specify different delimiters for the match. This avoids LTS (leaning toothpick syndrome): m#^/bootp/linux/#; m%^/bootp/linux/%; m(^/bootp/linux/); Each of the lines above are equivalent -- they're also equivalent to

RE: Accessing the windows print spooler API

2001-10-10 Thread Joseph P. Discenza
Stephen Patterson wrote, on Wednesday, October 10, 2001 10:54 AM : I've got some hairy looking C code from microsoft : (http://support.microsoft.com/kb/articles/Q158/8/28.ASP) which gives an : example of loading print queue information into a set of arrays, : and which : I'd like to convert to

XCopy

2001-10-10 Thread Jones Robert Contr 81 CS/SCK
Is there a way in Perl on a Windows NT system to copy a directory, it's files, and sub-directories and files efficiently ?? I noticed the rmtree() command in File::find and, based on that, figured there was a comparable command for recursively copying a directory. A few websearches

Re: Question regarding printing from IE via OLE (followup to previous question?)

2001-10-10 Thread Carl Jolley
On Wed, 10 Oct 2001, Stephen Patterson wrote: On Tuesday 09 October 2001 8:29 pm, Morse, Richard E wrote: In a message on 5 Apr 2001, Ron Wantock [email unknown] wrote: I'm trying to load a web page into Internet Explorer and then print it via perl and Win32::OLE. After a lot of stumbling

RE: Question regarding printing from IE via OLE (followup to previous question?)

2001-10-10 Thread Carl Jolley
Here's what I'm trying to do: The place that I work maintains a web site for a different department. The head of this other department refuses to use a computer, but still insists on reviewing the site before it is put online. Hence, I need to take an entire web site and print it out. I

Re: Question regarding printing from IE via OLE (followup to prev ious question?)

2001-10-10 Thread Mark G. Franz
You need to print each page in a site? Other than loading each page inn the browser and hitting print, I don't know if there is a way to capture each page in the background... remember, the browser is going to control the layout and the display, no to mention the contents... Never mind ensuring