subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
log_file = f"/tmp/whisper_{os.path.basename(audio_path)}.log" nohup_cmd = f"nohup {' '.join(cmd)} > {log_file} 2>&1 &" print(f"🚀 Whisper 后台转写启动,日志: {log_file}") subprocess.run(nohup_cmd, shell=True) print(f"📝 文字稿将保存到: {output_path}") print(f"⏱️ medium 模型 CPU 转写 1 分钟音频约需 1-2 分钟,请耐心等待") return output_path- Confidence
- 99% confidence
- Finding
- subprocess.run(nohup_cmd, shell=True)
