当需要在计算机开启时自动启动所有服务(如图片)时,我需要在命令行中启动一个简单的脚本
脚本很简单,也可以启动c ++程序./program
#!/bin/sh
/path/to/my/script.sh
我需要这个连接这样的简单程序
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
</head>
<body>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(document).ready(function() {
setInterval(function () {
$('#show').load('data.php')
}, 3000);
});
</script>
答案 0 :(得分:1)
要在启动时启动程序,可以在/etc/rc.local上修改并添加一行
e.g。
/path/to/my/script.sh &