Advertisement
DOGGYWOOF

Doggy OS Lite Admin Byoass debugger

May 27th, 2024
12
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. -- runShell.lua
  2. -- A simple program to run shell commands in ComputerCraft
  3.  
  4. print("Enter the shell command:")
  5. local command = read() -- Reads input from the user
  6.  
  7. local success, output = pcall(function()
  8. return shell.run(command)
  9. end)
  10.  
  11. if success then
  12. print("Command executed successfully.")
  13. else
  14. print("Error executing command:")
  15. print(output)
  16. end
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement