unix redhat 7.2

2002-04-27 Thread anthony
Hi, does anybody have red hat 7.2 (pro/or not pro)? If so when you do perl program do you need internet connection to test your files? And how do you test your files? thank you Anthony -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

WEB Monitoring Script going crazy

2002-04-27 Thread Zachary Buckholz
I wrote the script below to pull data from a mysql database and update the datebase based on the results of a check. I have used Parallel::ForkManager which I used in the past in another script without problems. But for some reason this script killed my server today when it tried to check 4,000 pl

Problem with system provided utilities

2002-04-27 Thread sharan
Hello, I have 2 problems with system utility. 1. If a process is started by system, then, when a process is killed, child process still remains. 2. When output of the process is redirected to a file, file does not get updated util process dies. This problem is there on Linux and windows as well

Serious problem with perl -pi -e

2002-04-27 Thread sharan
Hello, I lost my files, while using perl -pi -e. I wanted to replace a world in a set of files, "perl -pi -e 's/somestring/somethingelse/g' *.pl" but, it gave error saying permission denied and all the files got deleted. If it cant rewrite the files, at least it should not delete. Thanks Sharan

RE: GoryDetails on: error log message

2002-04-27 Thread Mat Harrison
right, i am back. Let me define this 'one': The script returns the output i mentioned in the last most on both servers when execute as follows: #perl check2.cgi but only my local development webserver allows it to run via a web browser. it does not work via a web browser if i execute it on my w

Re: Serious problem with perl -pi -e

2002-04-27 Thread Paul Johnson
On Sat, Apr 27, 2002 at 12:35:38PM +0530, sharan wrote: > Hello, > > I lost my files, while using perl -pi -e. > I wanted to replace a world in a set of files, "perl -pi -e > 's/somestring/somethingelse/g' *.pl" > but, it gave error saying permission denied and all the files got deleted. > > If

Re: Serious problem with perl -pi -e

2002-04-27 Thread John W. Krahn
Sharan wrote: > > Hello, Hello, > I lost my files, while using perl -pi -e. > I wanted to replace a world in a set of files, "perl -pi -e > 's/somestring/somethingelse/g' *.pl" > but, it gave error saying permission denied and all the files got deleted. > > If it cant rewrite the files, at lea

can anyone help me, please..

2002-04-27 Thread senrong
what do these few matches with? m/(ham|cheese|Big Mac) burgur/ m/(fred){3}+d/ tr/A-Z/a-z/ s!(http|ftp)://((\w+\.)*\w+)((/\w+)*/?)!$2! thanks -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: can anyone help me, please..

2002-04-27 Thread Jonathan E. Paton
> what do these few matches with? Please don't ask homework questions on the list, unless you need something particular explained. Especially with regex's, as the best way to describe the complete set of matching strings is another regex (or more likely, the same one). > m/(ham|cheese|Big Mac)

Re: Concatenating

2002-04-27 Thread John W. Krahn
James Poni wrote: > > Hello Hello, > I have 3 text files and i want to perform concatenation from each line of > the 3 files. > > I want the output to look like this: > > aaa mon 1 > bbb wed 2 > ccc sun 3 > ddd tue 4 > > Is it possible to sort the days column in order of the week? Eg > > cc

Process Tree

