[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [TEKNIK] Autostart af program i terminal + slut med prompt



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Michael Schmidt wrote:
> Den 23.12.2009 kl. 09:46 skrev Michael Schmidt <sslug@sslug>:
> 
>> Den 23.12.2009 kl. 09:24 skrev Kristian Nørgaard <sslug@sslug>:
>>
>>> Hvordan kan jeg automatisk starte et program så det kører i en
>>> terminal og så følgende er opfyldt:
>>>
>>> 1) Når programmet slutter skal jeg have den sædvanlige kommandoprompt
>>> i terminalen
>>>
>>> 2) Ctrl-c skal afbryde mit program og efterlade den sædvanlige
>>> kommandoprompt i terminalen
>>>
>>> Antag f.eks. at mit program er:
>>> echo "start"; sleep 10; echo "slut"
>>>
>>> Jeg har forsøgt med f.eks:
>>>
>>> 1) xterm -hold -e 'echo "start"; sleep 10; echo "slut"'
>>> eller
>>> 2) xterm -e 'echo "start"; sleep 10; echo "slut"; cat'
>>>
>>> ... men det giver hverken før eller siden en kommando prompt...
>> Prøv: xterm -e 'echo "start"; sleep 10; echo "slut"; exit'
> Misforstod vis din intention. Ovenstående lukker nemlig den åbnede xterm
> - beklager vildledningen.

Prøv med:

nohup echo "start"; sleep 10; echo "slut"


- --
Niels Muller Larsen, MSc
Programmer, Teacher

Mob: +45 2040 5740
Web: http://x15.dk
Mail: sslug@sslug
Public key: 0xD4DB4A5E
(http://keyserver.veridis.com:11371/search?q=0xD4DB4A5E)

"Just the facts, Ma'am"
- -- Joe Friday
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFLMe4lbiU629TbSl4RAr+tAKDowPRypBaMgMxJAi7FY6Bft/oOdgCfQvMy
IZFV4PlVAGi3SISOP0n6cDc=
=1JB+
-----END PGP SIGNATURE-----


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2010-01-01, 02:01 CET [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *