C
C
Cuder2014-03-19 16:17:02
linux
Cuder, 2014-03-19 16:17:02

How to close the terminal after running an application via Apache ANT?

Using in ANT, I want to run a command like:
#> evince /home/my.pdf & exit
I try the following code:

<exec executable="/bin/sh">
   <arg value="-c"/>
   <arg value="evince /home/my.pdf &amp; exit"/>
</exec>

The program starts, but closes immediately with the terminal. What needs to be changed so that the program starts and immediately after that only the terminal closes, but not the program itself?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question