in Uncategorized

Monitor a running process on a ubuntu server

The use case I had for this was when I wanted to copy over a large data from one server to another and this was going to take a couple of hours.

So I just started the rcyncas a background process on the server and used the following command to monitor the process output from time to time.

sudo strace -e open $(ps -o lwp= -LC rsync | sed 's/^/-p/')

Write a Comment

Comment