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

[1.6.4][CC 1.58] Existing program gets ignored by shell.run()

Started by BrainInBlack, 25 February 2014 - 03:18 AM
BrainInBlack #1
Posted 25 February 2014 - 04:18 AM
Hi guys,

maybe it's just me, but i'm not able to use the shell.run("program_name") cmd. The only response i get is "no such program", but the program is definitely there and i can start it as usual.

I tried renaming the program, different computers and so on… but no success.


I'm using a manually updated version of the DW20 pack, i.e. everything should be up to date.
Lyqyd #2
Posted 25 February 2014 - 10:17 AM
What is the exact command you are using and where is the program located on the computer?
ElvishJerricco #3
Posted 25 February 2014 - 12:52 PM
Only thing I can think of is that your program is in some directory. From the shell you can be in that directory and just type the program name. From a program you have to give the absolute path to the program. Two work arounds to this are to use shell.runLine or to shell.run(shell.resolve(name)), either of which should use the relative directory.
BrainInBlack #4
Posted 01 March 2014 - 08:38 PM
Sorry, a total derp on my part… used that cmd not inside startup, but just in the general terminal… so no problem there.