Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • I inferior-shell
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • qitab
  • inferior-shell
  • Issues
  • #1
Closed
Open
Issue created May 29, 2017 by Alex Popov@apopov

Continually Printing Shell Activity

I apologize if this is answered elsewhere or self-evident; I'm only just beginning to learn Lisp.

I'm using inferior-shell:run to launch a long-running task which can routinely fail (it's a build validation routine).

My main issue is that I could not find a way of seeing the "live" output of the launched activity.

The reason why I'd like a live-feed is because I could not see the output if an error happened; I looked into the ON-ERROR: key, but it yielded little more than saying that there was an exit code of 1. This makes sense, as it seems like this key is a callback to take some kind of recovery action. However, if my task fails, I'd also like to know why it failed, and that's hidden in the output of the command, which does not seem to be accessible.

I tried calling RUN like this:

(inferior-shell:run (pod-command file) ; this generates a string shell command from the arg FILE
                      :on-error #'print ; tells me that the exit code was 1 
                      :output *standard-output* ; default, if I understand correctly
                      :interactive t) ; this was a shot in the dark

I'm sorry to ask for free tech support.

Edited May 29, 2017 by Alex Popov
Assignee
Assign to
Time tracking