Re: command line question

Página superior
Adjuntos:
Obtener este mensaje como un correo
+ (text/plain)
+ (text/plain)
Eliminar este mensaje
Responder a este mensaje
Autor: der.hans
Fecha:  
A: Main PLUG discussion list
Temas nuevos: Re: command line question SOLVED Thanks!
Asunto: Re: command line question
Am 29. Jan, 2013 schwätzte so:

moin moin Joe,

>
> Thanks James and Hans, but I still can't get either to work.
>
> James: gwenview filename.jpg > /dev/null 2>&1 &
> Hans: gwenview filename.jpg 2>/dev/null &
>
> Both examples work to cause gwenview to open filename.jpg without
> any error messages. However, when I close the terminal window,
> gwenview also closes.


Sounds like your terminal does the wrong thing :).

Try this:

nohup gwenview filename.jpg >/dev/null 2>&1 &

ciao,

der.hans

> What am I doing wrong?
>
> -----------
>> Put an '&' at the end to run the command in the background,
>> then you can close the terminal.
>>
>> gwenview filename.jpg 2>/dev/null &
>>
>> This will also work for within a script if you want the script
>> to move on directly after launching gwenview.
>
>
>
>
> ---------------------------------------------------
> PLUG-discuss mailing list -
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>


-- 
#  http://www.LuftHans.com/        http://www.LuftHans.com/Classes/
#  "The babys blood type? Human, mostly."  -- Orson Scott Card
---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.phxlinux.org/mailman/listinfo/plug-discuss