run a script in background

Asked by Andrea Puglisi

Hi,

is there any possibility of running a simulation without any prompt? I understand that I can run with "yade -n" to avoid graphical interface, but still it need to open a python prompt and wait for my input. I would like to launch it from command line and let it run in background (for instance with final "&").

Any hint? I looked for thin info in the manual, but I could not find it.

Thanks

 Andrea

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Jan Stránský
Solved:
Last query:
Last reply:
Revision history for this message
Best Jan Stránský (honzik) said :
#1

yade -n -x script.py &
Jan

Revision history for this message
Klaus Thoeni (klaus.thoeni) said :
#2

Not sure what you are trying to do but it almost sounds like the batch mode
could be useful:

yade-batch --help

yade-batch sometablefile.table yourscript.py >> logfile.dat &

An example is provided here [1] but you can also set up easier tables or
even run yade-batch without a table file.

HTH Klaus

[1] https://github.com/yade/trunk/tree/master/examples/concrete

On Sat, Nov 18, 2017 at 8:08 AM, Jan Stránský <
<email address hidden>> wrote:

> Question #660871 on Yade changed:
> https://answers.launchpad.net/yade/+question/660871
>
> Status: Open => Answered
>
> Jan Stránský proposed the following answer:
> yade -n -x script.py &
> Jan
>
> --
> You received this question notification because your team yade-users is
> an answer contact for Yade.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~yade-users
> More help : https://help.launchpad.net/ListHelp
>

Revision history for this message
Andrea Puglisi (andreo73) said :
#3

Thanks Jan Stránský, that solved my question.

Revision history for this message
Andrea Puglisi (andreo73) said :
#4

Thanks also to Klaus, but your suggestion (interesting) is more than what I needed.

Andrea