[英]How to run a script from command line in DolphinDB
DolphinDB has a console mode, which is very convenient when I'm too lazy to open the browser. DolphinDB具有控制台模式,当我懒得打开浏览器时,这非常方便。 But when I have a bunch of code to run, it would be better to save it to a file and execute like this:
但是,当我有一堆代码要运行时,最好将其保存到文件中并像这样执行:
> ./dolphindb awesome.txt
# or like this
> ./dolphindb < awesome.txt
# or
> cat awesome.txt | ./dolphindb
But none of these works, so I wonder how would I do this properly. 但是这些都不起作用,所以我想知道我该怎么做。
请尝试以下命令
./dolphindb -run awesome.txt
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.