sidney wrote:
>
> This is some good information!
>
> Could you tell me more about scripts
> and how to schedule this script ?
This isn't actually a script, it's just a simple command. A script is a file which contains a number of commands which are executed one after the other, or possibly in response to certain conditions. When scripts start to get more complex, they become computer programs, and can be decidedly non-trivial to write and maintain!
Nathan's suggested that the command should run regularly by the "cron" system. The cron system (it's a short name for "chronological", i.e. time-related) is used on Linux and other Unix systems to schedule tasks to run regularly. For instance, it's used by our tape backup system to schedule backups daily, and by our mail fetching routines to check mail at the specified intervals (if you use ETRN/multidrop).
Any good book on Unix system administration should explain the cron system for you.
> do you execute it from the useraudit.html web page or does it
> run it's own and show the results on that web page.
It runs on its own, and the output (which you'd normally see on the screen when you run the command from the command line) are instead directed to the web page.
Nathan's got the output going to an HTML file, but I don't think that will work. It would be much better to redirect it to useraudit.txt so the web browser you use to view it will know it's a plain text file, not a prettified HTML file with all the tags and so forth. If you call the file useraudit.html your web browser will probably display the whole thing as one long line all strung together, rather than each user on her own line.
This topic's getting pretty technical for the General Discussion forum, though, and is probably better suited to the developer mailing list.
K.