11-01-2002
Check files update
Hi,
I want to monitor a file, and check what has been added to it.
etc: The text file contain "abcdef"
And now it contain "abcdefghi".
I need to know what had been added, is there any function that can do this?
Thx for helping me.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi everybody,
Is there a way to do a stat of files on a ftp server? I have a database which is populated by the contents of these files. I want to setup a crontab to check if there has been an update to these files. If the file has been updated I will download it and then update my database.
... (2 Replies)
Discussion started by: z1dane
2 Replies
2. Shell Programming and Scripting
Hi,
I am a newbie to shell scripting. here is my objective:
1)The shell program should take 2 parameters - ie-> DestinationFolder, WebFolder
2)Destination folder contains few files that has to has be verified and deleted.
3)WebFolder is a folder containing a list of master files
4)It... (1 Reply)
Discussion started by: sandhyagupta
1 Replies
3. Shell Programming and Scripting
:wall:Dear All.:p
How to check log size every 10min. by script (not crontab)
if log size not change with alert "Log not update"
My Path :: /usr/home/logical/mono/log/tplink/
My Log :: mono11_tplink.log , mono12_tplink.log , etc
I want oup put.
EX. if log not update.
.
.
.
Fri Jan ... (1 Reply)
Discussion started by: ooilinlove
1 Replies
4. Shell Programming and Scripting
Hi,
I am new to shell scripting.Please help me on this.I am using solaris 10 OS and shell i am using is
# echo $0
-sh
My requirement is i have source file say makefile.I need to extract files with extensions (.c |.cxx |.h |.hxx |.sc) from the makefile.after doing so i need to check whether... (13 Replies)
Discussion started by: muraliinfy04
13 Replies
5. Shell Programming and Scripting
Hi Experts,
I am checking how to get day in Perl.
If it is “Monday” I need to process…below is the pseudo code.
Can you please prove the code for below condition.
if (today=="Monday" )
{
while (current_time LESS THAN 9:01 AM)
... (1 Reply)
Discussion started by: ajaypatil_am
1 Replies
6. Shell Programming and Scripting
Hi all,
I have 2 files in which i have to find commom entries in column 1 an dif soemthing is common write other data of both files in front of it mentioned.
Gene symbol and disease name
column 1 column2
ARFGEF2 CAD
DDEF2 CAD
PSCD3 CAD
PSCD4 CAD
CAMK1... (15 Replies)
Discussion started by: manigrover
15 Replies
7. Shell Programming and Scripting
How to check log size every 10min. by script (can use crontab)
if log size not change with alert "Log not update"
Base run on SunOS 5.8 Generic_Virtual sun4u sparc SUNW,SPARC-Enterprise
logFiles="log1.log log2.log"
logLocation="/usr/home/test/log/"
Out put.
Tue Jan 31... (3 Replies)
Discussion started by: ooilinlove
3 Replies
8. Shell Programming and Scripting
Hi,
I have got 2 files which i need to compare and append based on the below conditions.
file 1:
File 1 has data in the following format
4300 2356
C234 5689
5500 2345
File 2 has data in the same fomat
4300 49
5555 12345
Now i need to compare the first 4 bytes in each line... (4 Replies)
Discussion started by: roy121
4 Replies
9. UNIX for Dummies Questions & Answers
Hi
i want know to how to check NTP update frequency for a server?
what should be its ideal value or range ?
also, i have configure one switch and on gui i can see NTP update frequency value is 1440. also no idea what should be its ideal value
i am not sure if this is correct or not .... (1 Reply)
Discussion started by: scriptor
1 Replies
10. Shell Programming and Scripting
unzip -v gives CRC info of each file in a zip(in my case .EAR) file.
# unzip -v my-application.ear
Archive: my-application.ear
Length Method Size Cmpr Date Time CRC-32 Name
-------- ------ ------- ---- ---------- ----- -------- ----
197981 Defl:N 183708 7%... (1 Reply)
Discussion started by: kchinnam
1 Replies
LEARN ABOUT MOJAVE
pcap_can_set_rfmon
PCAP_CAN_SET_RFMON(3PCAP) PCAP_CAN_SET_RFMON(3PCAP)
NAME
pcap_can_set_rfmon - check whether monitor mode can be set for a not-yet-activated capture handle
SYNOPSIS
#include <pcap/pcap.h>
int pcap_can_set_rfmon(pcap_t *p);
DESCRIPTION
pcap_can_set_rfmon() checks whether monitor mode could be set on a capture handle when the handle is activated.
RETURN VALUE
pcap_can_set_rfmon() returns 0 if monitor mode could not be set, 1 if monitor mode could be set, and a negative value on error. A negative
return value indicates what error condition occurred. The possible error values are:
PCAP_ERROR_NO_SUCH_DEVICE
The capture source specified when the handle was created doesn't exist.
PCAP_ERROR_PERM_DENIED
The process doesn't have permission to check whether monitor mode could be supported.
PCAP_ERROR_ACTIVATED
The capture handle has already been activated.
PCAP_ERROR
Another error occurred. pcap_geterr() or pcap_perror() may be called with p as an argument to fetch or display a message describing
the error.
Additional error codes may be added in the future; a program should check for 0, 1, and negative, return codes, and treat all negative
return codes as errors. pcap_statustostr() can be called, with a warning or error code as an argument, to fetch a message describing the
warning or error code.
SEE ALSO
pcap(3PCAP), pcap_create(3PCAP), pcap_activate(3PCAP), pcap_set_rfmon(3PCAP)
3 January 2014 PCAP_CAN_SET_RFMON(3PCAP)