#!/usr/bin/perl use DBI; my ($db, $user, $pw) = ('dbname', '****', '***********'); my $dbh = DBI->connect("DBI:mysql:$db",$user,$pw) or die "Cannot connect to $db: $DBI::errstr
[code].....
The error message is
[Wed Feb 24 13:03:27 2010] myscript.cgi: DBD::mysql::st execute failed: Column count doesn't match value count at row 1 at myscript.cgi. [Wed Feb 24 13:03:27 2010] myscript.cgi: DBI::db=HASH(0x8a30c60)->errstr
i have mandriva 2010 but i want to create ext3 file system. so i am using mke2fs command in terminal. but "command not found" such message is coming. how to solve this problem
By mistake I did mke2fs to my Windows NTFS ParticionTo my understanding It has Modified the inodes only,Can I recover somehow the NTFS inodes?, I lost everything and I know the things are there.I've tryed particion recover, but that's not the problem, the particion is there, and it's NTFS, but the filesystem isnt
My test messages from one mail server to another are getting sent to my spambucket and the only error in the logs is: warning: numeric domain name in resource data of MX record for [URL]: 74.63.64.42
I'm running home server on Debian stable with DHCP, DNS, Mail, VDR, Filesharing and my Weatherstation as main services. The filesharing is used to mount homes at clients. The machine features an Athlon BE-2300, 3GB RAM, GB-LAN, 1TB and 1.5TB SATA HDD plus HDDs for backups. Mainboard has an NVIDIA chipset with
Code: nVidia Corporation MCP65 SATA Controller (rev a3) The primary disks are running in RAID1 + LVM.
Is there a way to show or count how many CPU instructions a particular process is using or uses? In my work we develop a web application and I'm responsible of maintaining the web server. The app lets you handle data online so each client that uses the web application has a folder associated to it, where his data is stored. (/var/www/html/test) for example. The idea is to get how many CPU instructions the httpd process for that particular folder is having. Is there a way to do this?
I'm getting my first web server configured, and as per a tutorial I found, I used shorewall. However, it blocks all internet access (even from apt) to my server! Does anyone know a decent firewall program or a good guide on configuring shorewall?
I have two servers running Linux 2.6.9 kernel.When i telnet to server1 , the telnet will be disconnected only after 3 login failures. While, when i telnet to server2, telnet will be disconnected after the first login failure.expect server2 to behave the same way as server1 when telnet is executed.Kindly tell me where i should tweak my servers so that i could achieve what i expect.
I've configured the RADIUS to use a PostgreSQL DB for accounting. Everything works fine if the connection from the RAD to the SQL is OK. If the PostgreSQL service dead, the RAD will skip the failed connection and continue to work. That's OK, too. But if I shutdown the network interface of the SQL (simulating a connection lost - timeout problem), the RAD thread which processes accounting request will be hung up, remains as active and unresponsive forever. So the RAD will not return anything to accounting client (my NAS).
As more accounting requests come, spare threads for processing the requests will reduce and be used up eventually. I've debugged for a while and found it's the problem of PQexec() function. The function blocks the thread eternally till if the connection lost. I know the RAD version is a little outdated, but I cannot replace it right now. I wonder if there's a way to make the RAD reply to the NAS even when the connection between the RAD and the SQL lost.
Someone at work has requested if i can find out anything on the above.Been googling around as well as i have only been using Linux for 2 months now.
basically there is a SYBASE ASE installation on the server, which a tomcat based website references.They want the service to stop once a certain row limit is reached in the table.
I know i have to do a count statement on the sybase table from ISQL.But how can i create the action "service website stop" once the count value reaches 4000 ?
Previously I had posted a question on how to make it run every 7 minutes between 7 and and 11pm.However now I found out what I really need is every 7 minuted between 7:30 and 11pm BUT it has to be every 7 minutes, it cannot reset itself on the top of every hour, so the */7 wont work.How can it that it will be every 7 minutes, so it will go at 7:30, 37,44,51, 58, 8:05, etc..
I need to parse the file of same name which exist on different servers and calculate the count of string existed in both files.Say a file abc.log exist on 2 servers.I want to search for string "test" on both files and calculate the total count of search string's existence.For example if file abc.log on server 1 has string "test" 2 times and file abc.log on server 2 has string "test" 4 times.then the output will beStringName : Countexampletest : 6 timesNote : I have created the password less connectivity using ssh-keygen.
When I started the PC like always, it started normal been having issues actually, every time I start up the PC it freezes when I put the password in and its going to the desktop and stuff, then I have to re-start it or it re-starts itself, or just go to where I have to type in the password again, and then it does it again after a while, after 3 or 4 times of that it goes to the desktop normally and works fine, but today it took some time, and after it finally loaded the panel was all odd, everything appeared in block letters, like when Mozilla can't recognize certain language it just shows you blocks, that appears, but I check the system, where images and all that, everything appears normal, it only seems to be the panel. wondering if its that I need to re-install the panel, or something else, also this odd file appeared too, it says (invalid coding) next to it, when I go to upload an image or something the files there, I wonder if that has something to do, or maybe its just been there who knows (and the freezing part too), anyways, I'm new here so I don't really know if this place was the right place to post this up OTL theres a screenshot in an attachemnt thing (if I put it up, it would appear to big)
I am having some text rendering issues.I am using F14 and having blocky (dark black blob) covering certain letters and/or numbers when rendering to my Monitor. I am using 'mesa' drivers and was wondering if this has anything to do with it.I wish to use only non-proprietary drivers.I have several friends whose machine I manage and they have been experiencing a similar phenomena.I use 19 and 22 inch LCD monitors and my friends have similar LCD monitors.I have attached a copy of some output with the problem. I have tried different fonts but have not been able to resolve the issue. Could someone help me in getting a possible solution to this problem?
I have wireless connection between my router and PC. It is the only computer connected. Sometimes Firestarter blocks ports 1900 and 6771 from 192.168.1.100 IP address and sometimes port 68 from 192.168.1.1 IP. I'm a bit confused because 192.168.1.100 is the IP addres i use to open ports in router and 192.168.1.1 is used to access the router settings..
I have just started using ubuntu 10.10 and have installed wine, however when I try to run windows programs located in the program file folder of my windows partition they get blockedI have tried changing the permissions to allow then to run as executables but the check box in the permissions tab won't stay checked
i have installed ubuntu 10.10 marverick, and on it i have installed code: blocks 10.05 and i want to run a program using opencv 2.1.0 in code: blocks.. when i build the program it builds properly without any warning but when i run it it does not show any output....
I'm setting up a mysql replication system. I usually maximize what's left on my stock before I buy. I do badblocks first to all 2nd hand hard drive to make sure it is in good condition before I install an Operating System.
I pick up a 200GB sata hard disk in the stock room and test it using badblocks. I left it in the office doing the test and just check it tomorrow. When I return to check, the report says it found 30 bad blocks.
I've got a new hard drive, formatted it to ext3, and made a check for bad blocks using e2fsck.
It gave me this:
Quote:
I just would like to know where i can find how many bad blocks were found (perhaps one if it is using singular in sentence "Updating bad block inode."?), and what is/are the number(s) of located bad block(s).
I need a way to count characters without taking into account spaces, on OpenOffice Writer, and a way to do same, plus counting words on OpenOffice Calc. On Calc, it seems impossible to count words, just cels. I need that to help a friend who is a translator and receives per characters like that (without spaces).
She wants to migrate to free software, but she (and I too) couldn't find this tool on OpenOffice. She tells me it's possible to do that on MS Office.
Recently I have had some problems starting linux, It gets to a part where it says it's loading grub and gives a countdown. I am using 10.4 ubuntu and it shows next a white ubuntu symbol. It then starts doing a system scan and gives a percentage when it gets to 33% it stops and says it can't mountall and that there is something wrong with the file system I can't get past this unless I don't even let the scan start. I think something is a file is messed up but I have no idea what to do.
I list all the instances of a running process my doing:ps -ef | grep myprogramThis lists all them.how can I simply output a count of how many are running?