scsh-make/job.scm

26 lines
598 B
Scheme
Raw Normal View History

2005-01-17 02:56:42 -05:00
(define-record-type :job-desc
(make-job-desc wd env cmd)
job-desc?
(wd job-desc-wd)
(env job-desc-env)
(cmd job-desc-cmd))
(define-record-type :job-res
(make-job-res errno stdout stderr)
job-res?
(errno job-res-errno)
(stdout job-res-stdout)
(stderr job-res-stderr))
(define (display-job-output j-res)
(display
(string-append
2005-03-12 03:24:44 -05:00
";;; job finished with exitno: "
2005-01-17 02:56:42 -05:00
(number->string (job-res-errno j-res)) "\n"
2005-03-12 13:53:33 -05:00
";;; job finished with stdout:\n"
2005-01-17 02:56:42 -05:00
(job-res-stdout j-res) "\n"
2005-03-12 13:53:33 -05:00
";;; job finished with stderr:\n"
2005-01-17 02:56:42 -05:00
(job-res-stderr j-res) "\n"))
(newline))