我尝试了<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-
fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css"
integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk"
crossorigin="anonymous">
</head>
<body>
<pre class="float-right position-sticky">
</pre>
</body>
</html>
。
@reboot python3 /home/hyebin/project/tensorrt_demos/trt_ssd.py --model ssd_mobilenet_v2_face --usb --vid 1-宽度1280-高度780
1。我是否只需要将其添加到crontab -e
的底行?
2.可以添加诸如“ --model”之类的附加内容吗?
3.如果添加了此类内容,该怎么办?
答案 0 :(得分:0)
最好在crontab中使用绝对路径,而不是仅使用python3
。
示例:
@reboot /path/to/command arg1 arg2
它应该与--model
要找到python3的绝对路径,可以运行which python3
并使用它