Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - joejoe

#16
Thank you Lutz!



I replaced the old with the new binary



http://www.newlisp.org/cgi-bin/newlisp">http://www.newlisp.org/cgi-bin/newlisp



I also am using your


#!/home/public/cgi-bin/newlisp

Everything worked immediately, and will keep note of your recompile without readline in mind too!



Much appreciated, Lutz!
#17
Thank you Lutz!



I ran these and got pretty much there if it helps anyone. Will figure the rest.


mkdir cgi-bin
cd cgi-bin
wget http://www.newlisp.org/cgi-bin/newlisp
chmod 755 newlisp

./newlisp
Shared object "libreadline.so.7" not found, required by "newlisp"

wget ftp://ftp.gnu.org/gnu/readline/readline-8.0.tar.gz
tar zxvf readline-8.0.tar.gz
cd readline-8.0
./configure
make

make install
install: /usr/local/include/readline/readline.h: Read-only file system
*** Error code 71


Thanks for allow so much support for all distros and hosting options!
#18
Any known hosts out of box nL friendly?



Thanks and for all!
#19
Think they may have lost support?



$ newlisp

-bash: newlisp: command not found



Just submitted a request w NFS to know if it is still supported.



Found that as its been dropped from the bs d port, so no go, only compile from source.



https://members.nearlyfreespeech.net/forums/viewtopic.php?t=10566&highlight=newlisp">https://members.nearlyfreespeech.net/fo ... ht=newlisp">https://members.nearlyfreespeech.net/forums/viewtopic.php?t=10566&highlight=newlisp


QuoteNewlisp has been dropped from the FreeeBSD ports collection due to lack of support from the developer, so we are unable to offer it preinstalled.



We contacted the developer about this to see if we could facilitate a solution, but we were not successful. The developer recommends that anyone who wants to use newlisp compile it from source.
#20
No doubt,



I have tried a few -



#/usr/local/env/bin newlisp

!#/usr/local/bin/env newlisp

#!/usr/local/bin/env newlisp

#!/usr/bin/env newlisp

#!/usr/local/bin/newlisp



If whereis doesnt work, how best to find the right path?


whereis newlisp
newlisp:
#21
I am using


#/usr/local/env/bin newlisp
(println "hihi")
(exit)


saved as an index.cgi w 755 chmod.



w only a 500 error on nearlyfreespeech.



When I type whereis newlisp, it shows:


$ whereis newlisp
newlisp:


I have done this before easily.



Now get:


$ newlisp
-bash: newlisp: command not found


Any tip on how to execute an index.cgi nL script w NFS?



Or if an easier place to up and run nL, please direct. Thought NFS was pretty straight.



Thank you!
#22
newLISP in the real world / Re: nL cron script
October 28, 2019, 04:33:37 AM
Working!



Moving the txt file and script to the home directory made cron all go!



You always share the best secrets ralph, thanks very much again for this!
#23
newLISP in the real world / Re: nL cron script
October 27, 2019, 08:06:33 PM
ralph,



thanks for the help!



my nL script file has this already at top:


#!/usr/bin/env newlisp

I can run it from the command line fine and it does it all.



I am almost ready to leave a nL process hanging just to make it done.?
#24
newLISP in the real world / Re: nL cron script
October 27, 2019, 04:38:07 PM
Hi and thanks ralph,



I had tried that as well but it still doesn't append the file.



Any way to check for why it might not be working? Thanks!
#25
Thanks for link!
#26
newLISP in the real world / nL cron script
October 26, 2019, 12:56:33 AM
Hi,



I have a script I am trying to run from cron on Debian/Ubuntu.


* * * * * joe /home/joe/winny/winny.lsp

The permissions of winny.lsp are 755.



Syslog looks like it is executing:


Oct 26 01:49:01 jsfccfow CRON[6574]: (joe) CMD (joe /home/joe/winny/winny.lsp)

The winny.lsp script contains:


(append-file "ltcbtc.txt" (println pairs (date (date-value) 0 "%y%m%d%H%M%S")))

The ltcbtc.txt file is already created and chmoded to 755.



I am not getting anything added to ltcbtc.txt file.



Anything I might be missing to get the nL script to run w cron?



Thank you! :-)
#27
newLISP in the real world / Re: translating big numbers
October 12, 2019, 10:35:44 PM
Ok super, thanks Ralph!



format always seals the deal. I see it now.



Out of curiousity, where are all the numbers coming from after the 0's in the following?


> (format "%0.100f" -2.000000000000049e-07)
"-0.0000002000000000000048878588486791010869758622447989182546734809875488281250000000000000000000000000"


I would think it would be '"-0.00000020000000000000490000...'?
#28
newLISP in the real world / translating big numbers
October 12, 2019, 06:22:58 PM
Hi,



I often get this sort of number:



-2.000000000000049e-07



I would like number to just display itself, without the "e-" exponent thing.



I don't mind zeros and I have a big screen and it would love to see the real number.



Would there be an easy way to convert the e number back into normal digits?



Thanks much! :-)
#29
newLISP in the real world / Re: values into mul
October 11, 2019, 04:46:06 PM
rickyboy,



You're the man, thanks big!



I hadn't gotten so far as the read-expr, much appreciated! =)
#30
newLISP in the real world / values into mul
October 11, 2019, 04:08:36 PM
Hi,



I am trying this:


(set 'abc "8888")
(println abc)
(println (mul 2 abc))


and getting this:


8888

ERR: value expected in function mul : abc


What would be the way to get values into the mul function?



Thanks!