When I submit the job from this directory, it fails :
nico@admin:~/oar$ oarstat
Job id S User Duration System message
--------- - -------- ----------------- ------------------------------------------------
2 W nico 0:00:00 R=2,W=1:0:0,J=B
nico@admin:~/oar$ oarstat
Job id S User Duration System message
--------- - -------- ----------------- ------------------------------------------------
2 L nico 0:00:00 R=2,W=3660,J=P,Q=default
```console
nico@admin:~/oar$ oarstat
nico@admin:~/oar$
```console
nico@admin:~/oar$ cat ../OAR.2.stderr
/bin/bash: line 1: infinite.oar: command not found
If i go back to my home directory and relaunch it :
nico@admin:~$ oarstat
Job id S User Duration System message
--------- - -------- ----------------- ------------------------------------------------
3 W nico 0:00:00 R=2,W=1:0:0,J=B
nico@admin:~$ oarstat
Job id S User Duration System message
--------- - -------- ----------------- ------------------------------------------------
3 R nico 0:00:02 R=2,W=3660,J=P,Q=default
This time it runs, and the output is good :
nico@admin:~$ cat OAR.3.stdout
hi !
hi !
hi !
hi !
...
Hi,
I have a strange behavior according paths of submission. I wrote an infinite loop in bash that outputs "hi !" every seconds forever :
And I wrapped it in an OAR submission script :
I'm in oar subdirectory of my home user :
Where the two previous files belong.
When I submit the job from this directory, it fails :
If i go back to my home directory and relaunch it :
This time it runs, and the output is good :