Starting a process and setting the PID - UNIX
Hello
I have a tar process that runs for quite a few hours (far too long in other words) on a RHEL4 server. I want to run strace on the process to see what its doing, i dont need to capture 8 hours of output, but i need the very start.
Is there a way of getting the strace output for this without having to cancel the tar (strace -o <file> tar xxxxx xxx)? Can I force the PID of the tar and then monitor that PID straight away ? Or can I get some info from the /proc/PID directory ?
Dave
I have a tar process that runs for quite a few hours (far too long in other words) on a RHEL4 server. I want to run strace on the process to see what its doing, i dont need to capture 8 hours of output, but i need the very start.
Is there a way of getting the strace output for this without having to cancel the tar (strace -o <file> tar xxxxx xxx)? Can I force the PID of the tar and then monitor that PID straight away ? Or can I get some info from the /proc/PID directory ?
Dave
I dont want to strace the tar process for the whole 12 hours as i dont need all the output, just the first 30 odd seconds, and I cant stop the strace and run the tar again.
Dave
Dave
Thread
Thread Starter
Forum
Replies
Last Post
johnnybon
Wheels And Tyres For Sale
7
Sep 25, 2015 07:49 AM



