Jump to content




Coding help


  • You cannot reply to this topic
9 replies to this topic

#1 avatar5284

  • New Members
  • 17 posts

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.
Attached Image: 2012-08-06_21-16-35.png < this is the error
Attached Image: 2012-08-06_21-17-09.png < this is the code

#2 Zalerinian

  • New Members
  • 68 posts
  • LocationThe Internet

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 avatar5284

  • New Members
  • 17 posts

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.

#4 Zalerinian

  • New Members
  • 68 posts
  • LocationThe Internet

Posted 07 August 2012 - 03:48 AM

 avatar5284, on 07 August 2012 - 03:47 AM, said:

Oh oops I over looked that ha I'll remember next time I get an error like this.

Its alright, its a common error.

#5 avatar5284

  • New Members
  • 17 posts

Posted 07 August 2012 - 04:03 AM

Is there a way after this program runs that it opens up another program automatically?

#6 Bobder22

  • Members
  • 11 posts

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.

#7 avatar5284

  • New Members
  • 17 posts

Posted 07 August 2012 - 04:24 AM

 Bobder22, on 07 August 2012 - 04:20 AM, said:

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.

Sweet thanks I'll have to give it a try

#8 ImNutzForCoal

  • New Members
  • 15 posts

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 Luanub

    Lua Nub

  • Members
  • 1,135 posts
  • LocationPortland OR

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 avatar5284

  • New Members
  • 17 posts

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