Re: Need help with perl script using threads.



r_stringer66@xxxxxxxxx wrote in news:1116179374.513610.58220
@g43g2000cwa.googlegroups.com:

> Thanks for your quick response.

Whose response?

> I did try your suggesion

Whose suggestion?

Please quote some context when you respond.

This is especially important in this case because the aptly named
ignoramus has set X-No-Archive, and therefore future readers of this
thread will not be able to locate his answer to which you are
responding.

> but this solutions seems to run all three scripts sequentially,

His "solution" had nothing to do with "threads".

Ignoramus6432 <ignoramus6432@xxxxxxxxxxxxxxxxxxx> wrote in
news:d67vvb$3na$1@xxxxxxxxxxxx:

> On 15 May 2005 09:58:18 -0700, r_stringer66@xxxxxxxxx
> <r_stringer66@xxxxxxxxx> wrote:
>> Hello,
>>
>> I am trying to write a perl script which will executes three other
>> perl scripts simultanously such as the example described below:
>>
>> I will have a main.pl script which will call test1.pl, test2.pl and
>> test3.pl simoultanously in a multithreaded fashion.
>
> system( "test1.pl \&; test2.pl \&; test3.pl \&" );

This is an operating system dependent call. Roughly speaking, on a *nix
system, it will execute all three scripts in the background. On Windows,
it will execute each script in turn.

> test2.pl only got executed after test1.pl finished. I was actually
> looking for a way to run all three of them concurrently , forcing each
> of them to spawn a new thread simultanously.

It looks like you are on Windows system.

> Thanks in advance for any ideas you might have on this,

Please read the posting guidelines for this group. Follow the
recommendations given there to formulate your question in Perl, and post
again.

Sinan

--
A. Sinan Unur <1usa@xxxxxxxxxxxxxxxxxxx>
(reverse each component and remove .invalid for email address)

comp.lang.perl.misc guidelines on the WWW:
http://mail.augustmail.com/~tadmc/clpmisc/clpmisc_guidelines.html
.



Relevant Pages

  • Re: Problem with IIS 6.0 serving .NET applications
    ... It's working now because you need to have "scripts and executable" ... > to "None" and I'd get the content of the exe shown in the browser, ... >> Did you set Application & Scripts execute permissions? ... >>> execute permission on that Virutal Directory, ...
    (microsoft.public.inetserver.iis.security)
  • Re: HTTP 403.1 Forbidden: Execute Access Forbidden
    ... This sounds like an Visual InterDev behavior/requirement -- I really have no ... execute ASP script, you MUST have the "Scripts" execute permission [so ... scripts and executables is not necessary to run the default.asp page]). ... IIS is merely doing what you configured. ...
    (microsoft.public.inetserver.iis)
  • Re: That stupid cant execute error is driving me insane
    ... This error comes up when the vdir does not have "Scripts" or "Scripts and ... Executables" Execute Permission and you try to access a URL that is either ... Here is a simplistic view of how IIS does request processing: ... If the mapping is dynamic, then IIS decide whether the URL should be ...
    (microsoft.public.inetserver.iis)
  • [UNIX] cPanel mod_php suexec Taint Vulnerability
    ... Get your security news from a reliable source. ... There exists a security issue in cPanel installed systems due to how ... a user is able to execute arbitrary code ... all PHP scripts are executed as the same user ...
    (Securiteam)
  • Re: Nearly undocumented NT security feature - the solution to executable attachments?
    ... Windows NT users cannot defend from e-mail borne malware, ... KH> Instead of boring you with a lesson on Windows NT security, ... execute access, like in Unix, is distinct from read ... KH> please note that, as I said earlier, this won't stop scripts (except batch ...
    (Bugtraq)