Quote:
Originally Posted by neoanomally
EDIT: Never Mind; I figured it out. Thanks again!!
who am i; top | grep [program_name] >> /var/log/script.log
|
Sorry but that doesn't make sense. 'whoami' and 'who' are valid standard commands but 'am' and 'i' are not: he just gave you an example how to redirect stdout to a file.
Quote:
Originally Posted by neoanomally
I have an application and when that application is accessed there is a script that runs.
|
There's a lot of variables here like:
- What is the application? Just tell us the name OK?
- How or when is the application run? On local user login, command line, via CGI, cron job, when the Three Horsemen of the Apocalypse enter the bar, etc, etc?
- Does the script run a for a very short period of time?
- Does it run independent of the application or does the application run it?
- Who does the script run as?
- Does it access different resources during its run?
- Can you modify the script?
...and all of these matter.
The more we know about the application and its relation to the script the easier it will be to come up with a way less kludgy solution.