This will do mandetory locking { which can also be done with "chmod +l
filename"}. If someone can rewrite this into perl , that would be great.
/*
write by Mark Goland use and enjoy keep the tag
[EMAIL PROTECTED]
*/
#include
#include
int main(int argc,char **argv){
int mode;
struct st
On Sun, 8 Sep 2002, pn wrote:
> Hi,
>
> I have a file age_classes.txt in /prj/tmp that
> contains the following information. These are intended
> to be prefixes for the file names in the agegroup_data
> directory.
>
> $ cat $age_classes.txt
> agegroup2
> agegroup3
> agegroup4
>
> I also have a
Pn wrote:
>
> Hi,
Hello,
> I have a file age_classes.txt in /prj/tmp that
> contains the following information. These are intended
> to be prefixes for the file names in the agegroup_data
> directory.
>
> $ cat $age_classes.txt
> agegroup2
> agegroup3
> agegroup4
>
> I also have a directory /
Hi,
I have a html form that submits data (a record) to a table. However, then the next
page gets loaded in with more input fields that need to be submitted to the same
location in the table (it's a second part of that same record). How can I accomplish
that? (I'm asking for the logic, not the
Hi,
I have a file age_classes.txt in /prj/tmp that
contains the following information. These are intended
to be prefixes for the file names in the agegroup_data
directory.
$ cat $age_classes.txt
agegroup2
agegroup3
agegroup4
I also have a directory /prj/temp/agegroup_data that
contains the foll
>
>
> > Also, is $biddernum defined and does it contain a value?
>
> I would look really closely at this statement as I think this is probably
> the problem (based on your error message and description). More
> than likely
> you are setting it with some user input field on the web page
> (like a
John Cichy wrote:
>
> Thank you very much, you confirmed that I was at least on the right track
> with what I was doing. The numbers are still not coming out correctly (at
> least not what I was expecting). This file seems to be geared towards a
> sun system, could this be effecting my results, w
> Also, is $biddernum defined and does it contain a value?
I would look really closely at this statement as I think this is probably
the problem (based on your error message and description). More than likely
you are setting it with some user input field on the web page (like a cookie
even?) an
David Gerler wrote:
>>David Gerler wrote:
>>
>>>Hi all,
>>> I have a script that runs an SQL query and sends an email
>>
>>using sendmail.
>>
>>>It works fine if called using a browser. The email is sent with
>>
>>the correct
>>
>>>content in the message.
>>> If I run it using cron, I get
Could also be the env variables set by the httpd.conf file while they are
not set when the script runs by the crontab, try running it with the command
line and see if it gives you any errors.
I did have the problem with the sql scripts running with the apache until I
defined all the env variables
> David Gerler wrote:
> > Hi all,
> > I have a script that runs an SQL query and sends an email
> using sendmail.
> > It works fine if called using a browser. The email is sent with
> the correct
> > content in the message.
> > If I run it using cron, I get the message but the content
> i
David Gerler wrote:
> Hi all,
> I have a script that runs an SQL query and sends an email using sendmail.
> It works fine if called using a browser. The email is sent with the correct
> content in the message.
> If I run it using cron, I get the message but the content is not sent.
> M
"Jeff 'japhy' Pinyan" <[EMAIL PROTECTED]> writes:
> On Sep 6, Harry Putnam said:
>
>>IMPORTANT: I don't want techniques involving call back (remembered)
>>operators and parens, I know how to piece those together for simple
>>things like the file below.
>
> Is there a reason for that limitation?
On Sunday 08 September 2002 09:11 am, nyec wrote:
> On Saturday 07 September 2002 05:37 pm, pelp wrote:
> > I was given a job to manipulate MIF files and decided to do the job in
> > PERL for it's powerful text manipulating capabilites. A MIF file is
> > another method to represent a FrameMaker fi
On Saturday 07 September 2002 05:37 pm, pelp wrote:
> I was given a job to manipulate MIF files and decided to do the job in
> PERL for it's powerful text manipulating capabilites. A MIF file is
> another method to represent a FrameMaker file which contains all these
> tags similar to html.
>
> Wh
On Sep 6, Harry Putnam said:
>IMPORTANT: I don't want techniques involving call back (remembered)
>operators and parens, I know how to piece those together for simple
>things like the file below.
Is there a reason for that limitation? Oh well. Anyway, here's a good
approach:
while () {
I was given a job to manipulate MIF files and decided to do the job in
PERL for it's powerful text manipulating capabilites. A MIF file is
another method to represent a FrameMaker file which contains all these
tags similar to html.
What I need to do (and this is where I need help) is to delete a
On Sat, 7 Sep 2002 11:07:23 -0400, [EMAIL PROTECTED] (Bob
Showalter) wrote:
>I wonder why there's so much traffic on this list about perlcc? Why do so
>many feel the compulsion to "compile" their programs?
My observations:
1. C compiled programs run faster, so many beginners
"think" that if
John Cichy wrote:
>
> Thank you very much, you confirmed that I was at least on the right track
> with what I was doing. The numbers are still not coming out correctly (at
> least not what I was expecting). This file seems to be geared towards a
> sun system, could this be effecting my results, w
John,
Thank you very much, you confirmed that I was at least on the right track with what I
was doing. The numbers are still not coming out correctly (at least not what I was
expecting). This file seems to be geared towards a sun system, could this be effecting
my results, would using binmode(
Great Jeff, thanks,
Just what I was looking for,
if (not -e '/path') is new to me, that's a great way of handling it!
Thanks,
Tony
- Original Message -
From: "Jeff" <[EMAIL PROTECTED]>
To: "'Tony'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Sunday, September 08, 2002 2:29 AM
Subje
On Sat, Sep 07, 2002 at 05:43:10PM -0700, Tony wrote:
> Well, in my case I work for a security company, and I need to close the
> source to make sure that our software is "secure".
It's good to see that security through obscurity is alive and well. I
suppose that your use of double quotes shows
unless -e '/dir/path/file';
-or-
if ( not -e '/dir/path/file' ) {
}
-Original Message-
From: Tony [mailto:[EMAIL PROTECTED]]
Sent: 08 September 2002 10:24
To: [EMAIL PROTECTED]
Subject: file exists statement
I keeps writing this out
if (-e "/dir/path/file"){}else{
#execute
}
To
I keeps writing this out
if (-e "/dir/path/file"){}else{
#execute
}
To execute a statement when a file doesn't exist.
Someone want to shorten this so I don't have to use an else statement.
Thanks,
Tony
24 matches
Mail list logo