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

World: r3wp

[Linux] group for linux REBOL users

Kaj
24-May-2009
[2962]
I currently have mine in my home directory in .bashrc
Maxim
24-May-2009
[2963]
I usually prefer having separate files for different tasks rather 
than dumping everything in the main files.
Kaj
24-May-2009
[2964]
If you're not using BASh it could be .profile
Maxim
24-May-2009
[2965x2]
maybe the originally sourced files are executed a bit differently.


on sgi IRIX I never had any issue with sourcing files into the .cshrc 
files...  I was using tcsh, which I usually prefer over bash, but 
isn't included by default in all flavors of unix.
bash tells me it can't find tcsh, so I assume its not loaded on my 
distro.
Kaj
24-May-2009
[2967]
If you want to define them globally, /etc/profile probably works, 
or maybe /etc/bash.bashrc
Maxim
24-May-2009
[2968]
I'll defining them in the .bashrc to see if they are set automatically.
Kaj
24-May-2009
[2969]
tcsh is not standard, but you can install it
Maxim
24-May-2009
[2970x3]
I remember that things like aliases are a bit more flexible (dangerous 
too) in csh and tcsh
its possible define an alias for "/" , for example, which bash doesn't 
understand.
thanks for the help :-)
Kaj
24-May-2009
[2973]
You're welcome
Maxim
24-May-2009
[2974]
its soo cool my ssh based tool reports the login errors in a nice 
rebol alert box hehehe
Kaj
24-May-2009
[2975]
:-)
Maxim
24-May-2009
[2976]
putting them in .bashrc does work... ah well, if you can't beat the 
system, join it.
Kaj
24-May-2009
[2977]
Yeah, I don't know the cause of your real problem
Maxim
24-May-2009
[2978]
what's strange to me is that the echo within my sourced file was 
sent to the console, clearly indicating it was being call as a script, 
unless there are different bash script evaluation levels and I don't 
know how to set it up.
Kaj
24-May-2009
[2979]
I'd say sourcing should have done the trick
Janko
27-May-2009
[2980x6]
me again with linux problems :(


I made binding to Haru PDF library ... it works on windows but now 
I am trying to make it work on lunux from where it will be serverd 
via cheyenne... the problem is that I have 64bit linux and so this 
libhpdf.so compiles as 64bit shared library
I looked on net and saw gcc can compile as 32bit with -m32 option 
if you have something called multibit "gcc -print-multi-lib" .. which 
I seem to have .. I changed ./configure to add this flag but then 
I get some c compilation errors ( I could sucsessfully compile it 
without this option) ...
Any ideas how to do this? I am trying to compile it now on my other 
VPS which is 32bit and copy file to the 64bit vps but I have no idea 
if this will work
I keep getting "internet busy.." on altme with the other computer
and my messages get "eaten".. aha here it works
I said over there "yipeee!!! .so compiled on 32bit debian and copied 
to 64bit one works!!
Henrik
27-May-2009
[2986]
I get the same thing here. Reconnecting helps temporarily.
Janko
30-Jun-2009
[2987x4]
Any idea how to start a rebol script via ssh (I have a VPS) .. and 
detach it from my console so when I close it it won't stop running?


cheyene executable file does this automagically (I have no idea how) 
.. if I run cheyenne through .r script it exits with me .. but my 
problem now is not with cheyenne but I have a custom script that 
should run in the background. After googling yesterday I found out 
about >> nohup script-to-run & which seemed to still work if I closed 
ssh and started another one but now I see for the second time that 
after a while it exited as it isn't running any more ...
( I also tried to install daemontools before finding out about >nohup 
&< thing but it somehow didn't want to start working yet.. I intend 
to make this work but I need some easyer solution sooner, as I am 
sure there is something obvious I don't know )
custom script = custom rebol script
btw ... I have a wiki where I write down these things so I don't 
forget ..  http://www.manage-websites.com/doku.php?id=tutorial-linux-shell
 .. if you are linux-stupid like me maybe you can find something 
helpfull.. or you can add something :)
Kaj
30-Jun-2009
[2991]
I haven't used it myself, but people use the screen program for such 
things
Janko
30-Jun-2009
[2992x3]
hm.. screen? I will look it up, haven't heard of this one ..
wow .. screen alows me tu have multiple sessions in one ssh window.. 
like in local linux .. I needed that badly !! ..
but I am not sure it's intended for what I described above .. basically 
running apps in background -- so they run (for days and weeks) after 
I close the ssh
Kaj
30-Jun-2009
[2995x2]
You can use screen to detach a session and reconnect with it later, 
possibly from an entirely different machine
Another way is to have the program detach itself, possibly switching 
to running onder a different user account
Graham
30-Jun-2009
[2997]
http://rebol.wik.is/Hylafax/Dtach
Janko
30-Jun-2009
[2998]
Kaj , thanks .. it seems screen is very beneficial tool for working 
on ssh , I will start learning and using it
Kaj
30-Jun-2009
[2999]
The link in Graham's article is good
Janko
30-Jun-2009
[3000]
yes, I am just reading it , it shows all these options .. Graham 
thanks
Paul
30-Jun-2009
[3001]
Yes, Janko, use screen.  That is what I did for my Tretbase DBMS 
awhile back.
Janko
30-Jun-2009
[3002]
I am using drach now and works very nice ... but screen is awesome 
tool to and I will use it in general sshing now (thanks Graham! I 
added dtrace sample to that wiki)
Tomc
30-Jun-2009
[3003]
the command "nohup"  may still exist and be usefull
Janko
30-Jun-2009
[3004x2]
yes, nohup is very usefull too , with &  .. for example nohup some-longer-tast 
&  .. but for my concrete example I wasn't able to figure out why 
rebol script terminated after a while, not on every exit but at some 
point I just saw it wasn't running any more .. and by the look of 
nohup.out file there was no error .. but "rebol terminated"
tast = task
Graham
30-Jun-2009
[3006x3]
Janko, it's just that everytime I learn something that I know I will 
forget .. I write it in a wiki somewhere :)
the freely hosted mindtouch wiki that I use is convenient for things 
like that. ...
So, instead of storing the information in my head, I just store the 
pointer to it instead :))
Maxim
30-Jun-2009
[3009]
funny  use altme for that  :-)  posting stuff to myself.
Brock
30-Jun-2009
[3010x2]
I use Carl's Rebodex.r  program with some minor modifications.
what I am missing is a synch with a server so I can always have the 
same info everywhere... which AltME works nice for as would the wiki.