cmd /K "newlisp -c /home/myname/Desktop/hello.lsp"Quote
is what is being sent to bash.
Can anyone throw any light on why this is happening and newlisp is not being called, please?
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 Menucmd /K "newlisp -c /home/myname/Desktop/hello.lsp"Quote
/usr/bin/java/jre1.8.0_77/bin/javaQuote
sudo ln -s /usr/bin/java/jre1.8.0_77/bin/java /usr/bin/javaQuote
is typed. Am I linking incorrectly? The newlisp executable is in /usr/local/binnewlisp-editQuote
<h1>string</h1>
.
lrwxrwxrwx 1 root root 35 Aug 18 14:19 libcrypt.so -> /lib/x86_64-linux-gnu/libcrypt.so.1
run-shellQuote
Could not start C:Program Files (x86)newlisp/newlisp.exe -C -w "C:UsersMyUserName"
(and
after
(if not (find "t1" (sql3:tables)))
to arrive at this:
(if (not (find "t1" (sql3:tables)))
(create-table)
(init-table))
.
inserted element 1 1.0079 Hydrogen H -259 -253 0.09 0.14 1776 1 13.5984
inserted element 2 4.0026 Helium He -272 -269 0 0 1895 18 24.5874
inserted element 3 6.941 Lithium Li 180 1347 0.53 0 1817 1 5.3917
inserted element 4 277 Hassium Hs 0 0 0 0 1984 8 0
inserted element 5 268 Meitnerium Mt 0 0 0 0 1982 9 0
ERR: list index out of bounds in function int
called from user defined function sql3:sql
called from user defined function init-table
even though the insert went fine.
(set 'elements [text]1 1.0079 Hydrogen H -259 -253 0.09 0.14 1776 1 13.5984
2 4.0026 Helium He -272 -269 0 0 1895 18 24.5874
3 6.941 Lithium Li 180 1347 0.53 0 1817 1 5.3917
4 277 Hassium Hs 0 0 0 0 1984 8 0
5 268 Meitnerium Mt 0 0 0 0 1982 9 0
[/text])
(module "sqlite3.lsp")
(if (sql3:open "periodic_table")
(println "database opened/created")
(println "problem: " (sql3:error)))
(set 'column-def "number INTEGER, atomic_weight FLOAT, element TEXT, symbol TEXT, mp FLOAT, bp FLOAT, density FLOAT, earth_crust FLOAT, discovered INTEGER, egroup INTEGER, ionization FLOAT")
(define (create-table)
(if (sql3:sql (string "create table t1 (" column-def ")"))
(println "created table ... OK")
(println "problem " (sql3:error))))
(define (init-table)
(dolist (e (parse elements "n" 0))
(set 'line (parse e))
(if (sql3:sql
(format "insert into t1 values(%d, %f, '%s', '%s', %f, %f, %f, %f, %d, %d, %f);"
(int (line 0))
(float (line 1))
(line 2)
(line 3)
(float (line 4))
(float (line 5))
(float (line 6))
(float (line 7))
(int (line 8))
(int (line 9))
(float (line 10))))
; success
(println "inserted element " e)
; failure
(println (sql3:error) ":" "problem inserting " e))))
(if (not (find "t1" (sql3:tables)))
(create-table)
(init-table))
(define (query sql-text)
(set 'sqlarray (sql3:sql sql-text)) ; results of query
(if sqlarray
(map println sqlarray)
(println (sql3:error) " query problem ")))
#!/usr/bin/newlisp
;;; to create table, used this -- CREATE TABLE UsrTbl(Id INTEGER PRIMARY KEY, UserName TEXT, UserEmail TEXT)
(print "Content-type: text/htmln")
(load (append (env "NEWLISPDIR") "\modules\cgi.lsp"))
(load (append (env "NEWLISPDIR") "\modules\sqlite3.lsp"))
(println
[text]
<br>
<form action="UPDTDB2.cgi" method="POST">
<pre>
User name:<input type="text" name="username"><br>
Email :<input type="text" name="useremail"><br>
<input type="submit" value="Go">
</pre>
</form>
<br>
[/text])
(define (rslt 'sql-text)
(set 'sqlarray (sql3:sql sql-text)) ; results of query
(if sqlarray
(map println sqlarray)
(println (sql3:error) " query problem ")))
(define (insrt 'sql-text)
(set 'qry (sql3:sql sql-text))
(if qry
(println "ok")
(println (sql3:error))))
(set 'database "JCDB.db")
(sql3:open database)
(println {<br>})
(set 'name (CGI:get "UserName"))
(set 'email (CGI:get "UserEmail"))
(set 'sqlstr (string "INSERT INTO usrtbl VALUES('','" name "','" email "');" ))
(insrt sqlstr)
(println {<br>Hit the [back] button on your browser to got back<br>})
(exit)
;;; eof ;;
newlisp-edit
I get
/usr/bin/newlisp - bad interpreter: No such file or directory
I assume one uses the 32 bit installer under Ubuntu 64 bit, right?
ERR: list or string expected in function replace : nil called from user defined function search-content-table called from user defined function display-page
on the apps link in newlisp.org results in s a 404 error. Is this a temporary problem, or is this browser based IDE no longer available?newlisp-ide-4.6.tgz (updated 2010-04-21)Quote
(java:3058): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",
curl -X PUT http://127.0.0.1:5984/mydatabase
(load (append (env "NEWLISPDIR") "\modules\sqlite3.lsp"))
(if (sql3:open "SimonsTownLine.sqlite3")
(println "database opened/created")
(println "problem: " (sql3:error)))
(define (query sql-text)
(set 'sqlarray (sql3:sql sql-text)) ; results of query
(if sqlarray
(map println sqlarray)
(println (sql3:error) " query problem ")))
(query "select * from MonFriDown")
(sql3:error)
(sql3:close)