rpav / scriptl Goto Github PK
View Code? Open in Web Editor NEWShell scripting made Lisp-like! Or, live-coding remote function calls for the shell.
Shell scripting made Lisp-like! Or, live-coding remote function calls for the shell.
Hey man, cool looking project! I'm having some trouble getting it running. Below is a short summary of the problem.
Building from the Quicklisp dist appears to succeed, but scriptl's default shell commands are not in path.
Running the scripts from inside their local directory fails because scriptlcom does not exist.
Trying to manually build scriptlcom fails because aclocal-1.14 is missing. Aclocal is present, but in a higher version. I'm going to try building with a matching version. Until then, any ideas as to what's up?
When running server under LispWorks 7.1.2 I get this error during command execution (I'm trying example from the README):
#(48 48 48 48 48 48 48 54) cannot be converted to foreign type "Statically allocated (LISP-ARRAY NIL)".
Call to ERROR
Call to FLI::FOREIGN-TYPE-ERROR-FUNCTION
Call to FLI::CHECKED-LISP-ARRAY
Call to FLI::SET-DYNAMIC-LISP-ARRAY-POINTER
Call to IOLIB/STREAMS::IOBUF-COPY-FROM-LISP-ARRAY
Call to IOLIB/STREAMS::IOBUF-APPEND-SLICE
Call to IOLIB/STREAMS::%WRITE-SIMPLE-ARRAY-UB8
Call to WRITE-SEQUENCE
Call to SCRIPTL::SEND-PACKET
Call to (HARLEQUIN-COMMON-LISP:SUBFUNCTION 2 (HARLEQUIN-COMMON-LISP:SUBFUNCTION 2 SCRIPTL::CLIENT-LOOP))
Call to SIGNAL
Call to ERROR
Interpreted call to COMMON-LISP-USER::MY-COMMAND
Call to (METHOD SCRIPTL::HANDLE-CLIENT-FOR ((EQL 2) T))
Call to (HARLEQUIN-COMMON-LISP:SUBFUNCTION 2 SCRIPTL::CLIENT-LOOP)
Call to (HARLEQUIN-COMMON-LISP:SUBFUNCTION (LABELS BORDEAUX-THREADS::%BINDING-DEFAULT-SPECIALS-WRAPPER) BORDEAUX-THREADS::BINDING-DEFAULT-SPECIALS)
Call to (HARLEQUIN-COMMON-LISP:SUBFUNCTION (LABELS BORDEAUX-THREADS::%JOIN-THREAD-WRAPPER) BORDEAUX-THREADS::%MAKE-THREAD)
Call to MP::PROCESS-SG-FUNCTION
while in the examples folder (following installation via quicklisp and invoking of scriptl:start) , running ./eval '(+ 1 1)' yields
./eval: line 20: printf: 0x: invalid number
head: illegal byte count -- 0
./eval: line 20: printf: 0x: invalid number
head: illegal byte count -- 0
./eval: line 20: printf: 0x: invalid number
head: illegal byte count -- 0
Error:
I was wondering:
Is there a way to create scripts elsewhere/at a specified directory (from inside lisp) ? (Some option to make-script I missed or something like that?)
Is there a way for scripts to have a notion of where they're being run? For a kinda dumb example, if I wrote:
(defun my-ls ()
(format t (with-output-to-string (out)
(run-program "/bin/ls" '() :output out))))
(scriptl:make-script "ls" 'my-ls)
Any calls to the ls script would only list the files where the script itself resides, not for the directory where the script is being called from.
I get this:
The path #P"/home/quicklisp/quicklisp-controller/dist/build-cache/scriptl/c61fc9f8a468c8eb34fe943c6ef16ff09eccfce7/scriptl-20150903-git/bin/scriptl" does not exist.
Build log is here: http://report.quicklisp.org/2015-09-03/failure-report/scriptl.html#scriptl
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.