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

[QUESTION] [LUA] How can I use the data from one application, and pass it to the other?

Started by anonimo182, 09 October 2012 - 12:59 AM
anonimo182 #1
Posted 09 October 2012 - 02:59 AM
I am stuck with this part at my application…

Please I need help to use the data from one application, and pass it to the other

Thanks
Orwell #2
Posted 09 October 2012 - 03:08 AM
One way to do is using arguments for your program. Another has been explained here: http://www.computercraft.info/forums2/index.php?/topic/4651-luaquestion-how-does-osrun-work/
anonimo182 #3
Posted 09 October 2012 - 03:30 AM
But I need to transfer X = "kads" from the application to the next one that will run
Orwell #4
Posted 09 October 2012 - 03:51 AM
But I need to transfer X = "kads" from the application to the next one that will run
I'm kinda certain that that's what I'm explaining. To be sure though, are you running the second program from within the first one?
anonimo182 #5
Posted 09 October 2012 - 03:53 AM
Yes
Orwell #6
Posted 09 October 2012 - 04:09 AM
Yes

Then you should read the thread I linked to.
anonimo182 #7
Posted 09 October 2012 - 04:22 AM
I did, but I did nothing
Exerro #8
Posted 09 October 2012 - 06:35 AM
im not sure because ive never used it but i think he means os.run("programName", put, your, data, here, in, the, args, bit) then you can catch them in the receiving program
anonimo182 #9
Posted 09 October 2012 - 03:08 PM
I solved it, thanks