添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
愉快的猴子  ·  Pysider6 QFileDialog ...·  1 年前    · 
低调的饭盒  ·  linux ...·  1 年前    · 
个性的树叶  ·  Strapi 及其类似产品 & ...·  1 年前    · 
root A2.c
root A2.c

When I try to source 1.sh , root will be started to run A1.c, but when it’s finished, it’s stucked there and will not go to A2.c. It needs a manuall work to type ‘.q’ , how can I avoid this manual typing work? e.g. is there a way to quit ROOT automatically?

Thanks,Gang

[quote=“crazyqg”]Dear ROOT Expert:

I have a bash file to run several root files together:

cat 1.sh :

root A1.c
root A2.c
root A2.c

When I try to source 1.sh , root will be started to run A1.c, but when it’s finished, it’s stucked there and will not go to A2.c. It needs a manuall work to type ‘.q’ , how can I avoid this manual typing work? e.g. is there a way to quit ROOT automatically?

Thanks,Gang[/quote]

You can run root with the -q option

root -q A1.C

Will run the macro and then quit without having to change the macro.

Cheers,
Charles