Hi there!
I'm writing a script that is supposed to kill a single process if the memory usage gets too big. I'm using the Win32::OLE library to do it.
Thing is, the process I want to kill is running as a different user to what the script will be running as. Is there any way I can kill this...
I need to find all the files in a directory that havent been modified in the past 7 days. I've got my script to so far find the last modified time using the following:
use File::Find;
my $age;
@ARGV = qw(.) unless @ARGV; #Darllen o'r current directory os dim paramedr
find(\&nolFfeil, @ARGV)...
Hey!
I want to write a small regular expression to replace "&" with "&" in URLs. Some of the URLs already contain the "&" so I want to skip these ones.
So I need a regular expression that will ignore any "&" followed by "amp;". Any idea how I'd get about this?
Hi!
I want to be able to loop between two dates. Say the two date are 2006/01/01 and 2006/02/01. What I want is to be able to access each day in the range so I can pass that day, and the day before it into a function. Hmm that doesn't make sense...
My function is defined as follows...
Here is the SQL I need to use and I'll explain the problem underneath it!
SELECT
a.attachment_id,
'"' + a.description + '"' as teitl_atodiad,
'"' + d.title + '"' as teitl_dogfen,
'"' + a.filetype + '"' as math_atodiad,
'http://www.gwynedd.gov.uk/' + a.filename as cyswllt_atodiad...
Working on the same problem,
There are going to be occasions when the index into the hash doesn't match anything in there. I.E. sequence number isnt in the first one or sub-sequence isnt in the second one.
How can you check for this? What does it return if you try to access an invalid key?
I've got this XML file that I'm trying to parse to take out some values to put into a CSV file. One part of the file is some "tax_lines" that are associated with some invoices. I need to take out the tax_lines so that I can put them with the invoice lines in the CSV. To do this I have decided to...
Hi there :)
I have a reference that I read from a file that I want to increment. The reference is of the form:
xx0001 where xx are letters and 0001 is a number between 0001 and 9999. What I want is to increment this number. I'm not concerned about what happens after 9999 at this moment in...
Hi there,
I get the following error message when executing my ASP:
error '80020009'
/corystadegauelk/includes/ffwythiannau.asp, line 90
and line 90 is as follows:
datAmserFynu = DatePart("YYYY", rstAmserFynu("test_time")) & "/" & DatePart("M", rstAmserFynu("test_time")) & "/" &...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.