Not being able to export number of events into command script
Dear users,
I am trying to generate 100'000 gg > H events by directly executing an .sh script, in which I directly define the directory to such process and number of events. For that I execute in the terminal `./makeEvents.sh gg_to_H 100000`, where makeEvents.sh contains the following lines:
````
process_directory = $1
nevents = $2
export process_directory
export nevents
./bin/mg5_aMC $simulation_
````
and the simmulation_
````
launch $directory_name
shower=Pythia8
detector=Delphes
analysis=ExRoot
0
set nevents $nevents
0
````
the $directory_name is perfectly recognized in this script, whereas the $nevents is not; I obtain the following error:
````
WARNING: Invalid input: Expected number and not '$nevents'
````
It seems like $nevents is not being recognized as an integer. Does anyone know what is the solution to this? Any help would be appreciated!
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Yannick Burkard for more information if necessary.