Find the answer to your Linux question:
Results 1 to 5 of 5
Hi, I need to run the following command on a background: top 1000 -p <PID> >> outfile & It does not work for me. How can I make it work? ...
  1. #1
    Just Joined!
    Join Date
    Oct 2009
    Posts
    2

    how to run TOP command on a background

    Hi,

    I need to run the following command on a background:

    top 1000 -p <PID> >> outfile &

    It does not work for me. How can I make it work?

    I need to start this and then start another script from the same terminal. Do you have a solution?

    Thanks a lot
    Anna

  2. #2
    Linux Newbie
    Join Date
    Nov 2007
    Location
    Planet Earth
    Posts
    152
    You can try 'screen', which opens a new virtual terminal, then you can run any command on that terminal, then press Ctrl+A,D to detach the virtual terminal, go back to the original, and then run other commands.

    Hugo
    EOF

  3. #3
    Just Joined!
    Join Date
    Oct 2009
    Posts
    2

    Will try this

    Thanks for the quick response. Actually I solved my problem by running top with the -b option (batch):

    while true
    ....
    top -b -n 1 -p <PID> >> output &
    ...

    done

    But I will try your solution as well

    Thanks again
    Anna

  4. #4
    Just Joined!
    Join Date
    Oct 2009
    Posts
    1

    Smile How to configure ethernet card in fedora

    I have installed fedora6.0 in my system. This system has onboard ehternet card.
    The ethernet card name is atheros L2 fast ethernet 10/100 . i have downloaded the driver. but i don't know how to install the driver and configure the card.

    I tried some other way..that is not working

    Pls. help me.

  5. #5
    Linux Newbie
    Join Date
    Nov 2007
    Location
    Planet Earth
    Posts
    152
    This is a question out of original topic, start a new thread please.
    EOF

Posting Permissions

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