Skip to content

the luash model can't work , please help me solve this problem #7

@TaoTaoFu

Description

@TaoTaoFu
th> local sh = require('sh')
                                                                      [0.0001s]
th> sh
function: 0x410888b0	
                                                                      [0.0001s]
th> local dockerbusybox = sh.command('docker', 'run', 'busybox')
[string "local dockerbusybox = sh.command('docker', 'r..."]:1: attempt to index global 'sh' (a function value)
stack traceback:
	[string "local dockerbusybox = sh.command('docker', 'r..."]:1: in main chunk
	[C]: in function 'xpcall'
	/home/tao/Datas/torch/install/share/lua/5.1/trepl/init.lua:679: in function 'repl'
	...atas/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:204: in main chunk
	[C]: at 0x004065c0	
                                                                      [0.0002s]
th> dockerbusybox('echo', 'hello')
sh: 1: dockerbusybox: not found

                                                                      [0.0027s]

When I installed the sh as the command

   "luarocks install --server=http://luarocks.org/dev luash "

It's successful , but when I run the example as above , the problem occured .

I don't know how to solve it, please help me sovle this problem. Thanks in advance ~ : )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions