Aktív témák

  • vtechun

    veterán

    egy linuxos gépen szeretnék nohup segítségével futtatni egy letöltő programot, ugy hogy kilépek miután elindítom, a nohup erre való elvileg, namarmost miutan kilepek a nohup is kilep sajnos..., néha sikerül bennmaradnia, de mintha véletlenül történne sohasem tudom reprodukálni ugyanúgy... lehet le van tiltva a gépen vagymi? elindul minenféle hibaüzenet nélkül, de mégsem fut miután kilépek, sajnos... Előre is köszönöm a válaszokat! Ha lesznek:)...

  • Pizzafutar

    aktív tag

    válasz vtechun #1 üzenetére

    info nohup

    `nohup' runs the given COMMAND with hangup signals ignored, so that the
    command can continue running in the background after you log out.
    Synopsis:

    nohup COMMAND [ARG]...

    If standard output is a terminal, it is redirected so that it is
    appended to the file `nohup.out'; if that cannot be written to, it is
    appended to the file `$HOME/nohup.out'. If that cannot be written to,
    the command is not run. If standard output is not a terminal, then the
    standard output of COMMAND will be the same as that of `nohup'.

    If `nohup' creates either `nohup.out' or `$HOME/nohup.out', it
    creates it with no ''group'' or ''other'' access permissions. It does not
    change the permissions if the output file already existed.

    If standard error is a terminal, it is redirected to the same file
    descriptor as the standard output.

    `nohup' does not automatically put the command it runs in the
    background; you must do that explicitly, by ending the command line
    with an `&'. Also, `nohup' does not change the scheduling priority of
    COMMAND; use `nice' for that, e.g., `nohup nice COMMAND'.

  • vtechun

    veterán

    igen... nem nagyon tudok angolul... ez mit jelent kábé?? vana valami pontos recept, hogy mit kell csinalnom, hogy menjen... ?

  • Seaweed

    csendes tag

    válasz vtechun #3 üzenetére

    En inkabb a screen hasznalatat javasolnam.
    (Mellesleg anno nekem is volt ''ilyen'' problemam a nohup-al..gyorsan montak ismerosok: screen )

  • Pizzafutar

    aktív tag

    válasz vtechun #3 üzenetére

    Hat en sem tudok megszólalni, de magyarra azert leforditom:

    A hohup futtatja az adott parancsot a sighup signál figyelmen kivül hagyásával, igy a parancs folyamatosan fut a háttérben miután kiléptél.

    Ha a stenderd output a terminal, a kimenet át lesz irányitva (hozzáfüzfe) a nohup.out-ba.
    ha ez nem irhato, akkor a $HOME/nohup.out-ba. Ha ez sem irhato, a parancs nem fut!
    Ha a standard output nem terminal, akkor a parancs ugy fut, mintha a nohup nelkül inditottad volna.
    Ha a nohup létrehozza a nohup-out filet, akkor azt group es other eleresi jogok nelkul teszi! Ha a file már létezik, akkor nem változtatja a jogait!
    Ha a standard error a terminál, akkor az át lesz irányitva ugyan abba a fileba, mint a standard output.
    A nohup nem teszi automatikusan a program futását a háttérbe, neked kell azt megtenned, & -el fejezve be a parancsot. A nohup szintén nem változtaja meg a parancs prioritását, ehhez a nice használhato. pl: nohup nice command &

    Szóval, a leiras szerint arra való amire használni akarod!

Aktív témák