The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com



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

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 3 Weeks Ago
asalman.qazi asalman.qazi is offline
Registered User
  
 

Join Date: Jul 2009
Posts: 51
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
  #2 (permalink)  
Old 3 Weeks Ago
methyl methyl is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 1,163
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
I don't recall how to check the licence files, but somebody on this forum will.
  #3 (permalink)  
Old 3 Weeks Ago
jlliagre jlliagre is offline Forum Advisor  
ɹǝsn sıɹɐlosuǝdo
  
 

Join Date: Dec 2007
Location: Paris
Posts: 1,383
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.
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:47 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0