Ask a Question related to Linux / Unix Administration, Design and Development.

  1. #1

    Default nohup stdout

    i have an expect script "E" that telnets to a remote machine and runs
    a script "A" that in turn runs a script "B". B takes a long time to
    run and I wanna run it nohup in case i lose my telnet connection. I'm
    happy with nohup redirecting stdout to nohup.out or some file i
    specify. but i also want to see the output on the screen when the
    script is working. i.e. is there any way to get nohup to display the
    output to my screen in addition to logging it to a file?


    i'd appreciate the help.

    regards,
    sukh
    sukhpreet Guest

  2. Similar Questions and Discussions

    1. tie STDOUT to TextUndo
      Is there anyway to tie STDOUT to a TK::TextUndo widget or somehow call a save method for the TK::Text widget? Ideas and suggestions welcome. ...
    2. Redirect stdout, stderr to file and stdout
      I have a small script that does some admin work for me. What I need to do now is not only have is display information to STDERR and STDOUT but...
    3. redirect stdout
      I need to temporarily redirect standard output to nowhere. Not sure how to do. Suggestions? Thanks, -t0
    4. how to setup "nohup" for remote X-session: i.e., it can temporally disconnected and later resumed in GUI mode?
      Dear all, I need your help. I am a student who do research using Exceed to access Sun workstation in our school to use Cadence EDA software....
    5. cout/printf in nohup.out
      Is there any possibility that the output given by either of cout/printf will not be available in nohup.out when I ran like this $ nohup...
  3. #2

    Default Re: nohup stdout

    On 4 Aug 2004 06:33:31 -0700, sukhpreet
    <sukhpreet76@yahoo.com> wrote:
    > i have an expect script "E" that telnets to a remote machine and runs
    > a script "A" that in turn runs a script "B". B takes a long time to
    > run and I wanna run it nohup in case i lose my telnet connection. I'm
    > happy with nohup redirecting stdout to nohup.out or some file i
    > specify. but i also want to see the output on the screen when the
    > script is working. i.e. is there any way to get nohup to display the
    > output to my screen in addition to logging it to a file?
    >
    nohup whatever | tee nohup.out

    --
    The truth you speak has no past and no future. It is, and that's all it
    needs to be.
    Bill Marcum Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139