"exit" command on script

Asked by daniel camargo

Dear Experts,

Maybe its a naive question. I am trying to run a script on the friendly framework many times with the help of another python-script but the command "exit" on the .txt script does not work and then the python script stop in each run. How I can write "something" on the script.txt in order to leave to the shell mode?

Thanks in advance.

Question information

Language:
English Edit question
Status:
Solved
For:
MadAnalysis 5 Edit question
Assignee:
No assignee Edit question
Solved by:
Benjamin Fuks
Solved:
Last query:
Last reply:
Revision history for this message
Best Benjamin Fuks (fuks) said :
#1

Hi Daniel,

You can start madanalysis as
 ./bin.ma5 -s <your-script-file>
MadAnalysis5 will then exit automatically.

Regards,

Benjamin

On 16 Nov 2016, at 23:32 , daniel camargo <email address hidden> wrote:

> New question #404147 on MadAnalysis 5:
> https://answers.launchpad.net/madanalysis5/+question/404147
>
> Dear Experts,
>
> Maybe its a naive question. I am trying to run a script on the friendly framework many times with the help of another python-script but the command "exit" on the .txt script does not work and then the python script stop in each run. How I can write "something" on the script.txt in order to leave to the shell mode?
>
> Thanks in advance.
>
> --
> You received this question notification because you are an answer
> contact for MadAnalysis 5.

Revision history for this message
daniel camargo (dacamargov) said :
#2

Thanks Benjamin Fuks, that solved my question.