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

Question

Posted

Hello guys,

I'm a new user of opencomputers and I met a problem : 

I edited a prgm :

password :

local term = require("term")

function begin()

print("hello customer")

print("enter password")

password = io.read()

if password == "password" then

else

begin()

end

end

begin()

 

My program is correct, I can run it but I wanted to set it on the boot so the customer must know the password to use the computer. How can I do that ? 

4 answers to this question

Recommended Posts

  • 0
Posted

Well ok thank you. Can you just tell me what  I am supposed to write in shrc cause I don't know ^^

Just the name of my program like that : alias etc

                                                                      alias etc

                                                                      alias etc

                                                                      alias etc

                                                                      (name of my program)

Is there any needed syntax to write it ?

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.