2002-04-27 Thread sharan
Hello, Is there any generic way to find the list of child ids? (common to windows and Linux). Because, i want to kill explicitly all the child procs before terminating parent. Thanks and Regards Sharan Hiremath. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [E

Re: unix redhat 7.2

2002-04-27 Thread aman cgiperl
I use red hat 7.2 There is no need to have intenet connection to test perl. You should just have a perl compiler. If you want to test cgi, you might want to install Apache or another web server, if you don't have one. Hope it helps Aman - Original Message - From: "anthony" <[EMAIL PROTEC

Re: unix redhat 7.2

2002-04-27 Thread drieux
On Saturday, April 27, 2002, at 01:56 , anthony wrote: [..] > does anybody have red hat 7.2 (pro/or not pro)? it's better than rh7.1 what are you really planning to do? > If so when you do perl program do you need internet connection to test > your > files? As the flash struck one of my a

Re: GoryDetails on: error log message

2002-04-27 Thread drieux
On Saturday, April 27, 2002, at 03:08 , Mat Harrison wrote: > right, i am back. Let me define this 'one': > > The script returns the output i mentioned in the last most on both servers > when execute as follows: > > #perl check2.cgi > > but only my local development webserver allows it to run vi

Re: Process Tree

2002-04-27 Thread drieux
On Saturday, April 27, 2002, at 06:08 , sharan wrote: > Hello, > > Is there any generic way to find the list of child ids? (common to windows > and Linux). Because, i want to kill explicitly all the child procs before > terminating parent. generically you want man ps that will help wi

RE: GoryDetails on: error log message

2002-04-27 Thread Mat Harrison
i have recently found out that for some reason no cgi scripts will run on my web host. i have got the support desk onto this and they are having a hard time finding the problem which is somewhere in apache. thanks for all your help but i think i can leave it to my *NIX tech admin now. cheers --

Re: Process Tree

2002-04-27 Thread Felix Geerinckx
on Sat, 27 Apr 2002 13:20:47 GMT, Sharan wrote: > Is there any generic way to find the list of child ids? (common to > windows and Linux). Because, i want to kill explicitly all the child > procs before terminating parent. If you fork, you return the child's pid to the parent. See perld

Re: assigning array to hash

2002-04-27 Thread drieux
On Friday, April 26, 2002, at 03:49 , Shaun Fryer wrote: [..] > > foreach $value (@array) { > $scalar_array .= "$value|"; > } > chop($scalar_array); > my %hash; > $hash{some_key} = $scalar_array; > > Then if you want to get the array from the key's value later > on, you just split(/\|/,"$

Source for module Filter::Util::Call

2002-04-27 Thread drieux
On Saturday, April 27, 2002, at 05:26 , John W. Krahn wrote: > use Inline::Files; I was able to find that module at the CPAN but it requires Filter::Util::Call - which I can not find on the CPAN... sorry - there it is Filter-1.2.6.tar.gz ciao drieux --- -- To unsubscribe, e-mai

RE: I can't get this to run!

2002-04-27 Thread Shaun
Hi, > I can't get this cgi script I downloaded to run... Try checking the file for ^Ms at the end of the line with: $ cat -v /usr/lib/cgi-bin/agbot/agbot.cgi I think you will find that it will have: #!/usr/bin/perl^M Then you will have to strip off all the ^Ms from all the lines with: $ perl -p

Oracle Error while trying to connect to oracle tables

2002-04-27 Thread Craig Inman
I have this program that will work for me as I have my environment variables set properly in my .profile. Problem is, this needs to be run by lots of people and I'm trying to avoid having all these people have to change their .profiles to add the Oracle environment variables. Let's just say, so

Re: Oracle Error while trying to connect to oracle tables

2002-04-27 Thread Matt C.
You could setup another environment script to wrap your perl in (although setting up your environment with %ENV should work too). We do similar things by creating little shell scripts that setup the environment, then execute our perl stuff. We have one global env. that we source before all of our

RE: Removing ^M (Carriage Return) from files on *nix

2002-04-27 Thread Max Clark
Another way would be like this... $ col -bx < dosfile > newfile It's important that you use a different file name for the "newfile". Max -Original Message- From: Shaun Fryer [mailto:[EMAIL PROTECTED]] Sent: Friday, April 26, 2002 5:03 PM To: Perl Beginners Subject: Removing ^M (Carriag

Re: I can't get this to run!

2002-04-27 Thread drieux
On Saturday, April 27, 2002, at 03:20 , Shaun wrote: >> $ perl /usr/lib/cgi-bin/agbot/agbot.cgi > >> and it works just fine.. Huh? I don't get it.. > That's because the shebang line is ignored when you prefix the script with > the perl command. you are correct - but I prefer to assert it the

#exec / perl ?

2002-04-27 Thread CMS
Here one, I have the on our web page, this error is display were the tag is: [an error occurred while processing this directive] on the website, and this is the error in the log file; [Sat Apr 27 20:37:18 2002] httpd: exec used but not allowed in /usr/local/etc/httpd/WebSites/www.iCommerce

Creating a directory and then writing files to it.

2002-04-27 Thread Tara Calishain
Hi, it's me again. I am reading lines from a text file in directory A. From those lines I want to generate files which I want to copy to directory B. Directory B is generated based on a variable. The structure is so: directorya/directoryb/ So I need to do the following things: 1) Make Direct

Re: Creating a directory and then writing files to it.

2002-04-27 Thread drieux
On Saturday, April 27, 2002, at 10:26 , Tara Calishain wrote: > > I thought chdir would do the trick, but the files are still being written > to directory A > despite the fact that directory B appears to have been generated fine. chdir merely changes where the process is... and would be a reas