Results 1 to 4 of 4

Thread: fifo question. Probably.

  1. #1
    Senior Member
    Join Date
    Sep 2002
    Posts
    421

    fifo question. Probably.

    Hey everyone.

    Here's the setup: I'm running bittorrent on a remote machine and I want to log in every once in a while to check what it's doing and then disconnect. So I'm running btdownloadheadless nohup'ed. That works fine and all. However, the nohup.out file keeps growing rapidly. I didn't think about that when I first started this and on re-connect I found a nohup file of close to 100MB

    So what I'm doing now is to run a script that execute echo ''>nohup.out thus resetting the nohup.out file every so many minutes. This works fine but I find it very inelegant. So I googled a bit and thought a named pipe would be the proper solution. So I made the nohup.out file a named pipe with mkfifo nohup.out and thought that would be it. Errrr. Doesn't work. I just can't seem to tail the contents of nohup.out. Seems like nothing gets written to it.

    Sure I can use screen and run btdownloadcurses which actually works a lot better. It's just that I've gotten curious why the fifo thing won't work.

    Any ideas?

  2. #2

    Re:fifo question. Probably.

    my vote is for screen.

    i don't think you can tail a fifo but you can cat it. try catting it and seeing if you see the contents.

  3. #3
    Senior Member
    Join Date
    Sep 2002
    Posts
    421

    Re:fifo question. Probably.

    [quote author=gorn link=board=1;threadid=7491;start=0#msg68813 date=1059929157]
    my vote is for screen.

    i don't think you can tail a fifo but you can cat it. try catting it and seeing if you see the contents.
    [/quote]

    Ok, now I feel really stupid . cat works. Thanks.

    edit: Well actually it didn't work. Cause when I quit the cat process with ^C this got send to the btdownloadheadless process and it quit.

    However, less -f seems to work.

    But yeah, screen is much more functional. I just wanted to know why I couldn't read from the pipe.

  4. #4

    Re:fifo question. Probably.

    i have syslog write log files to a pipe in my home dir, then i cat this pipe to see the logs

    dunno why control C quit btdownloadheadless

Similar Threads

  1. 1 of my many question to come
    By gentoo in forum Linux - General Topics
    Replies: 1
    Last Post: 11-07-2004, 07:37 PM
  2. Web Question
    By GhostDawg in forum Linux - Hardware, Networking & Security
    Replies: 5
    Last Post: 02-08-2004, 08:16 AM
  3. A question
    By mcdougrs in forum General Chat
    Replies: 25
    Last Post: 12-14-2002, 03:23 PM
  4. KDE 2.2.2 Question
    By stryder144 in forum Linux - Software, Applications & Programming
    Replies: 5
    Last Post: 11-23-2002, 08:06 AM
  5. SSH question
    By binary_boy in forum Linux - Hardware, Networking & Security
    Replies: 2
    Last Post: 05-16-2002, 08:46 AM

Bookmarks

Posting Permissions

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