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

World: r3wp

[Linux] group for linux REBOL users

Graham
24-Jan-2007
[1135x3]
not set to readable by world
what's the numeric equivalent of -rw-rw-rw-  ?
currently these incoming files are set to 0600
Sunanda
24-Jan-2007
[1138]
666
(Spooky!)
Graham
24-Jan-2007
[1139]
only if you belong in the chit chat group!
Volker
24-Jan-2007
[1140x2]
No, ghosts are real!;)
specially in britain, i gues sunanda  is  there?
Graham
2-Feb-2007
[1142x2]
where should I start up a script that needs to run with root priviliges 
on boot ?
should I specify that my rebol script is in /etc/inittab ?
Gabriele
2-Feb-2007
[1144]
generally you place a bash script in /etc/init.d/
Graham
2-Feb-2007
[1145]
and rebol scripts ?
Gabriele
2-Feb-2007
[1146x4]
then you symlink it in the /etc/rcx.d/ dirs (your distro will have 
ways to do this automatically)
in theory rebol scripts should work too provided you have the correct 
shebang line
however... you can always have a very simple shell script that calls 
rebol yourscript.r
(scripts in init.d should take certain standard args, so if your 
rebol script doesn't you're going to need a wrapper script anyway)
Graham
2-Feb-2007
[1150]
what do you mean by symlink?
Anton
2-Feb-2007
[1151]
symbolic link, see the LN command
Gabriele
2-Feb-2007
[1152x2]
eg. "/etc/init.d/yourscript start" should start the service, "stop" 
should stop it and so on.
symbolic link, ln -s
Tomc
2-Feb-2007
[1154]
ln -s orig link
Graham
2-Feb-2007
[1155]
Ok.
Gabriele
2-Feb-2007
[1156]
see ls -alh /etc/rc3.d/ for eg
Anton
2-Feb-2007
[1157]
(ooh, I should be careful using capitals like that.)
Tomc
2-Feb-2007
[1158]
not VMS anymore
Gabriele
2-Feb-2007
[1159x3]
http://en.wikipedia.org/wiki/Init
http://en.wikipedia.org/wiki/Runlevel
then check your distro's docs about how to manage the scripts in 
init.d
Graham
2-Feb-2007
[1162x2]
my little fax monitor script that was supposed to pick up new faxes 
and ftp them to me failed as it lacked the permissions to read the 
file
I guess I must have started it as root before when it was working.
Gabriele
2-Feb-2007
[1164]
yep, although it may not be necessary to give it root privileges
Tomc
2-Feb-2007
[1165]
avoiding giving anything more permission than it need is a good thing
Graham
2-Feb-2007
[1166]
so, how would I read the files I need to then?
Gabriele
2-Feb-2007
[1167]
it depends on your fax drivers/software
Graham
2-Feb-2007
[1168]
I guess I can use set-modes
Tomc
2-Feb-2007
[1169x2]
what is the group ownership of the files  can it be coerced with 
stiky bits can who runs the script share  be in the group the files 
are written in ...
can the files be world readable (perhaps a different security concern
Graham
2-Feb-2007
[1171]
when the fax is received, it invokes a bash script.  But I just remembered 
that I also call my rebol script from that bash script that creates 
the file in question.  So, I should be able to make it readable to 
my other script to ftp it to me.
btiffin
2-Mar-2007
[1172]
Just a shout out to <b>Quanta+<b>


I think I'm starting to like KDE, and just last month I was a Gnome 
that thought it was KiddiE.

In the  had to say it  department
I think I'm settling on an environment, at least until I blink...

Debian GNU/Linux 4.0 - Thanks Ian
KDE with kdm - Thanks Matthias
REBOL - Thanks Carl
Cheyenne - Thanks Nenad
Quanta+ - Thanks Eric
Konsole - Thanks Lars
Whatever browser pops up...and the 'tousands of other net apps
Ahh, livin'.
PhilB
4-Mar-2007
[1173x2]
Been Playing with Ubuntu .... managed to get a Rebol console running 
....
but how do I acess files on drives other than the Root ?? (I am copletely 
new to linux, so bear with me if I am missing something completely 
obvious)
PeterWood
4-Mar-2007
[1175]
Drives or directories?
PhilB
4-Mar-2007
[1176x2]
Drives
my other drives are labelled hda1 or hda5 ...
PeterWood
4-Mar-2007
[1178]
Try this :

 list-dir %/media/hda1
PhilB
4-Mar-2007
[1179]
Thanks Peter ... that worked ....
PeterWood
4-Mar-2007
[1180]
I'm not sure if it's very cross-unix, so there may be a better way.
Anton
4-Mar-2007
[1181]
Also try
list-dir %/
Ingo
4-Mar-2007
[1182]
Hi Phil,


*nix doesn't use drive-letters, so _all_ drives show up somewhere 
under the root as directories. _Where_ they show up is up to you 
;-)

Drives are "named" /dev/hda1 (first paritiion on first disk), /dev/hdb3 
(third partitiion on second drive), etc ...

There's a file, which describes the mapping, where your drives are 
put, in Rebol

print read %/etc/fstab


the first two columns show where ich drive is put in the directory 
tree (and then some more info)

or you can do 

call "mount"

which displays the currently mounted drives.
Pekr
5-Apr-2007
[1183x2]
ah! - AltME did it once again. When sending message, it got grey, 
and message sent is lost (did not make it to the Linux group)
I get following error message with my old Fedora Core install. I 
can't run SDK (dated 2.8.2006) rebols, it throws following error 
to the console:


/usr/local/rebol-sdk-cmd/bin/rebcmd: error while loading shared libraries: 
libstdc++-libc6.2-2.so.3: cannot open shared object file: No such 
file or directory