You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
[Help] ./record.sh: line 11: pgrep: command not found #152
changed the title [-][Help] nohup: failed to run command 'blrec': No such file or directory[/-][+][Help] ./record.sh: line 11: pgrep: command not found[/+]on Jan 14, 2025
Activity
[-][Help] nohup: failed to run command 'blrec': No such file or directory[/-][+][Help] ./record.sh: line 11: pgrep: command not found[/+]timerring commentedon Jan 14, 2025
这里我主要是防止用户重启时打开多个 blrec 录制进程出现 bug,所以在启动脚本里 kill 上一个 blrec 进程。 确保同一时间内只会有一个 blrec 进程在运行,可能在 windows 中并没有这个命令。
不过这并不影响程序的正常运行,只是需要在重启的时候要注意,在 windows 中可以通过
tasklist | findstr /i "blrec"查找进程 PID,然后taskkill /PID <the_blrec_id> /F终止录制进程,完成同样的操作。我后面可以针对 windows 写个启动脚本。
timerring commentedon Jan 16, 2025
思来想去还是想复杂了,其实没有必要专门写 windows 下的 bat 脚本,我把 pgrep 换成最基础的管道命令配合查找就好其实。稍后我 push 一版。
moushicheng commentedon Jan 17, 2025
@timerring 我在windows下是直接运行blrec的,其实我可以写一个给windows用的脚本,需要吗?
timerring commentedon Jan 17, 2025
可以的,欢迎 PR
refactor: simplified startup scripts
refactor: simplified startup scripts (timerring#155)