Search found 18 matches

by Darth_Severus
Thu Feb 18, 2016 6:52 pm
Forum: newLISP and the O.S.
Topic: I/O error
Replies: 2
Views: 2950

Re: I/O error

Thanks ralf, this was a good idea. I should have had that thought on my own. Next time I'm trying strace. However, my computer froze and I had to restart. Now it is working.
by Darth_Severus
Wed Feb 17, 2016 12:52 pm
Forum: newLISP and the O.S.
Topic: I/O error
Replies: 2
Views: 2950

I/O error

Hi, I'm recently getting an I/O error when trying to start newLisp: $ /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? $ file /usr/bin/newlisp /usr/bin/newlisp: ELF 32-bit LSB executable, Intel 80386, version 1 (S...
by Darth_Severus
Wed Dec 30, 2015 12:20 am
Forum: newLISP and the O.S.
Topic: redirecting stderr not working
Replies: 2
Views: 2536

Re: redirecting stderr not working

Many thanks, it works for me now how it should. I think I did something wrong somewhere.
However, the idea with redirecting it to stdout and then using the output in newlisp can be helpfull in other cases. I'm gonna keep that in mind.
by Darth_Severus
Wed Dec 23, 2015 12:24 pm
Forum: newLISP and the O.S.
Topic: redirecting stderr not working
Replies: 2
Views: 2536

redirecting stderr not working

$ 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 & ...
by Darth_Severus
Sun Nov 29, 2015 7:56 pm
Forum: newLISP and the O.S.
Topic: unix.lsp / unix:syslog, example please
Replies: 5
Views: 3217

Re: unix.lsp / unix:syslog, example please

It's based on Debian 8.2
by Darth_Severus
Thu Nov 26, 2015 12:32 am
Forum: newLISP and the O.S.
Topic: unix.lsp / unix:syslog, example please
Replies: 5
Views: 3217

Re: unix.lsp / unix:syslog, example please

Which version of Linux? MX Linux (32 Bit) 3.14-0.bpo.2-686-pae #1 SMP Debian 3.14.15-2~bpo70+1 (2014-08-21) i686 GNU/Linux @ralf: The string needs to be in printf, not the number. syntax: (unix:syslog num-priority str-message ...) parameter: num-priority - The priority of the message. parameter: st...
by Darth_Severus
Thu Nov 26, 2015 12:20 am
Forum: newLISP in the real world
Topic: Finding infos in search engines
Replies: 3
Views: 3221

Re: Finding infos in search engines

I'd prefer to find it by only typing the problem or something about the function, and I think this would help a lot of users and newLisp as well. This is how it works with Linux problems and just anything else. But, all sites about newLisp are not indexed very well by the search sites. I wondered if...
by Darth_Severus
Wed Nov 25, 2015 7:37 pm
Forum: newLISP and the O.S.
Topic: How to declare Linux variables by using newLisp
Replies: 2
Views: 2698

Re: How to declare Linux variables by using newLisp

Ahh, that's it. Thanks!
But, the number needs to be a string as well.

Code: Select all

(env "final_answer" "42")
by Darth_Severus
Wed Nov 25, 2015 7:32 pm
Forum: newLISP and the O.S.
Topic: unix.lsp / unix:syslog, example please
Replies: 5
Views: 3217

unix.lsp / unix:syslog, example please

I tried using unix:syslog from here 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:s...
by Darth_Severus
Wed Nov 25, 2015 5:17 pm
Forum: newLISP and the O.S.
Topic: How to declare Linux variables by using newLisp
Replies: 2
Views: 2698

How to declare Linux variables by using newLisp

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"...
by Darth_Severus
Wed Nov 25, 2015 5:14 pm
Forum: newLISP in the real world
Topic: Finding infos in search engines
Replies: 3
Views: 3221

Finding infos in search engines

I would really love it, if I could find

- infos about newlisp functions
- newlisp snippets
- threads of this forum

in any search engine. Thanks.
by Darth_Severus
Sat Sep 05, 2015 11:09 am
Forum: newLISP in the real world
Topic: Strange behavoir auf string token to long
Replies: 1
Views: 2348

Strange behavoir auf string token to long

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: ERR: 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 th...
by Darth_Severus
Wed Aug 26, 2015 12:43 pm
Forum: newLISP in the real world
Topic: Strange problem with dolist
Replies: 13
Views: 5010

Re: Strange problem with dolist

Thanks for your help so far, I might look into your code if I can use it.
by Darth_Severus
Tue Aug 25, 2015 9:00 pm
Forum: newLISP in the real world
Topic: Strange problem with dolist
Replies: 13
Views: 5010

Re: Strange problem with dolist

Even if this would be the right way to do it, then the print function also had to show it. You can't be serious about just keeping it how it is. It's invisible. A programmer can't know which files a user would be using as an input file, so this is one more thing to think of writing a program. Your l...
by Darth_Severus
Tue Aug 25, 2015 6:17 pm
Forum: newLISP in the real world
Topic: Strange problem with dolist
Replies: 13
Views: 5010

Re: Strange problem with dolist

I think programs are not supposed to read the BOM when reading a file (this way). When I do $> cat file in Linux, then the BOM is not shown, nor in any other program. How I've shown above in newLisp it's even a difference when using println or using starts-with. This makes no sense at all, people ma...
by Darth_Severus
Tue Aug 25, 2015 10:42 am
Forum: newLISP in the real world
Topic: Strange problem with dolist
Replies: 13
Views: 5010

Re: Strange problem with dolist

Wierd. I think BOM is supposed to only happen once, at the very beginning of the file. Right, and that fits exactly to the error I got. Only the first line makes troubles. So even in the (cond ...) style, the code doesn't work if BOM is in the file? Yes. I think it's clearly a bug. Unlike other pro...
by Darth_Severus
Mon Aug 24, 2015 3:19 pm
Forum: newLISP in the real world
Topic: Strange problem with dolist
Replies: 13
Views: 5010

Re: Strange problem with dolist

Update I found the nerve to try it again. I created a new file and it worked correctly, until I used that option in geany called "Write Unicode BOM". I always activated this, without knowing if I need it for sure. It turns out, for this use case I don't. I'm quite sure I started activating this caus...
by Darth_Severus
Mon Aug 24, 2015 11:01 am
Forum: newLISP in the real world
Topic: Strange problem with dolist
Replies: 13
Views: 5010

Re: Strange problem with dolist

Here, cleaned it up a little for you. Thanks, but you also put an error in it: (push temp result-list-1)) should be (push temp result-list -1)) Here is a question: are you intentionally skipping lines that start with a tab "\t"? Yes, for the moment. I wanted to decide later what to do instead. if y...