What I want to do is... I have used PAPERCLIP to upload the file in server. for this i have used some shell scripts. now i want that when user browses for a file and clicks on upload button then from that moment i want to record time. and if process is still going on and specified time (suppose 5 seconds) expired, i want to kill that process. Now please tell me how to accomplish it?
I m using Process.pid. but if i m using 2 client window to access the website. Both window r displaying same process id.
Can anybody tell me how to kill process in ruby on rails after a specific time (like 2 seconds)? In rails different user can access website from their browser. So i want to create seperate Process id for each user n want to kill it once the specified time expires. I think it can be done with stop watches to specify the time. And for sparate process id i can use thread concept.