Search:
Type: Posts; User: Hena
Search:
Search took 0.32 seconds.
-
If you want first element of @array, then use must do $array[0] not @array[0]. So try
@states=qw($filelist[0]);
Ps. these lines _always_ as first lines
use warnings;
use strict;
-
This might be instresting. I could be in as well. Know some bash and perl, little c, very little java.
-
Or make the two string into one string like this:
if (-e "$filedir/$filename")
-
Pids of certain programs? Use "pidof". Pids of all processes? Use "ps". Read man page of ps before using though (example command "ps -AwfH").
-
Afaik, you need to create a startup script within "/etc/rc.d/init.d" directory. Then use the scripts provided by RH to print the "OK/FAILED" texts. You need line like ". /etc/rc.d/init.d/functions"...
-
Shot in the dark here. Did you install the gcc c++ bits as well? If you did, then i don't know.
-
Well ${} does parameter substitution. There are a set of rules of how things work. Basicly the "*$s=" means inside ${} that everythign before "$s=" and itself is removed from variable.
To...
-
With RH, you can see what xinetd is running with "chkconfig --list". Also you can check all the files which control software behind xinetd in "/etc/xinetd.d" directory. There is one file per program.
-
Try to unload the wrong module with "rmmod" first. Haven't seen that error though, so can't know if it helps.
-
Well "iptraf" might be suitable. I haven' t used it though so i don't know how specific it is.
-
What filesystem does it have? If it is linux (eg. ext2, ext3, reiserfs) it needs mount option "rw". If windows (fat32) option "umask=000". Read "man mount", it has more explanations.
-
This seems to do it. If i got it right.
#!/bin/bash
# the variable which holds all
var="val=100 ddd=yh y=k44"
# the "key" of value we want
s="ddd"
# then removing all before it and cut...
-
Does it have a script in "/etc/init.d" directory? If it does use "chkconfig" to start it. If it doesn't then you have to create a script for it.
-
If you truly want to learn linux, then install gentoo (web site) and do a lfs system (web site). I've heard that both has teached a lot about linux.
Also nice things might be to learn how lvm...
-
Search with "ntfs mount" to get info. I'll make a summary:
1. "modprobe ntfs"
2. edit "/etc/fstab" add line:
/dev/hdX /mnt/win umask="222",auto,ro,nodev 0 0
3. "mount -a"
If you don't have...
-
Basics is using command "modprobe". You use it like "modprobe module_name" (read "man modprobe"). Other module commands that are good to check are "lsmod" and "rmmod" and if you want "insmod", but...
-
Easy way to capture output is to start program with ``. So similar to
my $output=`/usr/bin/unzip $file`;
print "$output\n";
print "$Unziping done.\n";
-
Iptables is updated version of ipchains. So if you are starting to learn, go for iptables. That is being used in 2.4 kernels, which tends to be in current distribution versions. If you need to handle...
-
That tells that it can't find the root directory. You might want to check the root command in lilo or anything that involves mouting root.
-
The placing of files might be different, from your usual places. Also how they are configured might vary. They probably work, but there might be some wierd anomalies. I have installed few programs...
-
It sounds like you have two differend kernels there. 2.4.18-14 and 2.4.18-24.8.0. Now it sounds as your using 2.4.18-14 and you don't have its source and you have source for 2.4.18-24.8.0 but your...
-
Comes with kernel. Download latest from The Linux Kernel Archives.
-
Eepro100 and eepro1000 are for some intel ethernet cards. I have integrated card that is using eepro100. And i think that modules with 3cXXX are for 3coms cards (might be better to check that though).
-
Depending from your distribution and installation, you might have command "unzip". That is used for .zip archives.
-
What is the error output? Without that it's hard to say, whats going wrong.
Also try "sed s/<BR> <BR>//g filename".
|
|