World: r3wp
[Linux] group for linux REBOL users
older newer | first last |
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. | |
Gabriele 1-Jul-2009 [3012x4] | Janko, basically the thing is, if you want to see the program's output, you need to use screen. This allows you to have output and detach it. Otherwise, you can just redirect the output to a file (or to /dev/null), then you can exit your ssh session without problems. |
eg. rebol myscript.r </dev/null >/dev/null 2>&1 redirects everything. | |
i'm not sure if it's installed by default anymore, but there also used to be a "nohup" program which would redirect your program's io and detach it (run it in the background). | |
(which is basically equivalent to rebol myscript.r </dev/null >somefile.log 2>&1 &) | |
Janko 1-Jul-2009 [3016x3] | Graham: .. and it can also help others like in this case .. as I said above I have the wiki for exactly this thing linux commands because I use them just enough so I keep forgetting the more tricky ones http://www.manage-websites.com/doku.php?id=tutorial-linux-shell <-- here they are |
Gabriele: I was using nohup like this >> nohup /.../rebol script.r & << but at 2 times rebol script got terminated for some reason after a while.. it did stay alive after I closed and reopened ssh but when I came later it wasn't running any more and by looking at output file nohup.out last thing was "rebol terminated" so it didn't exit on error but got terminated in the same way if I press Ctrl+C (maybe I just need to read more about nohup) | |
now it works with dtach and it works ok so far | |
Gabriele 2-Jul-2009 [3019] | Janko, it's hard to say what could have sent a sigint or similar to the rebol process. you could though catch those signals from REBOL if you wanted, via the system port. |
Ashley 22-Jul-2009 [3020] | What distro works best with sdk-2706042.tar.gz "out of the box" (with regards to rebview and fonts)? I just need something I can quickly install under VirtualBox and do some basic cross-platform REBOL GUI development/testing ... without having to hack it to make it work. |
Graham 22-Jul-2009 [3021x2] | Ashley, Ubuntu works fine .. you just have to specify the full path to any fonts you use if using AGG fonts. |
I think I had to also change the default font used for RebGUI. | |
older newer | first last |