World: r3wp
[Linux] group for linux REBOL users
older newer | first last |
Volker 4-Jun-2005 [62] | Hmm. maybe host.deny works only with inetd? http://www.tu-darmstadt.de/hrz/durchblick/db96-2/wrapper.html |
Robert 4-Jun-2005 [63] | Hmm... strange I can add the same iptabels rule several times. Don't know what's this for? |
Volker 4-Jun-2005 [64x2] | can you dump current rules? is it stored three times, or only the last keept? |
seems iptables can be changed on the fly from the command line. i guess you can switch things on and of, or just change them to what they are. | |
Robert 4-Jun-2005 [66x2] | Yes, I dumped the rules and see the same IP several times. |
But, if filterting would work correct, it should be DROPed anyway. So, if I add a DROP rule for an IP address, I shouldn't get any more packets. | |
Ammon 4-Jun-2005 [68x2] | Robert, with IPTables the rules are parsed in order so if a rule will allow the packet before it gets to your deny rule then the packet is allowed. (IIUC) |
This is the behaviour that I saw when playing with IPTables... | |
Volker 5-Jun-2005 [70] | there is a tailor.r in my folder on developer. it polls the tail of a file and calls a callback which each new line. uses /skip on file. may be a base for a daemon |
Robert 5-Jun-2005 [71] | I further investigated all this. Yes, the tables are used by the kernel (if told to do so but what I see it's mostly so by default) and can be changed dynamically. |
Oldes 8-Jun-2005 [72x4] | Does anybody know hot to run rebol script as a background job? |
I can run the script starting rebol and in console using do %script.r | |
but using ./rebol -qs --script script.r > output.txt & is not working:( rebol stops ) | |
I added forever loop at the tail of the script so it's working now (as a server) but rebol stops when I exit the shell:( | |
Henrik 8-Jun-2005 [76] | background jobs are normally stopped in the shell they are run from, if that shell exits. I'm not sure what it takes to make a program run as a background job, though... |
Oldes 8-Jun-2005 [77x2] | I thoght it's the nohup command but it stops anyway |
I hope it's not rebol limitation | |
Volker 8-Jun-2005 [79] | How about running it from screen? |
Oldes 8-Jun-2005 [80x2] | I would like to start a server |
There is no screen | |
Volker 8-Jun-2005 [82x2] | starting screen as the server? |
have not tried running completely in background yet. | |
Henrik 8-Jun-2005 [84x3] | have you tried using a shebang line at the top of the script and run the script directly as an executable script, rather than through the rebol executable? |
(would make it slightly easier to manage) | |
http://www.jguru.com/faq/view.jsp?EID=472493<--- something about using SysV init here. putting the script in /etc/init.d would make it a daemon | |
Volker 8-Jun-2005 [87x3] | does this work? rebol -q \!scratch.r </dev/null >/dev/null 2>/dev/null & |
this little loop stays running when i close the xterm | |
forever[ write/append/lines %test.txt mold now wait 1 ] | |
Oldes 8-Jun-2005 [90] | it's running: http://195.122.214.59/~hmm/flash-chat.html |
Volker 8-Jun-2005 [91] | (oops, the "\!" is no special trick, only escaping. test-file is "!scratch.r"..) |
Oldes 8-Jun-2005 [92x4] | but now I tri to exit from shell... |
...and the server is down | |
:( | |
which shell you are using? | |
Volker 8-Jun-2005 [96] | had tested in an xterm. thought closing that acts like a logout. |
Oldes 8-Jun-2005 [97x2] | and which rebol version : my is: REBOL/Core 2.5.58.4.2 |
which is with async | |
Volker 8-Jun-2005 [99x2] | REBOL/Core 2.5.118.4.2 - no async. |
that rebol works here to. also when i start it from real console and logout. did you try really try the redirects of stdin and stderr? | |
Tomc 8-Jun-2005 [101] | with REBOL/Core 2.5.6.10.1 on solaris I just use a trailing & |
Henrik 8-Jun-2005 [102] | nohup doesn't work here either... |
Oldes 8-Jun-2005 [103x5] | I got it: http://lists.gnu.org/archive/html/bug-coreutils/2003-10/msg00032.html |
I start a job and than use disown -h | |
than i exit and the process is still working | |
So I can test my micro chat : http://195.122.214.59/~hmm/flash-chat.html | |
disown -h <pid> where <pid> is the process ID :) | |
Henrik 8-Jun-2005 [108x2] | nice :-) works well and fast |
timestamps would be nice... | |
Oldes 9-Jun-2005 [110x2] | I would like to make a IRC client from it as I have in rebol/plugin: http://oldes.multimedia.cz/rss/builds/irc-plugin/ |
But the flash client is now only 3kB and it's working in any browser not just in IE | |
older newer | first last |