I am an Oracle Database Administrator working in a SAS environment
i want to know what script to write to keep 14 days of the archive logs from my SAS server in a new folder.
|
Quote:
You can EASILY find many bash tutorials...start there..there's even one in my posting signature. Read the man page on the find command, and on the mv command. |
Need help urgently please!!!
i am comparing bab_grid_userlist.txt file to /etc/passwd file for user ids. If there is a user id in the bab_grid_userlist.txt file that does not have a Unix id in the passwd file I want it to send an email to babunixserver@vision.com. This should be setup as a weekly job that runs on monday mornings. please any help on this one.
|
Quote:
And now that we know what you WANT, why don't you show us what YOU have done to accomplish it, and tell us where you're stuck? We're not going to write your scripts for you. Also, there are many examples on how to set up a cron job to run every Monday you can easily find with Google: http://linux.die.net/man/5/crontab |
Need help urgently please!!!
i am comparing bab_grid_userlist.txt file to /etc/passwd file for user ids. If there is a user id in the bab_grid_userlist.txt file that does not have a Unix id in the passwd file I want it to send an email to babunixserver@vision.com. This should be setup as a weekly job that runs on monday mornings. please any help on this one.
---------- Post added 09-11-13 at 01:04 PM ---------- i am comparing bab_grid_userlist.txt file to /etc/passwd file for user ids. If there is a user id in the bab_grid_userlist.txt file that does not have a Unix id in the passwd file I want it to send an email to babunixserver@vision.com. This should be setup as a weekly job that runs on monday mornings. please any help on this one. Thanks for your post, i know the crontab would go like this: >@weekly 0 9 * * 1 /bin/execute/this/script.sh but i just need to put the remaining pieces together to achieve my goals, like sending the user in d bab_grid_userlist.txt that does not have a Unix id in the passwd file to the email, some help please. |
Quote:
So far, you've not shown that you've done ANY of the 'pieces'. |
Quote:
Code:
which logrotate && man logrotate |
You should post your code. There are different ways.
find and mv could be command useful for this issue. |
All times are GMT -5. The time now is 08:56 PM. |