Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ Perlscript ➜ system calls

system calls

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Andreas   (2 posts)  Bio
Date Fri 28 Nov 2003 04:12 PM (UTC)
Message
Hey,

what i'm trying to do is have a script that reads (audio-wise) some mud output to me using some speech engine.
I do this using a system() call which works pretty well,
except that it is halting the whole system until the audio stuff is done. Since fork() doesnt seem to be supported by Perlscript, I'm looking for another solution that lets me have something like a background process which doesnt stop the whole script.

Any ideas?

Thanks in advance,
Andreas.
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #1 on Sat 29 Nov 2003 10:22 PM (UTC)
Message
fork() isn't really supported under Windows in the first place, it is a Unix concept.

What I would try to do is have a separate process, and send messages to it.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Andreas   (2 posts)  Bio
Date Reply #2 on Tue 02 Dec 2003 01:33 AM (UTC)
Message
Thanks for your reply,
I'll try to figure that out ;)

Btw, in Perl under Windows (the current ActiveState one) there's a fork emulation that at least seems to work, but Perlscript doesnt seem to have it.

Thanks again,
best regards,
Andreas.
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


11,803 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.