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
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
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
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
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
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
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
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.
___
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
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
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
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
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
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
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]
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.
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
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
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
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
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
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
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
23 matches
Mail list logo