Re: Script execution after window close

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 2012-03-04 at 11:29 -0500, Govinda wrote:

> >>> in fact....I really need to remove the file ( which will be created for
> >>> every access - making a copy from another location ). I can't leave that
> >>> file alone for ever in the user disk space! :(
> >> 
> >> Fine, so delete it after a period of inactivity
> > 
> > ok..I have script which will run based on  some values  in "user's" homedir. In fact I have tried to run the script from a various locations; but it didn't work as expected like it run from each users homedir. So, when the user access the page, it will copy the actual script to the user's homedir and executes it. I don't want to leave it there for ever; so I have to remove it from there when the user close the browser ( or after a period of in activity ). But I don't know how to code it :( 
> 
> My suggestion is to sort out the real issue, rather than try to "fix it" with the workaround of copying that file to "each user's homedir".  It sounds like you are just adding unnecessary complexity to your work.  
> 
> Maybe make a new post/thread where you describe THAT issue very carefully.. and what you have tried that is not working the way you thought it should.  So far it is not clear enough to me anyway - to help.  But that could be because of my shortcomings more than your post's shortcoming; I am not expert on many topics covered on this list, especially in the area of managing your webserver.
> 
> -Govinda


To add to what Govinda said, the real problem does indeed seem to be
that you're using this hack in order to make your code work, and sorting
that would be far more beneficial to you in the long run.

On first thoughts, it sounds like a path issue somewhere. If the script
isn't run as the user but is just run as the same user from different
users directories, then it's probably not a problem with the PATH
environment variable (assuming your secondary script is some kind of
Bash script). Let's see what you're doing with that and see if we can
help.

-- 
Thanks,
Ash
http://www.ashleysheridan.co.uk



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux