Hm. In that case you'll need to post actual code, that is runnable and demonstrates the problem.
- Actual code:
Ie. This code: $gdbserver_path :6000 $Exe_path 1> NUL 2> NUL` ; from your OP, is not valid Perl.
- There is an unmatched backtick (`) at the end of the line, but none at the start.
- Whilst not illegal, a command line parameter that starts ':' is unusual.
- You are redirecting both stdout and stderr to nul, then what is the point of backticks? (They are designed to return the output of the spawned program to the spawner.)
- Ditto: Why use backticks (rather than system) if you aren't going to assign the output to a variable and use it?
- Runnable: means that we will have a good chance of running the code you post.
Ie. It mustn't have dependencies that we cannot have access to -- like modules that are your companies intellectual property.
We don't need to have the executable you are running, we can mock that up using a perl 1-liner.
- demonstrates the problem: hopefully, self explanatory.
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
In the absence of evidence, opinion is indistinguishable from prejudice.
| [reply] [d/l] |
Ya there is a backtick at the beginning as well. Must have been left out while copying
| [reply] |
In the absence of code that demonstrates the problem, it is hard to move forward.
A simplistic test of the problem as described shows that the join works fine:
[0]{} Perl> print async{ `perl -e1`; return 'Completed'; }->join;;
Completed
[0]{} Perl>
The backticks ran in a void context, running an executable that produced no output; the thread ended returning the string 'Completed'; which was retrieved with join, and passed to print and displayed.
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
In the absence of evidence, opinion is indistinguishable from prejudice.
| [reply] [d/l] |