다음과 같은 파일 배포가 있습니다.
samuel@samuel-TM1607:~/Documents/Fisica/19-20/Radiactividad/Prácticas/Practicas-onteCarlo0/GAMMA/prueba$ ls ../
detector-1.in GAMMA-Resultados penmain-mac.x prueba
detector.geo NaI.mat penmain-W32.exe
Fe.mat penmain-linux.x penmain-W64.exe
실행 파일이 아닌 다른 모든 파일과 ".in"을 입력으로 읽어야 하는 "penmain-linux.x"를 실행하고 싶습니다. 모든 출력 파일을 "prueba" 폴더로 이동하고 싶습니다.
나는 이미 다음과 같이 "prueba"에서 실행을 시도했습니다.
samuel@samuel-TM1607:~/Documents/Fisica/19-20/Radiactividad/Prácticas/Practicas-onteCarlo0/GAMMA/prueba$ ../penmain-linux.x < ../detector-1.in
하지만 나는 얻는다
Initialising PENGEOM ...
At line 275 of file pengeom.f (unit = 15, file = 'detector.geo')
Fortran runtime error: End of file
내 생각엔 프로그램이 내부에서 호출하는 다른 입력 파일이 "prueba" 폴더에 없기 때문인 것 같습니다.
그러면 어떻게 해야 합니까?
미리 감사드립니다!
편집: 프로그램을 그대로 실행하면 이미지와 동일한 폴더에 모든 파일이 표시됩니다.