Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
  • 0
liq3

Can't read top of robot error message

Question

5 answers to this question

Recommended Posts

  • 0
12 hours ago, Fingercomp said:

In OpenOS 1.6 you can redirect the stderr buffer to file by appending 2>/path/to/file when running the command.


$ myprogram 2>/errors.log

Now when your program crashes, the error message will go to the /errors.log file.

That doesn't work for me. I'm running basic OpenOS. 

Link to post
Share on other sites
  • 0
3 minutes ago, Fingercomp said:

If "basic OpenOS" means OpenOS 1.5, I strongly recommend you to update the mod (and reinstall the OS). In previous versions of the OS there's no easy way to redirect error messages.

It says OpenOS 1.6 when I boot the computers. The redirect doesn't work for me. 

Link to post
Share on other sites
  • 0

Oh, sorry. I was wrong. It can't redirect error() messages.

 

I wrote a simple program that writes error message to file when a program crashes. Run the following command to download it.

$ wget https://gist.githubusercontent.com/Fingercomp/6563c64d70a4472f26923f78d77caeb9/raw/aa4f461ddee2af70a8040065be8974069e240e27/crash.lua /usr/bin/crash.lua

Usage:

$ crash /crash.log /home/bin/program.lua arg1 arg2

/crash.log is the file where the crash will be written.

/home/bin/program.lua is the path to your program.

arg1 arg2 are arguments passed to the program.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.