Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: Threads Help

by wazoox (Prior)
on May 06, 2011 at 21:37 UTC ( #903452=note: print w/replies, xml ) Need Help??

in reply to Threads Help

What did you write so far? What about starting with a simple, one machine controller, then expanding it? Do you have any code to show? You really don't give much meaningful detail...

Replies are listed 'Best First'.
Re^2: Threads Help
by miked63017 (Initiate) on May 10, 2011 at 16:27 UTC
    I named my script CFDeluxe for Cluster F*** Deluxe. So rather than you combing through my spaghetti code. I just need an example of threads where each thread opens in a new console although I am starting to get the feeling this is not possible
      On Linux, each console (let's say xterm to keep it simple) is an independent process, and is connected to its own pty (pseudo tty). You can open an xterm with a special command (as opposed as running a shell). If you want to display data coming from a thread to your xterm, you could use named pipes (created with mkfifo); the working thread could write to the named pipe, and the script run from the xterm would display what's coming into the named pipe.
      I don't have any code at hand for an example, but it's quite easy to do.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://903452]
[thepkd]: getting data out of the ds
[choroba]: it depends. Give more details, please
[thepkd]: i used a series of {}'s but it dont work
[choroba]: You need square brackets for arrays
[GotToBTru]: you can certainly construct a single expression to access any part of the data structure, without using temp variables. but you might make it easier on yourself and any other poor soul who has to understand your code if you do
[thepkd]: to dereference i mean
LanX .oO( oh tempz, oh moretz)
[thepkd]: @GotToBTru Sure. But.
choroba waits

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (13)
As of 2016-12-06 13:27 GMT
Find Nodes?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:

    Results (104 votes). Check out past polls.