This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
latemail's profile picture

How to automate the start-up?

Started by latemail, 11 February 2013 - 08:56 AM
latemail #1
Posted 11 February 2013 - 09:56 AM
Hi there,

obviously I´am new to CC and after searching without sucsess I have the following question:

my computers need to start their programms after each new stat of minecraft on theit own, how can I automat this? What I mean, when I log in, the computers should automatically start their own programm - how can I manage this?? with the startup-file? but how???

Thx for your help ….
Cranium #2
Posted 11 February 2013 - 02:29 PM
Split to new topic.

In order to make programs run upon loading, you want to name the program you want as 'startup', or you can create a new startup file that will run it for you. Just type in
shell.run("<programNameHere>")
in the startup file.
AnDwHaT5 #3
Posted 12 February 2013 - 05:26 AM
yes use edit startup and it will startup as for what you put in it. As stated if you use shell.run("yourprogramhere") then it will run that program stated in the shell. You can also load a api by useing os.loadAPI("/Yourdictionary/yourprogram") but thats way more advanced. You can also customize the shutdown by useing edit shutdown. Same rules apply but i dont suggest adding a program :P/>
KingofGamesYami #4
Posted 12 February 2013 - 11:25 AM
type
"edit startup"
then write your program there
thats how u make a password protected terminal