Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
启动结束时的linux start script.sh_Linux_Shell_Ubuntu_Sh - Fatal编程技术网

启动结束时的linux start script.sh

启动结束时的linux start script.sh,linux,shell,ubuntu,sh,Linux,Shell,Ubuntu,Sh,我需要在命令行中启动一个简单的脚本,当所有的服务都自动启动时(如图片),总是在计算机打开时 脚本简单,启动也可以是C++程序。 #!/bin/sh /path/to/my/script.sh 我需要这个来连接另一个简单的程序 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge">

我需要在命令行中启动一个简单的脚本,当所有的服务都自动启动时(如图片),总是在计算机打开时

脚本简单,启动也可以是C++程序。

#!/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>


$(文档).ready(函数(){
setInterval(函数(){
$('#show').load('data.php'))
}, 3000);
});

要在启动时启动程序,可以在/etc/rc.local上修改并添加一行

e、 g


什么样的恶作剧?也有C++执行?myProgram?如果要启动程序而不是脚本,请获取程序的完整路径(通过
pwd
),然后将行
/path/to/my/program&
放入
/etc/rc.local
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
    $(document).ready(function() {
        setInterval(function () {
            $('#show').load('data.php')
        }, 3000);
    });


</script>
/path/to/my/script.sh &