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

Topics - Darth_Severus

#1
newLISP and the O.S. / I/O error
February 17, 2016, 04:52:37 AM
Hi,



I'm recently getting an I/O error when trying to start newLisp:


Quote$ /usr/bin/newlisp



ERR: I/O error


I didn't change anything, it just happend. Didn't try a new install so far. Any ideas why this happend?


Quote$ file /usr/bin/newlisp

/usr/bin/newlisp: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.26, BuildID[sha1]=6e58352d03112cf6cf1deb50fc8186415bf68610, stripped


QuoteCPU~Dual core Intel Core2 Duo U7600 (-MCP-) speed/max~800/1201 MHz Kernel~3.14-0.bpo.2-686-pae i686 Up~5 days Mem~620.3/999.6MB
#2
newLISP and the O.S. / redirecting stderr not working
December 23, 2015, 04:24:27 AM
$ mocp 2>/dev/null

Running the server...

Trying OSS...



$ mocp &>/dev/null

$



$ newlisp -e "(exec {mocp -i 2>/dev/null})"

()

$



Using (exec {mocp -i 2>/dev/null}) or (exec {mocp -i &>/dev/null}) in a script, I'm getting errors in the bash which is calling the script, even when I call the script with & at the end. Version: newLISP v.10.6.2 32-bit on Linux IPv4/6 UTF-8 libffi.
#3
I tried using unix:syslog from here http://www.newlisp.org/code/modules/unix.lsp.html">http://www.newlisp.org/code/modules/unix.lsp.html



I don't know what printf format means, though I read the wikipedia entry.



All of these examples
(module "unix.lsp") (unix:syslog 5 "test %s")
(module "unix.lsp") (unix:syslog 5 "test%s")
(module "unix.lsp") (unix:syslog 5 "%s test")
(module "unix.lsp") (unix:syslog 5 "test" "%s")
(module "unix.lsp") (unix:syslog 5 "%s" "test")

give me a Segmentation fault, others as well.



I already added "/usr/lib/i386-linux-gnu/libc.so" ; Linux

to /usr/local/share/newlisp-10.6.2/modules/unix.ls
#4
I'm able to run programs in Linux by using (! <name>) or (exec <name>). But I can't declare variables.



MAIN:/home/usernamedeleted> (! "declare final_answer=42")

sh: 1: declare: not found

32512

MAIN:/home/usernamedeleted> (! "set final_answer=42")

0

MAIN:/home/usernamedeleted> (! "echo $final_answer")



0

MAIN:/home/usernamedeleted> (! "final_answer=42")

0

MAIN:/home/usernamedeleted> (! "echo $final_answer")



0

MAIN:/home/usernamedeleted> (! "export final_answer=42")

0

MAIN:/home/usernamedeleted> (! "echo $final_answer")



0

MAIN:/home/usernamedeleted>
#5
I would really love it, if I could find



- infos about newlisp functions

- newlisp snippets

- threads of this forum



in any search engine. Thanks.
#6
When I run a script of mine while putting (exit) at the end, it works. But if I want to stay inside of it after it run, I get this:
QuoteERR: string token too long : "|n|-----n| width="250" valign="top" |n* "


It's not about what this error regularly means, but why it appears only if I don't end the program. Anyway, this whole string handling is nasty.  I don't get things done this way.