Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Path handling of submission #20

Open
Nyk0 opened this issue Jul 20, 2022 · 0 comments
Open

Path handling of submission #20

Nyk0 opened this issue Jul 20, 2022 · 0 comments

Comments

@Nyk0
Copy link

Nyk0 commented Jul 20, 2022

Hi,

I have a strange behavior according paths of submission. I wrote an infinite loop in bash that outputs "hi !" every seconds forever :

nico@admin:~/oar$ cat infinite.sh
#!/bin/bash

while true
do
        echo "hi !"
        sleep 5
done

And I wrapped it in an OAR submission script :

nico@admin:~/oar$ cat infinite.oar
#!/bin/bash -l
#OAR -l nodes=1/cpu=2

cd /nfsvol/homes/nico/oar/
./infinite.sh

I'm in oar subdirectory of my home user :

nico@admin:~/oar$ pwd
/nfsvol/homes/nico/oar

Where the two previous files belong.

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 !
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant