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

Basic utilities

Started by Admicos, 22 December 2014 - 05:41 PM
Admicos #1
Posted 22 December 2014 - 06:41 PM
(I'm sorry if this is on wrong place, and my English is probably bad.)

I Made some stuff

ShellXCute
ShellXCute is a basic program that runs contents of a file. (example: batch files from Windows, sh files from Mac/Linux)
Usage:
shellxcute <file name>
Pastebin: eFM6tCr2

Cat
Cat is a basic program that prints the contents of a file to screen.
Usage:
cat <file name>
Pastebin: 8SH85Cf5

weGet
weGet is a program that downloads URL's
Usage:
weGet <URL> <file name>
Pastebin: PATF5vha
(btw i chose the name weGet because progran functions similar to wget in linux and i had no idea what can i name it )
Edited on 29 December 2014 - 08:25 PM
MKlegoman357 #2
Posted 22 December 2014 - 09:29 PM
Ok, so first: ShellXCute. You never close the file handle. You should do that, or the user won't be able to delete that file until a computer restart. Same with the 'Cat' program. By the way, nice idea you got there. I never thought about making a program to execute ComputerCraft shell commands from a file. Anyway, good luck with these utilities :)/>. Maybe more coming soon :P/>?
Admicos #3
Posted 23 December 2014 - 11:24 AM
Ok, so first: ShellXCute. You never close the file handle. You should do that, or the user won't be able to delete that file until a computer restart. Same with the 'Cat' program.
Fixed!
Maybe more coming soon :P/>?

I Probably add some other programs when i find a idea :)/>
Edited on 23 December 2014 - 10:27 AM
Admicos #4
Posted 29 December 2014 - 09:25 PM
Added weGet program!
More info on the first post
Agoldfish #5
Posted 29 December 2014 - 10:10 PM
Am I the only one who noticed that the first two files only have one line changed.
Admicos #6
Posted 29 December 2014 - 10:30 PM
Am I the only one who noticed that the first two files only have one line changed.
That's actually very true