Search Results

Search: Posts Made By: lowmaster
5,053
Posted By lowmaster
Inotifywait restart script prevents reboot when started
Hi, maybe someone could help me optimizing this little script.


It works so far, but when running, reboot does not work. If kill inotifywait reboot from shell works. I think some optimization is...
1,947
Posted By lowmaster
Ohaa @Don, this is far more than I expected.I...
Ohaa @Don, this is far more than I expected.I tested it and it worked instantly.

Thank you so much that you also took the time to explain in detail what it is making.

If there is someting I...
1,947
Posted By lowmaster
I saw there is a watch command available This...
I saw there is a watch command available
This should display all output differences? can maybe this be used for this?

can this be used to just consider the data in the lists?

watch - Repeat...
1,947
Posted By lowmaster
Thats a good point! I need to fix this. 8-) ...
Thats a good point! I need to fix this. 8-)



The list changes, but reading it once every hour should be sufficient

If you have a program you want to run every 4 seconds and you want to...
1,947
Posted By lowmaster
I have optimized the question. I hope it is...
I have optimized the question. I hope it is clearer now...

I just want to do soemthing in this loop, if one the strings in the textfile apear in the shell output the first time, or when they...
1,947
Posted By lowmaster
this is more for that I'm informed if specific...
this is more for that I'm informed if specific people are coming or nearby to my place via wifi

okay blacklist is misleading here, it is more an "alert list"
1,947
Posted By lowmaster
Email alert when client in blacklist joins network
I have a textfile with a list of strings I want to monitor in my network.

alertlist:
hans
franz
tanzSo it can output for me whenever the a strings it matched:
#!/bin/sh
while : ; do
...
1,624
Posted By lowmaster
Find all files containing string not following symlinks CAT (modified) output content to /filename
This should recursively walk through all dirictories and
search for a specified string in all present files, if found
output manicured content (eg some regex) with CAT into
a specified directory...
1,379
Posted By lowmaster
Python FTP login and relogin with other data in one wash?
I have a short part of the script like this, which scrans ftp ips from a list and login with the data specified.

login1
pssword1is it possible to try sevral login data without starting the script...
2,715
Posted By lowmaster
Php server globals REQUEST_URI or HTTP_SERVER_VARS
Hi all,

recently I found that $_SERVER['REQUEST_URI'] does not deliver the complete url with query anymore on my server.

http://www.example.org/search.php?stichwort=wiki
echo...
5,418
Posted By lowmaster
match all occurances of session id with one regex?
So far I have this little regex to match sessionids:

session.id=[a-f0-9]{32}What must I add to make it match all occurances i want to match?session_id=993e3cf23ffff68a2b619518829192b9...
Forum: Web Development 04-17-2010
2,523
Posted By lowmaster
I think the problem is that ...
I think the problem is that

substr(getenv('REQUEST_URI')

is not rewritten back to

show.php/tag=flower+red
Forum: Web Development 04-14-2010
2,523
Posted By lowmaster
Tricky mod_rewrite for clean urls problems when fetching external sources
Hi, I have problems with mod rewrite. I will try to describe...

I want clean urls but fail to make it work propperly. Maybe I have problems, because the content displayed is fetched from my other...
3,584
Posted By lowmaster
radoulov, you are the greatest...! I did...
radoulov, you are the greatest...!

I did exactly what you said. And now, on over 200.000 rows so far, this query takes about 0.01 sek now...

Compared to about a minute and more before, this is...
3,584
Posted By lowmaster
hi radoulov, this is the structure: I...
hi radoulov,

this is the structure:
I added a short part to your statement to make work better for me into:

SELECT data_12 FROM sc
WHERE kwroot LIKE '$term' and kwsearched like '$term'
and...
3,584
Posted By lowmaster
Yes, works great! Many thanx! EDIT: ...
Yes, works great!
Many thanx!

EDIT:

Yes works great, but now, when I use this on about 2000 rows of data I get this: "Database has gone away..."

or the statement takes more than one minute...
3,584
Posted By lowmaster
SQL select all but not if it is already in an other column
I know I know..
for sure one of the easier mysql statements. But somehow I can not figure out this.

I expect to see all distinct items of 'data_12' where 'kwroot' has 'straxx' in, and in the...
8,032
Posted By lowmaster
PHP read large string & split in multidimensional arrays & assign fieldnames & write into MYSQL
Hi, I hope the title does not scare people to look into this thread but it describes roughly what I'm trying to do. I need a solution in PHP.

I'm a programming beginner, so it might be that the...
8,969
Posted By lowmaster
PHP Compare 2 Arrays find difference & case insensitive
Hi,

I need an elegant solotion in php. I need to compare 2 arrays (array1 & array2), to find all instances of array 2 which is not in array1.

I don't want to see any instances of array1 wich is...
3,240
Posted By lowmaster
In PHP replacing text between TAGS & URI information in Title Tag
Hi,

what I am trying to do in PHP, is to replace the Title. I need some of the URL information inside aswell depending on the domain.

The title is always different so I need to store it in a...
14,321
Posted By lowmaster
ahh yes, thank you... When you are creaing...
ahh yes, thank you...

When you are creaing textfiles, one by one, giving all files a number always +1 ... you maybe dont't wan't to save files matching a size criteria, so you don't get gaps in...
14,321
Posted By lowmaster
with this you cam enter a size of your desire. ...
with this you cam enter a size of your desire.
here all below 478 bytes get deleted:

size=0
size=`ls -l "file.txt | awk -F" " '{ print $5 }'`
if [ $size -gt 478 ];
then ((d++));
fi
5,164
Posted By lowmaster
works like a charm! Thanx!
works like a charm!

Thanx!
5,164
Posted By lowmaster
Thanx for this, but my $v1, $v2 stays empty for...
Thanx for this, but my $v1, $v2 stays empty for some reason. What have I to do to to move the content of kw1 to v1?



part1=$(perl -e 'srand; rand($.) < 1 && ($line = $_) while <>; print $line;'...
5,164
Posted By lowmaster
... I know I know. I need a quick solution for a...
... I know I know. I need a quick solution for a problem and did not digg deeper into all those fantastic sed/awk/perl stuff...

you are absolutely right, oneliners are very very bad for reading....
Showing results 1 to 25 of 41

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