Quote:
Originally Posted by
edstevens
This may or may not end up being a strictly 'scripting' issue, but I'll start here.
Rest assured, it is scripting.
Quote:
but it would be nice to be able to append the current date/time to each. While ultimately what I need is to establish the high and low usage points during a week, but would be nice to also see the pattern.
No problem: the commands you have in cron now go into a script, along with a call to "/usr/bin/date". You might probably want to put the output of both commands into variables and mince them through some text filter (awk, sed, ... pick your choice) to achieve the output format you want. Test the script on the command line until you are satisfied with its output. It should output exactly one line.
Then put into cron a call to your script instead of the call to "df" with a redirection as you already had it.
Quote:
but I'm not the SA and don't have root access.
You don't have to be. Every user has his own crontab (not sure where it is located in Oracle Linux - in AIX it is located in "/var/spool/cron/crontabs/<user>" and probably it is in some similar location). Put it there and you are all fine. It is theoretically possible to block a users access to the cron facility ("/etc/cron.deny"), but this is rarely done.
If you need help writing such a script, report back - i didn't want to spoil the fun of writing it yourself.
I hope this helps.
bakunin