Coding help
Started by avatar5284, Aug 07 2012 02:28 AM
9 replies to this topic
#1
Posted 07 August 2012 - 02:28 AM
I am trying to do a very simple code but i keep getting an error when i run the program.
< this is the error
< this is the code
#2
Posted 07 August 2012 - 03:42 AM
On line three, print has a captial 'p'. Lua is case sensitive, and it must be a lowercase 'p'.
#3
Posted 07 August 2012 - 03:47 AM
Oh oops I over looked that ha I'll remember next time I get an error like this.
#5
Posted 07 August 2012 - 04:03 AM
Is there a way after this program runs that it opens up another program automatically?
#6
Posted 07 August 2012 - 04:20 AM
I beleive it is something along the lines of shellrun("Program") But I am not quite sure. If you use the command help shellapi, it should be in there somewhere.
#8
Posted 07 August 2012 - 11:22 AM
os.run({}, "progamname")
is what I would find sufficient enough
if its on another drive/dir, then
"dir/prog" would work
#9
Posted 07 August 2012 - 12:15 PM
os.run() is good if you have extra args that you would like to pass to the program. Otherwise it's easier to just use shell.run(). Just make sure that you don't nest a program within itself.
#10
Posted 07 August 2012 - 02:42 PM
luanub, on 07 August 2012 - 12:15 PM, said:
os.run() is good if you have extra args that you would like to pass to the program. Otherwise it's easier to just use shell.run(). Just make sure that you don't nest a program within itself.
Thanks shell.run() worked for what i'm doing!
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











