Re: ATTACK TO MY SYSTEM

2003-09-23 Thread Matthew Harrison
no to create more spam with spam but in the last two days, the company I work for has recieved: 798 microsoft support emails, and we only have about 10 active email accounts on that domain. I am using an OpenBSD port (mail/bmf) to filter them out. On Tue, Sep 23, 2003 at 12:04:57PM +0200, Jenda

Re: Writing to $?

2003-10-22 Thread Matthew Harrison
you can use the exit function like so: #!/usr/bin/perl -wT blah..; if (it worked){ exit(0); } else { exit(100); } On Wed, Oct 22, 2003 at 10:41:15AM -0500, Jason wrote: > Hi All, > > I need to write a script that cooperates with a bunch of other scripts > in the 'toolbo

Re: DBI.pm

2003-08-29 Thread Matthew Harrison
you need to install DBI do # perl -MCPAN -e shell then at the cpan prompt do # install DBI and follow any instructions. On Fri, Aug 29, 2003 at 03:43:47PM +0530, Sachin Mathur wrote: > Any suggesstion for the following error. > > Can't locate loadable object for module DBI in @INC (@INC co

Re: Upload local file to server

2003-08-29 Thread Matthew Harrison
On Fri, Aug 29, 2003 at 11:13:24AM -0500, Whippo, Ryan K wrote: > Is there an easy way to upload a local file to a server? gonna need to know some stuff before i can help further: what operating system is your local machine/server? what protocol/software do you want to upload with? what sort of d

Re: OT: version control and tracking?

2003-09-09 Thread Matthew Harrison
that is the id tag for a file that is being managed by RCS (a simple version of CVS) do # man rcs for more info On Tue, Sep 09, 2003 at 12:24:00PM +0200, Kevin Pfeiffer wrote: > I occasionally see things in a script such as: > # $Id$ > > I assume this is for some sort of automated versio

Re: pls do reply

2003-09-09 Thread Matthew Harrison
there is a var with it already set: perldoc perlvar see $PID or $$ On Tue, Sep 09, 2003 at 10:07:43PM +1000, Vema Venkata wrote: > How do i get the process id into a variable ? > can any one help > > > $pid = qx(ps -f|grep srvtst26); > print "Server Started : $pid \n -- Mat Harrison Techni

Re: Is there a way in PERL ......

