# Linux command nohup and Root

**URL:** <https://root-forum.cern.ch/t/linux-command-nohup-and-root/4799>\
**Category:** ROOT\
**Created:** [May 17, 2007, 2:00pm UTC](https://root-forum.cern.ch/t/linux-command-nohup-and-root/4799 "2007-05-17T14:00:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![cicciodevoto](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/c/db5fbb/32.png) [@cicciodevoto](https://root-forum.cern.ch/u/cicciodevoto)\
**Post date:** [May 17, 2007, 2:00pm UTC](https://root-forum.cern.ch/t/linux-command-nohup-and-root/4799/1 "2007-05-17T14:00:23Z")

</div>

Hi all,  
I have the necessity of closer the shell without closer Root.  
If I use the linux command nohup, I write in the shell:

```auto
nohup root
```

and I close the shell, I obtain in the nohup.out file the result:

```auto
Error in <RootX11IOErrorHandler>: fatal X11 error (connection to server lost?!)

****Save data and exit application****
```

How can I do?  
Thanks  
Ciccio

---

<div class="post-metadata">

**Author:** ![Axel](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/axel/32/11084_2.png) [@Axel](https://root-forum.cern.ch/u/Axel)\
**Post date:** [May 17, 2007, 3:03pm UTC](https://root-forum.cern.ch/t/linux-command-nohup-and-root/4799/2 "2007-05-17T15:03:39Z")

</div>

Try nohup root -b. By the way, screen is far more powerful than nohup.  
Axel.

---

<div class="post-metadata">

**Author:** ![cicciodevoto](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/c/db5fbb/32.png) [@cicciodevoto](https://root-forum.cern.ch/u/cicciodevoto)\
**Post date:** [May 24, 2007, 10:21am UTC](https://root-forum.cern.ch/t/linux-command-nohup-and-root/4799/3 "2007-05-24T10:21:17Z")

</div>

> [@Axel](#):
>
> Try nohup root -b. By the way, screen is far more powerful than nohup.  
> Axel.

Hi Axel,  
I have tried but Root is closed and I don’t obtain error messages in the file nohup.out.  
Perhaps the problem is that the computer where Root is intalled is a farm and I am connected by means of an other computer… Is it possible?  
Thanks  
Francesco

---

<div class="post-metadata">

**Author:** ![Axel](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/axel/32/11084_2.png) [@Axel](https://root-forum.cern.ch/u/Axel)\
**Post date:** [May 28, 2007, 2:21pm UTC](https://root-forum.cern.ch/t/linux-command-nohup-and-root/4799/4 "2007-05-28T14:21:43Z")

</div>

Hi,  
it might be that ROOT needs to access a real terminal, and stops execution if the terminal is blocked (which is the case for nohup, if I remember correctly). Did you try screen?  
Axel.

---

<div class="post-metadata">

**Author:** ![JohnOdom](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/j/7bcc69/32.png) [@JohnOdom](https://root-forum.cern.ch/u/JohnOdom)\
**Post date:** [September 3, 2019, 6:16am UTC](https://root-forum.cern.ch/t/linux-command-nohup-and-root/4799/5 "2019-09-03T06:16:25Z")

</div>

```auto
$ cat /tmp/test1.sh /tmp/test2.sh
#!/bin/sh

/tmp/test2.sh &
sleep 5

#!/bin/sh

echo "test"

kill -HUP $

```

Try using this command and try or check linux command below

_[https://www.puttygen.com/linux-commands](https://www.puttygen.com/linux-commands)_

---

<div class="post-metadata">

**Author:** ![Axel](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/axel/32/11084_2.png) [@Axel](https://root-forum.cern.ch/u/Axel)\
**Post date:** [September 4, 2019, 10:57am UTC](https://root-forum.cern.ch/t/linux-command-nohup-and-root/4799/6 "2019-09-04T10:57:01Z")

</div>

Closed on September 4, 2019, 10:57am UTC


