小编Vap*_*zer的帖子

使用“读取变量”的“变量名错误”

我对Linux shell感到困惑。可能是我监督了一些明显的Linux noob。

我只需要运行以下脚本:

#!/bin/bash
echo "Type some Text:"
read var
echo "You entered: "$var
Run Code Online (Sandbox Code Playgroud)

情况如下:

  • 在Windows的VirtualBox中安装Ubuntu Server 14.04
  • 与此软件包一起安装
  • 安装在/ media / buff上的SAMBA
  • 该脚本位于/media/buff/ShellScript/test.sh
  • 通过“ sudo chmod a + x /media/buff/ShellScript/test.sh”使其可执行
  • 其余默认
  • 我在Windows上使用PSPad编辑脚本文件

了一些破折号,但我不明白。以下是一些变体:

使用sh启动

user@Ubuntu:/media/buff/ShellScript$ sh test.sh
Type some Text:
:bad variable nameread var
You entered:
Run Code Online (Sandbox Code Playgroud)

使用bash启动:

user@Ubuntu:/media/buff/ShellScript$ bash test.sh
Type some Text:
': Ist kein gültiger Bezeichner.var (means no valid identifyier)
You entered:
Run Code Online (Sandbox Code Playgroud)

将脚本中的Shebang更改为“#!/ bin / sh”,使用sh启动

user@Ubuntu:/media/buff/ShellScript$ sh test.sh
Type some Text: …
Run Code Online (Sandbox Code Playgroud)

variables bash ubuntu server

4
推荐指数
1
解决办法
7461
查看次数

在Ubuntu上使用sao进行Tryton ERP安装

操作系统:Ubuntu Server 16.04 LTS

我对如何在ubuntu上正确安装Tryton ERP软件感到困惑.当您导航到Tryton网站时,有pip变体:

$ pip install trytond
$ pip install tryton
$ pip install trytond_module_name
Run Code Online (Sandbox Code Playgroud)

AFAIU trytond是服务器部分,tryton是(图形)客户端.现在,在tryton网站上有一个指向Ubuntu包服务器的链接.列出了所有(或至少很多)模块.还有客户端(tryton-client).

为什么没有trytond包?我应该用pip安装trytond然后用apt安装包吗?

接下来就是sao webgui ......为什么这不是一个模块?我设法用pip安装了trytond(在使用lxml之后遇到了一些麻烦).然后我使用以下命令:

erp@trytonMachine:~$ trytond --version
trytond 4.2.0

curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
sudo apt-get install -y nodejs

sudo apt install git
git clone https://github.com/tryton/sao.git
cd sao

sudo npm install -g grunt-cli sudo npm install -g bower
npm install bower install grunt
Run Code Online (Sandbox Code Playgroud)

这些命令似乎运行没有错误.(不知道如何验证)

下面是/etc/tryton/trytond.conf的相关部分

[database]
path = /var/lib/tryton

[jsonrpc]
listen = localhost:8000
data = /home/erp/sao/
# …
Run Code Online (Sandbox Code Playgroud)

python installation ubuntu tryton

2
推荐指数
1
解决办法
3352
查看次数

标签 统计

ubuntu ×2

bash ×1

installation ×1

python ×1

server ×1

tryton ×1

variables ×1