使用sbt自动运行scala程序

sbt run

cd your-project-pwd

sbt ‘run-main your-main’ > out.txt

cron table

*6**** /usr/batch/test1

每天6点执行

test1脚本中即可添加sbt run的内容。

 

栗子:

 

 

Leave a Comment

您的电子邮箱地址不会被公开。 必填项已用*标注