Is it possible to move all the files to a current existing partition? Then resize the partition and move everything back? Redhat Linux 7.2 (ext3)
In details :
When I initially created partition, I had wrongly allocated more space for /var partition....which I was suppose to allocate for /home...
I am using following code in my srm.conf, which works fine but it only puts header & footer for a www.mydomain.com
<FilesMatch "\.(html|htm)$">
SetHandler perl-script
PerlHandler Apache::Sandwich
PerlSetVar HEADER "/my_header.html"
PerlSetVar FOOTER...
I have just upgraded our web server from RedHat 6.2 to 7.2 ....
Everything went fine.....server is up and running.....new kernal(2.4.7-10) is installed. BUT now quota system is not working.
It used to work fine in RH 6.2 server.
Whe I reboot my server I get following message:
quotaon...
Is there any way to retrieve local PC IP address of user in C prg.?
I would like to track the users on our website, also to block if someone tries to flood messages in the forum.
All I need is to get his IP address when he logs in the forum. Is there any function to retrive IP address of user...
I need help on the following perl module which displays last modified time in all html pages of "/home/perlguy/test" dir. I am using Apache Webserver.
Prg. search for <BODY> tag if found prints Last modified time
package Apache::Mytest;
# file Apache::Mytest.pm
use strict vars;
use...
I have wrote the following C prg. to display random record contents from text file 'pix.db'. It generates random num from 1 to 10 and then fetches corr. record from 'pix.db'
File pix.db format: (note '|' is my field sepator)
ID|pix file|pic name
for example:
1|pix1.gif|pix1name...
Does anybody know tool for testing C programs. To be more specific I have written some C program using pointers, compiled them....no errors....no run problem at all. BUT I would like to know how efficeint my C programs are.
Is there any tool that checks memory leaks, prg. speed....etc.
Thanks...
I would apprecaite if any JavaScript guru here correct me on the following , I have following code in my "index.html"
page:
<html>
<head>
<title>This is a test</title>
</head>
<body>
<h1> Testing whether it works or not</h1>
<table width="100%" cellspacing="0"...
hi there,
I have a very simple question. Is it possible to run ".cgi" or ".pl" program using javascript SRC tag? e.g.
<SCRIPT LANGUAGE="JavaScript" SRC="http://www.xxxx.com/cgi-bin/stats.cgi"></SCRIPT>
Is there any drawback of doing this ?
Does anyone...
I have stored my some variable inside "myconf.h" as shown below :
/* begin myconf.h variable section */
char name[20] = "tommy";
int age = 26;
/* end of myconf.h */
here is my main C prg. "hello.c" :
#include <stdio.h>
#include <stdlb.h>
#include...
This is very tough for me, but I did my great attempt to solve but FAILED !! It would be great if someone has good stong alternative for the below C prg. :
I am trying return a file record data from the function file_process() but it does not work properly. I mean everthing is ok inside...
Does anyone know how to remove unwanted char e.g. '\n' from strings. As in perl we have a function called chomp($str) which only removes '\n' from the string if it exist.
What is the best way to remove newline char '\n' from string.
Appreciated.
Regards.
Hi everyone.
Sorry to start this new thread , but had no choice since earlier thread was going too lengthy. With the help of some good experts in this forum I have come up with following solution for my following need:
File "list.txt" consist records as :
1=bill gates=MicroSoft
2=Sam...
I would like to write a C prg. which should do exactly what my Perl prg. does. Here is what i need. There is a file called "list.txt" which has following records:
1=bill gates=MicroSoft
2=Sam walton=Walmart
3=Steve Jobs=Apple
4=Larry w=Oracle
Now prg. should generate/print a new...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.