Get output of previous command using spring shell

Need help! how to read output of previous command in spring shell like
$ cat hi.txt
cat: hi.txt: No such file or directory
$ javac hello.java
hello.java:3: error: non-static method hi() cannot be referenced from a static context
hi();
^
1 error
$ cmdzen solve
$ cat hi.txt
cat: hi.txt: No such file or directory
$ javac hello.java
hello.java:3: error: non-static method hi() cannot be referenced from a static context
hi();
^
1 error
$ cmdzen solve
now here i want to read the output of the previous command output i.e error cat: hi.txt: No such file or dir and access output or java error in my spring shell application (cmdzen) to show solution or steps to solve the solution
1 Reply
JavaBot
JavaBot7mo ago
This post has been reserved for your question.
Hey @zap! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here. 💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one. In case your post is not getting any attention, you can try to use /help ping. Warning: abusing this will result in moderative actions taken against you.

Did you find this page helpful?