The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




Thread: Logs
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 02-05-2006
charbel charbel is offline
Registered User
  
 

Join Date: Feb 2006
Posts: 41
Hi again and thanks for your help.

lets say i have a username of "charbel" and the default home directory of that user is "server/logs" from where he can get information by using the "grep" command on any file hw would like to look in in that specific home directory. Now what i have understand from you is that i have to create a .profile for each user and in that profile i have to include the command that u have just gave me in the above reply, right?!!
Can you provide me with a sample of how would the script file look like ( the .profile and where shall that .profile to be located???...)
i know i am asking for too much but i need it on urgent basis and sometimes i have the feeling i will not be able to do it and finish it early as required.

Thanks again for your help.