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
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
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
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
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
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
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
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
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]
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
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
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]
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]
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
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
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
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
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]
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
- 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
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
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]
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
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:
> >
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
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
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
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
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
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
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
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
-
, 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
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]
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
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
36 matches
Mail list logo