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.

  • 3 years later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.