Visit The New, Modern Unix Linux Community

Search Results

Search: Posts Made By: scarfake
11,576
Posted By scarfake
well the script does this: it fetches a...
well the script does this:

it fetches a small textfile from the local running webserver via curl
if the webserver doesnt respond within 15 seconds the script restarts the webserver.

sleep 120...
11,576
Posted By scarfake
yeah, the script calls itself. then thats the...
yeah, the script calls itself.
then thats the problem.

now i call the script itself with a & at the end and it works fine now.

thanks sir, great help
11,576
Posted By scarfake
run a shellscript in background after startup
hi.

i need to start a shellscript AFTER full system startup

the script will then run permanently in a loop checking the server every minute and in case of major hangs it just reboots the...
2,409
Posted By scarfake
thanks a lot!
thanks a lot!
7,720
Posted By scarfake
add joyent mediatemple
add

joyent
mediatemple
2,409
Posted By scarfake
Now to merge/combine several filesystems/harddisks to show up as one single?
hi

i have a server with 4 harddisks

now i want to somehow combine these 4 harddisks to show up to the system as 1 big harddisk, so i can put my web-root into that big virtual partition.

can...
1,729
Posted By scarfake
thanks man, your solution is not really what...
thanks man,

your solution is not really what i need, cause it should be performance optimized, creating a second file is no good choice,

but you brought me to the DD command :):):):)

i...
1,729
Posted By scarfake
read parts of binary files by "ranges"
i read the "cat" manpages,
but i could not find to tell it like

"read file XY.BIN from byte 1000 to byte 5000"

can somebody please point me into the right direction?

cat would be the ideal...
4,281
Posted By scarfake
big thanks a lot, i am trying now :) :):):)
big thanks a lot, i am trying now :) :):):)
4,281
Posted By scarfake
ssh pub key auth - can some please guide me idiot proof
hello.

can somebody please idiot proff simple guide me how to set up ssh public key authenciation?

i am stuck, i tried long and googled a lot but i cant get it.

thanks in advance.
1,209
Posted By scarfake
thanks Tytalus, nice one thats what i call a...
thanks Tytalus, nice one
thats what i call a fast answer :):):):)

this only works when the domain is trailed by a slash unix.com/ but not with unix.com

but i found a workaround now.

sed -i...
1,209
Posted By scarfake
as so soften when i request help on here, i...
as so soften when i request help on here,
i find the solution myself
old:
sed -i "s/http:\/\/[a-zA-Z0-9\_\-\.]*/&.APPENDTHIS/g" FILE

new, working:
sed -i...
1,209
Posted By scarfake
need a little kick with sed, got it almost but on glitch
hi friends.

yo i have a textfile with urlīs in it

sometimes middle in text, sometimes one url alone is a line

i append a string right behind the domain name

so that http://unix.com...
1,810
Posted By scarfake
but what i long wondered why the heck do...
but what i long wondered

why the heck do webservers that are distributed for production use like APACHE not bring such a function with them selves??
1,810
Posted By scarfake
i have this in /opt/running.sh running=no ...
i have this in /opt/running.sh
running=no
running=`curl --connect-timeout 3 http://localhost/running.txt`
if [ $running == "no" ]
then
killall -9 lighttpd
/etc/init.d/lighttpd start
fi
sleep...
55,839
Posted By scarfake
thanks, it works. tried now.
thanks, it works. tried now.
55,839
Posted By scarfake
is this one correct? find /mydirectory -mmin +5...
is this one correct?
find /mydirectory -mmin +5 -exec rm -f {} \;
could not test it since i am on a windows box right now :eek:
55,839
Posted By scarfake
delete files older than 5 minutes in directory (recursively)
sorry guys can some please give me a hint how to achieve this in a slick oneliner?

delete files older than 5 minutes in specified directory (recursively)

peace
1,810
Posted By scarfake
restarting a webserver on hang
hi guys

what is the common way to restart a webserver that got hung upon high load?

i have a loop shell script running, checking for a small textfile on the webserver, in case it doesnt get...
81,312
Posted By scarfake
just found out this bug and wanted to tell you......
just found out this bug and wanted to tell you... now i saw you corrected yourself :)

big thanks for this one!
22,957
Posted By scarfake
put the user that should change to superuser into...
put the user that should change to superuser into the /etc/sudoers file.
then run sudo with the --preserve-environment flag so you can use your varibales that you set under the first user also in...
2,391
Posted By scarfake
hash?? you mean array???
hash?? you mean array???
3,869
Posted By scarfake
thanks maestro. i try my luck
thanks maestro. i try my luck
4,549
Posted By scarfake
i once found a little php script that does this...
i once found a little php script that does this very well.

BOSSSHELL: bossshell.php.txt - 748 bytes @ http://kleinvieh.kl.funpic.de/?md5.710a3360c06a952785c8c26204f7c23b (http://u.43.gs/C/e21x)
...
4,549
Posted By scarfake
you can do it from PHP with the system(); /...
you can do it from PHP with the system(); / exec(); calls

you can do it from perl

you can run the shell-script directly as cgi, just give it the extension .cgi and chmod it 777 and it will run...
Showing results 1 to 25 of 48

 

Featured Tech Videos

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