Starting a process and setting the PID - UNIX
#1
Scooby Regular
Thread Starter
Join Date: Mar 2001
Location: Berkshire
Posts: 5,528
Likes: 0
Received 0 Likes
on
0 Posts
![Default](https://www.scoobynet.com/images/icons/icon1.gif)
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
#3
Scooby Regular
Thread Starter
Join Date: Mar 2001
Location: Berkshire
Posts: 5,528
Likes: 0
Received 0 Likes
on
0 Posts
![Default](https://www.scoobynet.com/images/icons/icon1.gif)
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
25 September 2015 07:49 AM