2003-09-11 Thread Matthew Harrison
yes you can do something like this (very quick example - not tested): my $ping = `ping -c4 | tail -n1`; chomp($ping); if ($ping =~ s/unreachable/) { print < error cannot reach machine EOF ; } else { print < ok e

Re: Env. var LC_ALL

2003-09-12 Thread Matthew Harrison
hi, setenv is a c shell internal. with bash use export LC_ALL=C On Fri, Sep 12, 2003 at 01:12:54PM +0200, Gisle Askestad wrote: > Hi > And thank you for replying to my problem. > > I tried: setenv LC_ALL=C > It returned: bash: setenv: command not found > > "set env LC_ALL=C" doe

foreach

2002-04-06 Thread Matthew Harrison
will populate a drop-down html menu. -- Matthew Harrison Internet/Network Services Administrator Peanut-Butter Cheesecake Hosting Services Genstate www.peanutbuttercheesecake.co.uk -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

stripping \n from strings

2002-05-02 Thread Matthew Harrison
ers? the text file looks like this: /usr/local/games/hlds hlds cstrike 8 cs_assault +sv_password mypassword -- Matthew Harrison Internet/Network Services Administrator Genstate www.genestate.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

apache::session

2002-05-09 Thread Matthew Harrison
I have had a look at the apache::session description on CPAN but I do not understand how it is applied to a site over a number of different CGI scripts (eg, login, forums, membership area). Please could someone give me some simple directions? thanks guys -- Matthew Harrison Internet/Network

Re: apache::session

2002-05-11 Thread Matthew Harrison
ink: The article deals with > HTML::Mason, but gives a good overview of Apache::Session as well. > > http://www.masonhq.com/user/adpacifico/ApacheSessionMason.html > > Matt > > --- Matthew Harrison <[EMAIL PROTECTED]> wrote: > > I have had a look at the apache::sess

reading config file

2002-05-12 Thread Matthew Harrison
e line for modification. is anything like this possible? or is there an easier way to do it? -- Matthew Harrison Internet/Network Services Administrator Genestate www.genestate.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Perl and apache

2002-02-18 Thread Matthew Harrison
apache.org but not always with the redhat 7.2 distro version (unless i change the file root, and no, it doesn't start working if i change it back). has anyone else ever had to solve this before. Cheers -- Matthew Harrison Internet/Network Services Adminstrator Gene

web to sms

2002-03-12 Thread Matthew Harrison
what do i need to send sms messages to mobile phones from my website? is it just the script or do i need emmitters, satellites and whatnot? is there a site that allows you to target one of their scripts with a form on your site. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comma

output to a textfile

2002-03-19 Thread Matthew Harrison
just show me an example of the write line. cheers -- Matthew Harrison Internet/Network Services Administrator Peanut-Butter Cheesecake Hosting Services Genstate www.peanutbuttercheesecake.co.uk -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

checking username

2002-03-20 Thread Matthew Harrison
, how? also, how can i make a cron job that parses the textfile and creates a new user from the results? the textfile is in the format of: username:password:gid:homedir:shell the syntax for my adduser program is: adduser -g 'gid' -d 'homedir' -s 'shell' -p 

callin subs

2002-03-22 Thread Matthew Harrison
i have defined a sub using sub mysubname{ code here } but how do i call it? i have tried just having the name but that doesn't work. -- Matthew Harrison Internet/Network Services Administrator Peanut-Butter Cheesecake Hosting Services Genstate www.peanutbuttercheesecake.co.uk -

my first regex i think

2002-03-22 Thread Matthew Harrison
if i have a file delimited by commas and i want to make a script that will search to see if a word, passed in a query string, is in the file, and redirect to one url if i does and one if it doesn't (both urls are also passed via query strings) thanks in advance -- Matthew Harrison Int

re: callin subs

2002-03-22 Thread Matthew Harrison
not connect to database" if !$dbh; $sth = $dbh->prepare("UPDATE chars SET $spec1 = $spec1 + $spec2 WHERE id = '$id'"); if ($sth && $sth->execute()){ }} print < The Fabled Lands - The Temple of $god Thank you for becoming an initiate of the Temple of

Re: callin subs

2002-03-22 Thread Matthew Harrison
all sorted now, thanks to you experts. it was because I have prefixed my variables with 'my' which restricted them. On Friday 22 Mar 2002 3:34 pm, Matthew Harrison wrote: > is there something that says a variable doesn;t get passed when calling a > sub in the same script? i am

joining 2 strings

2002-03-22 Thread Matthew Harrison
i need to join $stringa to $stringb with a coma in the middle (no whitespaces). i have tried $stringc = $stringa.",".$stringb but it says there is a problem. what should it be? -- Matthew Harrison Internet/Network Services Administrator Peanut-Butter Cheesecake Hosting Service

Re: joining 2 strings

2002-03-22 Thread Matthew Harrison
it said scalar found where operator expected. On Friday 22 Mar 2002 11:44 pm, bob ackerman wrote: > what did it say the problem was? > that line is missing a semicolon at end. > > On Friday, March 22, 2002, at 03:40 PM, Matthew Harrison wrote: > > i need to join $stringa to $s

Re: joining 2 strings

2002-03-22 Thread Matthew Harrison
t. > > On Friday, March 22, 2002, at 03:46 PM, Matthew Harrison wrote: > > it said scalar found where operator expected. > > > > On Friday 22 Mar 2002 11:44 pm, bob ackerman wrote: > >> what did it say the problem was? > >> that line is missing a semicolon at

Re: joining 2 strings

2002-03-22 Thread Matthew Harrison
x27;$id'"); if ($sth && $sth->execute()){ } } print "Location: $goback\n\n"; } On Friday 22 Mar 2002 11:56 pm, bob ackerman wrote: > maybe you could show what is in $stringa and $stringb. > show a few lines before and after the line with the error. > th

Re: joining 2 strings

2002-03-22 Thread Matthew Harrison
after all this, it was a simple typo, i had accidentally put a comma in the place of the first period. I am really, really sorry for messing you guys about like this. On Friday 22 Mar 2002 11:59 pm, you wrote: > On Fri, Mar 22, 2002 at 11:40:26PM +0000, Matthew Harrison wrote: > >

Re: joining 2 strings

2002-03-22 Thread Matthew Harrison
sure On Saturday 23 Mar 2002 12:37 am, you wrote: > Heh heh! That's OK. Just buy us all a round at some pub when we go across > the pond! > > -Original Message- > From: Matthew Harrison [mailto:[EMAIL PROTECTED]] > Sent: Friday, March 22, 2002 4:34 PM > To: M

aritmetic operators

2002-03-24 Thread Matthew Harrison
can anyone suggesta better way? cheers -- Matthew Harrison Internet/Network Services Administrator Peanut-Butter Cheesecake Hosting Services Genstate www.peanutbuttercheesecake.co.uk -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

arithmetic operators

2002-03-25 Thread Matthew Harrison
in short, how can i take 2 values from params passed to the script in a form, and get a third variable from subtracting the first 2? -- Matthew Harrison Internet/Network Services Administrator Peanut-Butter Cheesecake Hosting Services Genstate www.peanutbuttercheesecake.co.uk -- To

Re: arithmetic operators

2002-03-25 Thread Matthew Harrison
- param('val2'); > > Rob > > -Original Message- > From: Matthew Harrison [mailto:[EMAIL PROTECTED]] > Sent: Monday, March 25, 2002 9:20 AM > To: [EMAIL PROTECTED] > Subject: arithmetic operators > > > in short, how can i take 2 values from params passed to t

Re: aritmetic operators

2002-03-25 Thread Matthew Harrison
u are generating invalid HTML and > your web server is spitting up on the results...in other words, this is a > CGI error, not actually an arithmetic error. > > HTH, > > Dave > > On Sun, 24 Mar 2002, Matthew Harrison wrote: > > I have two scalars created from passed params

Re: Can I set this as a hash?

2002-03-25 Thread Matthew Harrison
HASH OF HASH HERE > } > } > close USER_DATA; > return %users; #NAME OF HASH > } > > read_data(); > > Does any one have any ideas on how I would go about this? Is this even > the best way to do something like this? > > Regards, > > Dan > > -- Matthew Harrison Internet/Network Services Administrator Peanut-Butter Cheesecake Hosting Services Genestate www.peanutbuttercheesecake.co.uk -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Can I set this as a hash?

