Jump to content




[question] Running a program above the shell


  • You cannot reply to this topic
3 replies to this topic

#1 Exerro

  • Members
  • 801 posts

Posted 20 March 2013 - 07:40 AM

I have been trying to make a coroutine that injects itself above the shell so even if the shell stops my coroutine/function will still be running. Is this possible without modifying the bios, and if so how can I do it?

#2 Noodle

  • Members
  • 989 posts
  • LocationSometime.

Posted 20 March 2013 - 07:50 AM

When you do shell.run it runs on top of what is currently running so..
I don't think there's a way
Try this in startup
function topofshell()
  shell.run("BLAH")
end
function shell()
  shell.run("shell")
end
coroutine.create(topofshell)
I really don't know what it would be..

#3 Noodle

  • Members
  • 989 posts
  • LocationSometime.

Posted 20 March 2013 - 07:53 AM

What you're talking about is crazy..
Just make a startup that runs a loop..

EDIT: Technically if you were to kill the shell, you kill everything that is running.

#4 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 20 March 2013 - 08:03 AM

Lets see if i can find that topic from a few months ago.......... oh here it is Top Level Coroutine Override





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users