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

[SOLVED] How to use command in program?

Started by Cute Froggy :), 12 February 2017 - 03:55 AM
Cute Froggy :) #1
Posted 12 February 2017 - 04:55 AM
How do I use a command for a program? I want a program which does "rm *" Don't ask why just answer :P/> But how do I make it enter that command as if a human typed it into the command line? Thanks!
EDIT 1: Also I do know I can't "disguise" stuff that deletes as programs. So I can confirm it's not to post that stuff on the program share thing :)/> Just if you thought I had ill-intentions
EDIT 2: Solved.
Edited on 13 February 2017 - 12:24 AM
Bomb Bloke #2
Posted 12 February 2017 - 05:33 AM
What was wrong with the answers you got last time you asked this? :/
Cute Froggy :) #3
Posted 12 February 2017 - 05:39 AM
Oh, wow. I didn't even know that I've posted it! Sorry, you can go ahead and lock this post if you want (or delete it)

But it would be useful to know how to use any command line commands in a program
Cute Froggy :) #4
Posted 12 February 2017 - 05:51 AM
Wait, does shell.run run command line commands?
Edited on 12 February 2017 - 04:55 AM
Bomb Bloke #5
Posted 12 February 2017 - 12:12 PM
Yes.