Jump to content

[SOLVED] Process ID


Asheeown

Recommended Posts

Alright, that's it, finally after all this time I have figured it out.  Can't say much for the help but I can say thanks for the attempts for the people who did try like Dark, or Xan.

 

If anyone would like to know, the thing I was trying to accomplish was kill a background process if a user was inactive for a certain amount of time.  I thought the only way possible was to log the process ID when the script was executed and have a cron job kill it if the user was inactive.  I have now thought on the script side.  Now at the top of the script when it refreshes which is every 30 seconds in the background it will check if the user is inactive and if so it will run a die() command.

 

So simple yet for almost a month I couldn't figure it out...solved.

Link to comment
Share on other sites

  • 3 years later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.