discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: run python script simultaneous with time limit


From: robin ivetic
Subject: Re: run python script simultaneous with time limit
Date: Sun, 21 Jan 2024 08:21:59 +0000

Never mind I fix this, issue was command timeout plus osmosdr block, with limesdr-grc block timeout command runs like this 

timeout -s 9 10s python3 -uuu 1.py

With OsmoSDR block

timeout trigger command as it should with

timeout --preserve-status --foreground -s 9 10s python3 -uuu  2.py

Robin




From: discuss-gnuradio-bounces+otpisani1=hotmail.com@gnu.org <discuss-gnuradio-bounces+otpisani1=hotmail.com@gnu.org> on behalf of robin ivetic <otpisani1@hotmail.com>
Sent: Sunday, January 21, 2024 5:23 AM
To: JORGE GONZALEZ ORELLANA via GNU Radio, the Free & Open-Source Toolkit for Software Radio <discuss-gnuradio@gnu.org>
Subject: run python script simultaneous with time limit
 
Hello,


Although this is not primary gnuradio fault, more generally Python knowledge, how can I run mutiple python script one after another with time limit on linux

timeout -s 9 10s python3 -u 1.py
sleep 1
timeout -s 9 10s python3 -u 1.py

This script works, but somehow doesn't trigger Tx switch on hackrf.

How can I try to run all script with python, although this method doesn't work also

import os
import time
os.system('timeout -s 9 10s 1.py && sleep 1')
os.system('timeout -s 9 10s 2.py && sleep 1')


Robin

*

reply via email to

[Prev in Thread] Current Thread [Next in Thread]