From: Jason LeDuc (jleduc443@yahoo.com)
Date: Tue Aug 09 2005 - 07:46:06 EDT
Hello Sun Managers
Anyone have any suggestions to how one might incorporate the following scenario into a shell script.
1 - Script looks for a series of files
/etc/inetd.conf*DATE
2 - Script reviews the files and determines which was created last
username@solarishost >ls -la /etc/inetd.conf*
lrwxrwxrwx 1 root other 17 Feb 12 13:53 /etc/inetd.conf -> ./inet/inetd.conf
-r--r--r-- 1 root other 7135 Jul 13 10:47 /etc/inetd.conf.2005-Jul-13-10:47:48
-r--r--r-- 1 root other 7266 Jul 13 10:49 /etc/inetd.conf.2005-Jul-13-10:49:24
-r--r--r-- 1 root other 7377 Jul 13 10:50 /etc/inetd.conf.2005-Jul-13-10:50:10
-r--r--r-- 1 root other 7135 Jul 14 10:08 /etc/inetd.conf.2005-Jul-14-10:08:56
3 - Find the file touched last inetd.conf.2005-Jul-14-10:08:56 and copies it back to /etc/inetd.conf
Any help or suggestions would be appreciated.
Thank you in advance.
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:31:15 EDT