Find the answer to your Linux question:
Results 1 to 2 of 2
I started a 'dd copyíng' of one disk drive to another. Both disks are hooked to a remote machine and I initiated the dd command by ssh_ing into it. I ...
  1. #1
    Just Joined!
    Join Date
    Jun 2008
    Posts
    58

    Question shell script to monitor process started on remote machine

    I started a 'dd copyíng' of one disk drive to another. Both disks are hooked to a remote machine and I initiated the dd command by ssh_ing into it.
    I have to shut down the box from which i initiated the ssh session.
    Is there any way I can keep monitoring the status (shell script)of the copy process, ie know when the dd command terminates and whether it terminated successfully .
    I could then ssh into the macine from another box and still know the status.
    any ideas?

    David

  2. #2
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,096
    If you did not "screen" the dd, then you dont need to worry about its progress anymore.
    The dd did not finish succesfully,
    as you killed it by shutting down your local machine (that initiated the ssh session).

    You can use "screen" for your purpose.
    - ssh into the remote machine
    - screen
    - dd
    - <Ctrl>+<a> d

    You can now safely logout.
    To re-attach to the screen session:
    - screen -list
    - screen -r <screen session number>
    You must always face the curtain with a bow.

Posting Permissions

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