Search Results

Search: Posts Made By: TehOne
Forum: Linux 08-09-2012
2,147
Posted By TehOne
raid1 (dmraid) - bad sectors - mount - smartd - complicated!
Hello,

i'm running a server with two disks in raid1.. it seems that some bad sectors have recently appeared on one of the disks.


Aug 9 08:26:19 linux smartd[3454]: Device: /dev/sda, FAILED...
5,596
Posted By TehOne
Damn that looks great, thanks allot! Hmm...
Damn that looks great, thanks allot!

Hmm but it also gets me thinking, how would I parse the output properly to arrange all that information into the appropriate rows..eg. to match the .csv...
5,596
Posted By TehOne
Extract/Parse information from html (website)
Hello,

I want to extract some informations from a html (website, http://www.energiecontracting.de/7-mitglieder/von-A-Z.php?a_z=B&seite=2 ) file and save those in a predefined format (.csv).....
2,316
Posted By TehOne
Thank you m.d.ludwig but I'd need this to be...
Thank you m.d.ludwig but I'd need this to be within my bash/sh script, not perl.. Forgot to mention that in the first post, sorry!!!!!


Edit:

Or well preferable in bash but would nobody else...
2,316
Posted By TehOne
Displaying time left to end of day, week, month?
Hello,

basically I'm looking after a way of showing how many time is left to the end the day, week, month...

I can't seem to figure this out, so could one of you skilled guys tell me how should...
4,644
Posted By TehOne
Thanks!
Thanks!
4,644
Posted By TehOne
Hello, how do I check whenever a dynamic var...
Hello,

how do I check whenever a dynamic var exists and how can I compare them in a if statement?

Example:


counter=0
example=1
until (($counter>2)); do
if [ ! "$(eval echo...
4,644
Posted By TehOne
thanks alot, that works like a harm :)
thanks alot, that works like a harm :)
4,644
Posted By TehOne
dynamic variables - eval - expand etc.
Hello,

so i'm making a script, using dynamic variables and trying to expand them. So far it hasn't worked out too well so it seems that I need some help from you, the elite.

Example:

...
Forum: IP Networking 12-07-2010
3,674
Posted By TehOne
That doesn't really help.
That doesn't really help.
Forum: IP Networking 12-05-2010
3,674
Posted By TehOne
Interface bonding / Link aggregation (Multiple)
Hello,

I've been using mode 4 with four slaves, however looking at ifconfig showed that the traffic was not balanced correctly between the interfaces, the outgoing traffic has been alot higher on...
3,169
Posted By TehOne
CentOS 5.5 and it's a ftp server..
CentOS 5.5 and it's a ftp server..
3,169
Posted By TehOne
Disable connection logging for a specfic service (/var/log/secure)
Hello,

is there a way to disable connection logging for a specific service? Or eventually to disable /var/log/secure in general?
Forum: Linux 12-03-2010
3,277
Posted By TehOne
Disable connection logging for a specfic service (/var/log/secure)
Hello,

is there a way to disable connection logging for a specific service? Or eventually to disable /var/log/secure in general?

Closed. Double post...
3,439
Posted By TehOne
Thanks buddy I'm going to use your way, seems to...
Thanks buddy I'm going to use your way, seems to be most effective.

You guys are great help :)
3,439
Posted By TehOne
Would be nice if someone had a non perl solution....
Would be nice if someone had a non perl solution. Just bash/sad/awk/sort etc.

Edit:

Thanks purdym :)
3,439
Posted By TehOne
Sort numbers
Hello,

okey so my script is using 4 variables that are either empty or numbers in the following format:


NUMBER_1 NUMBER_2 NUMBER_3 NUMBER_4


So they're basically separated by a space and...
8,527
Posted By TehOne
fuser - how to select the given PID? (awk/sed)
Hello,

I'm trying to select, or well put the PID that is given by fuser to a var.. It has a wierd format and I somehow can't get it working, any awk/sed experts about?


PID=`fuser $file |...
8,575
Posted By TehOne
Okey that works, but it has a wierd format. ...
Okey that works, but it has a wierd format.

What's the best way to select the PID or put into a var?

I need something like:


PID=`fuser $file | awk/sed....?`
if [ "$PID" != "" ]; then...
8,575
Posted By TehOne
Check who is writing to a file? (pid)
Hello,

is there a way to check who is writing to a file? (pid)

Like someone starts a ftp transfer, is uploading a file and I'd need to know which pid is actually writing to it.

Or is there a...
1,940
Posted By TehOne
Thanks alot!
Thanks alot!
1,940
Posted By TehOne
Nope that doesn't work either, try echo "Found...
Nope that doesn't work either, try echo "Found $dir, yeah!"


Found: /root/test
/root/test/example 1 2 3
/root/test/example1_2_3, yeah!
1,940
Posted By TehOne
Problems with find | ls within a for statement
Hello,


for dir in `find /root/test -type d` ;do
echo "$dir"
done

for dir in `ls -1d /root/test/*/` ;do
echo "$dir"
done


If there's a directory with spaces in name, it does...
5,078
Posted By TehOne
Okey it's almost perfect, in this example: ...
Okey it's almost perfect, in this example:

"READ /TEXT123/TEXT456/ABC123/"
TEXT= TEXT123/TEXT456 ABC= ABC123

it gives back TEXT = /TEXT123/TEXT456 while I need it without the first / at all...
5,078
Posted By TehOne
"READ /TEXT123/ABC123" TEXT= TEXT123 ABC=...
"READ /TEXT123/ABC123"
TEXT= TEXT123
ABC= ABC123

"READ TEXT123/ABC123/"
TEXT= TEXT123
ABC= ABC123

"READ /TEXT123/TEXT456/ABC123/"
TEXT= TEXT123/TEXT456
ABC= ABC123


Oh you prolly...
Showing results 1 to 25 of 82

 
All times are GMT -4. The time now is 11:49 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy