Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local shell = require("shell")
- local fs = require("filesystem")
- local args = shell.parse(...)
- if args[1] == nil then print('Ошибка ввода, укажите название программы -> q [программа]') os.exit() end
- if not fs.exists('/home/'..args[1]) then print('Файл не найден') os.exit() end
- os.execute('rm '..args[1])
- os.execute('edit '..args[1])
- os.execute(args[1])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement