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

Mad2k6

Members
  • Content Count

    2
  • Joined

  • Last visited

Everything posted by Mad2k6

  1. I was actually able to fix it myself. It seems like I can't use the io API when in driver mode. Instead of io.open, i use filesystem.open and it works (as long as I require("filesystem") at the top of the file. I tried require("io") and require("filesystem") to use io, but it didn't work.
  2. So... I'm totally new to lua and I was able to write a simple program that listen in the foreground for modem_messages and depending on the message, it either responds back or write to a file. Now that I had it working in foreground (using event.pull), I wanted to have it run in driver mode (event.listen). The problem is that now it can't write to the file while in driver mode and I get a "file not found" error if I run. print(io.open("/tmp/arp.cache", "a")) Since I also have a message to my assert line, I see that message appended in /tmp/events.log. Driver mode code: http://pastebin.c
×
×
  • Create New...

Important Information

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