Re: locking a file in linux

2002-09-08 Thread Mark Goland
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

Re:File Globbing problems

2002-09-08 Thread Sudarshan Raghavan
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

Re: File Globbing problems

2002-09-08 Thread John W. Krahn
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 /

perl and my DB...

2002-09-08 Thread Mariusz
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

Re:File Globbing problems

2002-09-08 Thread pn
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

RE: Problems with perl and cron jobs

2002-09-08 Thread David Gerler
> > > > 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

Re: Translating fortran subroutine to perl

2002-09-08 Thread John W. Krahn
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

Re: Problems with perl and cron jobs

2002-09-08 Thread Tanton Gibbs
> 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

Re: Problems with perl and cron jobs

2002-09-08 Thread Thanatos
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

Re: Problems with perl and cron jobs

2002-09-08 Thread Ebaad Ahmed
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

RE: Problems with perl and cron jobs

2002-09-08 Thread David Gerler
> 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

Re: Problems with perl and cron jobs

2002-09-08 Thread Thanatos
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

Re: print only what a regex actually hits

2002-09-08 Thread Harry Putnam
"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?

Re: how to approach this?

2002-09-08 Thread nyec
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

Re: how to approach this?

2002-09-08 Thread nyec
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

Re: print only what a regex actually hits

2002-09-08 Thread Jeff 'japhy' Pinyan
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 () {

how to approach this?

2002-09-08 Thread pelp
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

Re: perlcc boot_File__Glob error (solution)

2002-09-08 Thread zentara
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

Re: Translating fortran subroutine to perl

2002-09-08 Thread John W. Krahn
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

Re: Translating fortran subroutine to perl

2002-09-08 Thread John Cichy
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(

Re: file exists statement

2002-09-08 Thread Tony
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

Re: perlcc boot_File__Glob error (solution)

2002-09-08 Thread Paul Johnson
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

RE: file exists statement

2002-09-08 Thread Jeff
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

file exists statement

2002-09-08 Thread Tony
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