2002-03-25 Thread Matthew Harrison
er enters > username1 as their username I need to display... > > fullname1 company1 owing1. > > Does this make sense? > > Regards, > > Dan > > > > -Original Message- > From: Timothy Johnson [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, 26 Mar

Re: How to thread in Perl?

2002-03-25 Thread Matthew Harrison
What exactly do you mean by 'thread'? On Mon, 25 Mar 2002, Ahmed Moustafa wrote: > How can I thread a function in Perl? > > Any help will be appreciated so much. > > Regards, > -- Matthew Harrison Internet/Network Services Administrator Peanut-Butter Cheesecak

URGENT: How do I downgrade perl

2002-03-27 Thread Matthew Harrison
I have just upgraded from Perl 5.6.0 to 5.6.1 and I have ofund I need to downgrade due to incompatibility with a web app I have. How do I downgrade? -- Matthew Harrison Internet/Network Services Administrator Peanut-Butter Cheesecake Hosting Services Genstate www.peanutbuttercheesecake.co.uk

Re: URGENT: How do I downgrade perl

2002-03-27 Thread Matthew Harrison
headers: /web/cgi-bin/manager.cgi On Thursday 28 Mar 2002 3:19 am, Matthew Harrison wrote: > I have just upgraded from Perl 5.6.0 to 5.6.1 and I have ofund I need to > downgrade due to incompatibility with a web app I have. How do I > downgrade? -- Matthew Harrison Internet/Network