Sponsored Content
Full Discussion: Search Files In Unix Servers
Top Forums UNIX for Dummies Questions & Answers Search Files In Unix Servers Post 302132929 by CWilkinson on Tuesday 21st of August 2007 03:27:27 AM
Old 08-21-2007
first:
touch /directory/list1
touch /directory/list2
ls > directory/list1

then continually run this:

ls /directory/ > directory/list2
diff /directory/list1 /directory/list2 >> /logs/directorylog.log

If there is a difference between the lists then this will show up in the directorylog.log file.

Good luck scripting the mail commands and triggers. It should be fairly simple.
 

9 More Discussions You Might Find Interesting

1. HP-UX

Bouncing Unix Servers

Hi there, I was wondering if any of you good people out there could answer these question: A - why Unix servers are bounced once a in while in commercial environments? B - in what circumestances Unix Server are bouced? Many thanks for your time. Kind regards MH (17 Replies)
Discussion started by: mhossien
17 Replies

2. UNIX for Dummies Questions & Answers

re-associating 2 HP UNIX servers

Hello, i am new to both this forum and UNIX as well; i am working at a local cancer center trying to reassociate 2 UNIX server systems that i am unfamiliar with; Both C3600 workstations were associated, however they were disassociated and need to be reassociated so programs can be accessed on... (0 Replies)
Discussion started by: RarisRSX
0 Replies

3. UNIX for Advanced & Expert Users

Search files with specfic extention and later search content

Hi, I would appriciate if somebody can help me figure out how to search for all the *.xml file under a specific directory and subdirectroies (/home/username) and later search of content "<start>" inside the xml file returned by search. -Lovin.V (2 Replies)
Discussion started by: lovi_v
2 Replies

4. Shell Programming and Scripting

unix servers

hi, anyone please explain ab the unix servers thanks in advance Satya (2 Replies)
Discussion started by: Satyak
2 Replies

5. UNIX for Dummies Questions & Answers

Copying files from unix servers to other locations e.g. C directory

Hi, I am just wondering is it possible to move or copy a file from a UNIX server to a different location e.g. the C drive on a computer? I have used the cp command to move files to different locations on unix servers but it would be handy to move a file to my C drive. I am currently... (3 Replies)
Discussion started by: crunchie
3 Replies

6. SuSE

Search all files based on first and in all listed files search the second patterns

Hello Linux Masters, I am not a linux expert therefore i need help from linux gurus. Well i have a requirement where i need to search all files based on first patterns and after seraching all files then serach second pattern in all files which i have extracted based on first pattern.... (1 Reply)
Discussion started by: Black-Linux
1 Replies

7. Shell Programming and Scripting

Shell script to search a keyword in six different servers

Hello, I need a shell script which takes search keyword as input and then searches logs in six different servers and provide me the logs where in it found the keyword. Can anyone help???? (1 Reply)
Discussion started by: tomlui2010
1 Replies

8. Solaris

Need to transfer files between 2 UNIX servers, with same folder permission

I need to transfer directories/files between 2 Unix servers, with same folder permission. I tried scp, but it retains the the permissions, but changes the owner of the directory/file to the user used to copy them to the destination. I don't want that to happen. If possible without any other... (6 Replies)
Discussion started by: Pandee
6 Replies

9. Shell Programming and Scripting

Search files in UNIX based on execution

Hi, I have a UNIX script to fetch all the files for current day. so I am using code-- "files=($(find x.lst -maxdepth 1 -type f -daystart -mtime -1))". But this is not going to work if my job starts at 11 PM and continues till 1AM. In tht case I will loose all files between 11PM to 12AM. Is there... (3 Replies)
Discussion started by: usrrenny
3 Replies
qstart(8B)								PBS								qstart(8B)

NAME
qstart - start pbs batch job processing at a destination SYNOPSIS
qstart destination ... DESCRIPTION
The qstart command directs that a destination should process batch jobs. If the destination is an execution queue, the server will begin to schedule jobs that reside in the queue for execution. If the destination is a routing queue, the server will begin to route jobs from that queue. In order to execute qstart, the user must have PBS Operation or Manager privilege. OPERANDS
The qstart command accepts one or more destination operands. The operands are one of three forms: queue @server queue@server If queue is specified, the request is to start that queue at the default server. If the @server form is given, the request is to start all queues at that server. If a full destination identifier, queue@server, is given, the request is to start the named queue at the named server. STANDARD ERROR
The qstart command will write a diagnostic message to standard error for each error occurrence. EXIT STATUS
Upon successful processing of all the operands presented to the qstart command, the exit status will be a value of zero. If the qstart command fails to process any operand, the command exits with a value greater than zero. SEE ALSO
pbs_server(8B), qstop(8B), and qmgr(1B) Local qstart(8B)
All times are GMT -4. The time now is 08:30 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy