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 ...
- 03-21-2010 #1Just Joined!
- Join Date
- Jun 2008
- Posts
- 58
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
- 03-21-2010 #2
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.


Reply With Quote