Jump to content




Runing 2 programs parrelell


7 replies to this topic

#1 Duster

  • Members
  • 38 posts
  • LocationMassachusetts USA

Posted 02 April 2016 - 12:35 AM

i want to have two programs running parallel. one keeping all the other computers on the network on and another taking user input.
is there a way to do that?

Edited by Duster, 02 April 2016 - 12:37 AM.


#2 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 02 April 2016 - 12:42 AM

The easy way is to open a second tab to run the extra script in (type "bg" into shell). This requires an advanced computer.

#3 Duster

  • Members
  • 38 posts
  • LocationMassachusetts USA

Posted 02 April 2016 - 12:45 AM

is there a way to write that in a script to put in the startup script. its on a server so the computer keeps turning off. so i don't have to do that every time

View PostBomb Bloke, on 02 April 2016 - 12:42 AM, said:

The easy way is to open a second tab to run the extra script in (type "bg" into shell). This requires an advanced computer.


#4 valithor

  • Members
  • 1,053 posts

Posted 02 April 2016 - 02:39 AM

View PostDuster, on 02 April 2016 - 12:45 AM, said:

is there a way to write that in a script to put in the startup script. its on a server so the computer keeps turning off. so i don't have to do that every time

View PostBomb Bloke, on 02 April 2016 - 12:42 AM, said:

The easy way is to open a second tab to run the extra script in (type "bg" into shell). This requires an advanced computer.

http://www.computerc...ltishell.launch

#5 gril002

  • Members
  • 38 posts

Posted 04 April 2016 - 03:35 PM

Hy I actualy want to do the same thing but I have one tab where I havea command line and the other one has to run a while true loop. I have tried the above but it just runs the loop but the command line in the first tab does not load

#6 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 05 April 2016 - 12:18 AM

Difficult to comment without seeing the actual code you're using.

My only guesses are that you either rigged the loop to never yield (in which case you'd expect to see other issues), or more likely, you put the multishell.launch() call somewhere it'd never be executed from (eg underneath your infinite loop).

#7 Dragon53535

  • Members
  • 973 posts
  • LocationIn the Matrix

Posted 05 April 2016 - 12:41 AM

Or perhaps he's not passing the function pointer and instead running the function inside the multishell call.

#8 EveryOS

  • Members
  • 570 posts
  • LocationOver there ->

Posted 05 April 2016 - 04:31 PM

par1=loadfile('fileA')
par2=loadfile('fileb')
parallel.waitForAll(par1,par2)






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users