我有一个类似如下的结构:
struct mydata
{
int a,
int b,
}
我想把它填到Windows中,然后把它发送给某个人,让它在Linux中阅读。我正在编写这两个应用程序。
目标是中间的用户不应该能够更改数据,但他可以读取数据。
用户可以访问Linux代码的源代码,但不能访问windows应用程序。
我的问题是:
1-我如何做到这一点?我的第一个想法是从结构中创建一个哈希,用私钥/公钥加密,然后发送给用户(在windows中)。在Linux上,解密它并检查是否有代码匹配数据。这是最好的解决方案吗?
2-我可以使用什么类型的库?该库应在windows和Lin
请告知我为什么会出现“错误:许可字段必须出现在包:(主包)”
我需要创建rpm文件,
我只有规范下的规范文件
和源代码下的test.sh脚本
这里怎么了?
[root@linux /usr/src/redhat]# ls
BUILD RPMS SOURCES SPECS SRPMS
规范文件:
Summary: An example tool. To show a simple rpm build of the tool.
Name: test.sh
Version: 6.2
Release: 2
Source:/root/test.sh
Group: Development/D
将/tmp/template.txt文件复制到$1中指定的任何目录的示例脚本。
copy_script.sh
if [ $# -eq 0 ]; then
echo No Argument
echo "Usage: $0 "
else
cp /tmp/template.txt $1
fi
在此之前
wolf@linux:~$ ls -lh
total 4.0K
drwxrwxr-x 2 wolf wolf 4.0K Dis 31 10:08 'another directory'
wolf@linux:~$
测试脚本
wolf@linu
系统: GNU/Linux 9.5无头。
情景与问题
我刚刚捕捉到了让我们加密Certbot来重新生成SSL证书,但是没有重新加载Apache2。这导致半天内没有功能域。我想让这个自动化。怎么做呢?
这是我当前的Certbot CRON文件/etc/cron.d/certbot:
# /etc/cron.d/certbot: crontab entries for the certbot package
#
# Upstream recommends attempting renewal twice a day
#
# Eventually, this will be an opportuni
我有两个shell脚本-一个调用另一个脚本。callouter.sh,callscript.sh.
callouter.sh:
export oraSchemaPass='scott/tiger'
echo 'This script is about to run another script'
sh ./callscript.sh
callscript.sh:
sqlplus -S ${oraSchemaPass} @/home/scripts/callscript.sql
callscript.sql是:
set pagesize 1000
select *
我的aaa.sh文件中有这两行代码:
#!/bin/bash
chmod +x /home/tot/*.html
当我在亚马逊EC2 Linux上运行它时:
$ sh aaa.sh
我收到了这样的消息:
chmod: cannot access ‘\r’: No such file or directory
我为这个问题找了很多答案。我发现的大多数答案都包括使用rc.local文件禁用相应设备的命令。我尝试过这种方法,但不幸的是,它不起作用。在每一家初创公司,我都有蓝牙和背光。
这是我的/etc/rc.local文件的当前状态:
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
我正在尝试从我的php启动vnc4server。到目前为止,它是从一个start.sh中运行的
vncserver -geometry 1000x800 -depth 24
export HOME=/home/psych
cd /home/psych/mw3/Infected/
screen -d -m bash -c "export DISPLAY=:1 ; wine iw5mp_server.exe +params...";
在我的apache2 error.log中,我有以下内容:
You will require a password to access your de