您好我想在我的python代码中使用linux命令,我正在使用子进程函数但是我收到错误:
select product.id, product.sku, product.pack_size, product.image, product.weight, product_price.id as product_price_id, product_price.price,(($cost * product.weight)/product.pack_size) + product_price.price as cost from product join product_price on product.id = product_price.product_id
linux命令:
kill: failed to parse argument: '$(jobs -p)'
python子进程代码:
sudo kill -9 $(jobs -p)
我做错了什么?