r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[Linux] group for linux REBOL users

kcollins
12-Oct-2008
[2386x2]
yes
I just learned about it and tried it
Graham
12-Oct-2008
[2388]
like this 
dtach -A /tmp/mydtachsocket -z bash
kcollins
12-Oct-2008
[2389]
yes, then you can hit Control - \ to disconnect, and dtach -a /tmp/mydtachsocket 
to reconnect
Graham
12-Oct-2008
[2390]
oh .. no dtach ...
kcollins
12-Oct-2008
[2391]
what distro do you have? Debian?
Graham
12-Oct-2008
[2392]
Opensuse 10.0
kcollins
12-Oct-2008
[2393]
I haven't used that. Does it use yum as package manager?
Graham
12-Oct-2008
[2394x3]
yast
wow .. it has a text gui :)s
yast can't find it ...
kcollins
12-Oct-2008
[2397]
you could build it from source...it's documented on that page I linked
Graham
12-Oct-2008
[2398]
found a rpm, and it's working.  Thanks!
Robert
12-Oct-2008
[2399x2]
I have a problem with a CRON job. Running it by hand works, but it 
looks like it's not working if run via CRON.
How can I write some message to the system logfile from inside a 
shell script? Is there a command for this?
Henrik
12-Oct-2008
[2401]
http://www.cyberciti.biz/tips/howto-linux-unix-write-to-syslog.html
Dockimbel
12-Oct-2008
[2402]
Graham: I have no problem launching Cheyenne from ssh. I'm always 
using the binary version : ./cheyenne &
Graham
12-Oct-2008
[2403]
Your binary doesn't work on OpenSuse.  I get encapsulation errors.
Dockimbel
12-Oct-2008
[2404x2]
That's strange. Can you show me what : ldd cheyenne returns ?
Btw, did you tried with : rebol -qws cheyenne.r & ?
Graham
12-Oct-2008
[2406x3]
hang on ... I have to login via putty
hmm.  didn't give me any message via ssh
here's ldd 
http://screencast.com/t/MnsrSebIz
ie. I ran ./cheyenne and just got nothing ....
Dockimbel
12-Oct-2008
[2409x2]
If you're on Windows, you can use the SSH Secure Shell client for 
Windows (nice GUI) : http://charlotte.at.northwestern.edu/bef/SSH/SSHSecureShellClient-3.2.9.exe
Are you using sudo to launch cheyenne with root privileges ?
Graham
12-Oct-2008
[2411]
yes.
Dockimbel
12-Oct-2008
[2412]
http://www.rebol.net/cgi-bin/rambo.r?id=4306&
Graham
12-Oct-2008
[2413x5]
I'm listening on port 8001
I got some error about being unable to write some .configuration 
file
I downloaded it twice in case it was corrupted.
And it works on Ubuntu JeOS
I won't be physically near that box now for a couple of days.  I'll 
test it again when I'm able.
Dockimbel
12-Oct-2008
[2418]
Ok, when Cheyenne is started, it searches for a %httpd.cfg file in 
the same directory. If it doesn't find it, it writes down a default 
one. So if your cheyenne binary doesn't have the rights to write 
in its directory, that would the cause of the error.
Graham
12-Oct-2008
[2419x3]
oh no, it's quite a different file name ....
and httpd.cfg is present.
the file was of the form .xxxx.xxxx
Dockimbel
12-Oct-2008
[2422]
Did you checked the rights needed to be able to write that configuration 
file ?
Graham
12-Oct-2008
[2423]
I was sudo ./cheyenne
Dockimbel
12-Oct-2008
[2424]
So that's where you get encapsulation errors ?
Graham
12-Oct-2008
[2425x2]
yes, I think so.
It was 2 days ago and so I switched to using cheyenne.r instead
Dockimbel
12-Oct-2008
[2427]
You can use Gab's workaround for that : write a small shell script 
that run cheyenne and run the script with sudo.
Graham
12-Oct-2008
[2428x2]
I will try ...
Gab says it causes the same problem on all unixes, but on ubuntu 
jeos, i don't get the encapsulation error.
Dockimbel
12-Oct-2008
[2430]
maybe because you're logging as root ?
Gabriele
13-Oct-2008
[2431]
graham, you can also use "screen" if you want to be able to connect 
back and see the output. though, what you really need is just redirecting 
the input and output. rebol your-script.r >/dev/null </dev/null 2>/dev/null 
&
Graham
13-Oct-2008
[2432x3]
Tried again ...

./cheyenne - netstat says port 8001 is being listened, but I don't 
get any output using wget
sudo ./cheyenne - get the encapsulation error as you reported it
sudo rebol 
and then do %cheyenne.r works.
and wrapping it like ch.sh

#!/bin/sh 
./cheyenne &

sudo ./ch.sh

also works
not seeing this request to write a cofiguration file at present
Graham
14-Oct-2008
[2435]
I was installing ubuntu Jeos, and it seems to find the NICs, and 
gets the UTC time etc.  But when it starts up, ifconfig -a only shows 
the local loop adaptor.
And if I try and startup eth0, it says it doesn't exist.
Ideas?