nohup problem

Asked by A.Hayreter

Hi MG5 support team,

I encounter a weird nohup related problem. I am working with MG5_aMC_v2_1_1
I give my process and generate events with the following command:

./bin/mg5_aMC testrun.mg5

where testrun.mg5 file contains the following lines:

import model NewModel_UFO
generate p p > ta+ ta- NP=2 ,\
(ta+ > vt~ mu+ vm) ,\
(ta- > vt mu- vm~) @1
output NewModel
launch
set Lamb 1000
set dtBRe 10
set dtBIm 10
set WTA 2.270000e-05
set nevents 1000
set ebeam1 7000
set ebeam2 7000
set cut_decays F
done

when I run this it works quite well, but when I run this with "nohup" :

nohup ./bin/mg5_aMC testrun.mg5

then I have the following error during event generation:

....
generate_events run_01
^[[1;31mCommand "generate_events run_01" interrupted with error:
IOError : [Errno 9] Bad file descriptor
Please report this bug on https://bugs.launchpad.net/madgraph5
More information is found in 'ME5_debug'.
Please attach this file to your report.^[[0m
.....

If I use "launch -f" in .mg5 file then MG5 discards further settings in param and run cards.

Need help please.

Question information

Language:
English Edit question
Status:
Solved
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Solved by:
Olivier Mattelaer
Solved:
Last query:
Last reply:
Revision history for this message
Best Olivier Mattelaer (olivier-mattelaer) said :
#1

nohup is incompatible with our code.
We suggest that you use screen instead.

Cheers,

Olivier
On Jun 4, 2014, at 8:51 PM, A.Hayreter <email address hidden> wrote:

> New question #249777 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/249777
>
> Hi MG5 support team,
>
> I encounter a weird nohup related problem. I am working with MG5_aMC_v2_1_1
> I give my process and generate events with the following command:
>
> ./bin/mg5_aMC testrun.mg5
>
> where testrun.mg5 file contains the following lines:
>
> import model NewModel_UFO
> generate p p > ta+ ta- NP=2 ,\
> (ta+ > vt~ mu+ vm) ,\
> (ta- > vt mu- vm~) @1
> output NewModel
> launch
> set Lamb 1000
> set dtBRe 10
> set dtBIm 10
> set WTA 2.270000e-05
> set nevents 1000
> set ebeam1 7000
> set ebeam2 7000
> set cut_decays F
> done
>
> when I run this it works quite well, but when I run this with "nohup" :
>
> nohup ./bin/mg5_aMC testrun.mg5
>
> then I have the following error during event generation:
>
> ....
> generate_events run_01
> ^[[1;31mCommand "generate_events run_01" interrupted with error:
> IOError : [Errno 9] Bad file descriptor
> Please report this bug on https://bugs.launchpad.net/madgraph5
> More information is found in 'ME5_debug'.
> Please attach this file to your report.^[[0m
> .....
>
> If I use "launch -f" in .mg5 file then MG5 discards further settings in param and run cards.
>
> Need help please.
>
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Revision history for this message
A.Hayreter (alperhayreter) said :
#2

Thank you Olivier, screen command solved my issue.

Best regards.

Revision history for this message
A.Hayreter (alperhayreter) said :
#3

Thanks Olivier Mattelaer, that solved my question.