![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems . |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to find a file named vijay in a directory using find command | amirthraj_12 | UNIX for Dummies Questions & Answers | 6 | 10-25-2008 12:37 PM |
| Little bit weired : Find files in UNIX w/o using find or where command | jatin.jain | Shell Programming and Scripting | 10 | 09-19-2007 06:47 AM |
| help to find find filename usingFile pointer in c | arunkumar_mca | UNIX for Dummies Questions & Answers | 2 | 08-07-2007 10:23 AM |
| command find returned bash: /usr/bin/find: Argument list too long | yacsil | Shell Programming and Scripting | 1 | 12-15-2003 06:38 PM |
| how to find a file in UNIX without find command? | bluo | Shell Programming and Scripting | 3 | 09-24-2003 11:47 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
help with find
I have two servers running Solaris 1.1
now one server is the Live server and the other one is fallback. I discussed previusly on this forum that the live server is running perfectly and the fallback server is not running a process and is stating the error as license expired. now when the date of the fallback srver is changed before 2000 , the server starts running. so it is the case that during Y2K senario some files were added to the live server and people forgot to add the same files on the fallback server . Now i want to confirm that how do i phrase the find command so that it will list all the files that have been added to a server in a particular period. for example list the files that have been added to a server between 1999 and 2000. if this cannot be achieved by find command , is there some other way to do it. Thanks in advance |
|
||||
|
It is possible with "find".
Use "touch" to create two reference files one for the start date ${START} (Jan 1 1999) and one for the end date ${END} (Jan 1 2000 ?). The outline syntax is: Code:
find // -type f \( -newer ${START} -a ! -newer ${FINISH} \) -print
|
|
||||
|
As a file creation date is not recorded, there is no reliable way to detect a file that has been added at some period of time unless the file hasn't be modified afterwards.
Also, not sure about the "find //" suggestion. That should probably be just "find /". In any case, licenses are often based on the hostid which is likely to be (and should be anyway) different between both of the servers. Copying the license file from the working server to the other one won't help in that case. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|