Re: running python script with [command] outputs info only when script exits
cyrille henry <[email protected]>
| Newsgroups | gmane.comp.multimedia.puredata.general |
|---|---|
| Message-ID | <[email protected]> |
hello, it should work if you start your script in a termminal and pipe it to pdsend : ./test.py | pdsend 6789 localhost udp use a netreceive object to get the script result. cheers c Le 10/12/2024 à 11:02, Alexandros Drymonitis a écrit : > Is it possible to run a Python script with [command] that runs a `while True` loop and have it print data to the middle outlet of [command] continuously? I can't see how to make this work. As a test, I wrote the script below and tested it: > > ``` > from time import sleep > > for i in range(10): > print(i) > sleep(1) > ``` > > [command] will output 10 numbers together when the script exits. Is it possible to get the incrementing variable i printed every second? > > > --- > [email protected] - the Pure Data mailinglist > https://lists.iem.at/hyperkitty/list/[email protected]/message/ZSZSQRZCLC5QQINZ2YKJXPPCNXB2EVH5/ > > To unsubscribe send an email to [email protected] mailing list > UNSUBSCRIBE and account-management -> https://lists.iem.at/ --- [email protected] - the Pure Data mailinglist https://lists.iem.at/hyperkitty/list/[email protected]/message/34O7QRARRZBAZ2DNBRNAQSCWEXD5O7IN/ To unsubscribe send an email to [email protected] mailing list UNSUBSCRIBE and account-management -> https://lists.iem.at/