-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Description
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 ~ : )
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels