02-14-2017
If I understand what is happening, the process that builds the server.log file closes the file at 23:59. It then renames the file and open a new server.log file.
I know you tried to wait a few seconds; what happens if you try to wait longer?
While the old file may close and rename, perhaps the new file does not get created until the first event to cause something to be written to it.
Unsure on what part of that sript makes it continuously read. The code snippet seems to be a one-time pass-thru.
This User Gave Thanks to joeyg For This Post:
10 More Discussions You Might Find Interesting
1. AIX
Hi,
I am trying to find the content of file using grep and find command and list only the file names
but i am getting entire file list of files in the directory
find . -exec grep "test" {} \; -ls
Can anyone of you correct this (2 Replies)
Discussion started by: madhu_Jagarapu
2 Replies
2. Shell Programming and Scripting
Hi ,
I have a file called "X" . the content of X are
X
--
abc
def
and i have a file called "Y" , the content of Y are
Y
--
erty
sdss
s
abc
sfs
def
I need to check if the content of file X is contained in Y.Only unix (7 Replies)
Discussion started by: giri_luck
7 Replies
3. Shell Programming and Scripting
Hi, I have a file called fl_list consists of files i have to archive. I want to create a exception parm called except_parm, so if it finds the directory it will not archive these files and remove from fl_list.
$ cat fl_list
/apps/dev/ihub/ready/IA003B/IA003B_Deal_Header_yyyymmdd_hhmmss.txt... (1 Reply)
Discussion started by: k9cheung
1 Replies
4. Shell Programming and Scripting
My input file:
>sequence_1
ASSSSSSSSSSSDDDDDDDDDDDCCCCCCC
ASDSFDFFDFDFFWERERERERFSDFESFSFD
>sequence_2
ASDFDFDFFDDFFDFDSFDSFDFSDFSDFDSFASDSADSADASD
ASDFFDFDFASFASFASFAFSFFSDASFASFASFAFS
>sequence_3
VEDFGSDGSDGSDGSDGSDGSDGSDG
dDFSDFSDFSDFSDFSDFSDFSDFSDF
SDGFDGSFDGSGSDGSDGSDGSDGSDG
My... (22 Replies)
Discussion started by: patrick87
22 Replies
5. Shell Programming and Scripting
Hi All,
I would like to print the content from the specific line of a file .
For example... i have file abc.txt which has 100 lines of code ,from this file i would like to print the content from 20,19,18th line......like that
Regards
Srikanth (4 Replies)
Discussion started by: srikanthg
4 Replies
6. Shell Programming and Scripting
Hi
I have a large text file and I want to split its content into multiple flies.
this large file contains several blocks of codes separated by a comment line for each block.
this comment line represents a directory path
So, when separate these blocks each into a separate file, This output... (7 Replies)
Discussion started by: turki_00
7 Replies
7. Shell Programming and Scripting
Hi All,
I have the file in this format
**** Results Data ****
Time or Step
1
2
20
0.000000000e+00 0s 0s 0s
1.024000000e+00 Us 0s 0s
1.100000000e+00 1s 0s 0s
1.100000001e+00 1s 0s 1s
2.024000000e+00 Us Us 1s
2.024000001e+00 ... (7 Replies)
Discussion started by: diehard
7 Replies
8. Shell Programming and Scripting
I have some users in one unix system and i want to search some files with specific to user and then i want to find some content inside that file so can u help me how we can implement it?
File location is as below.
/pools/home_unix/cmadireddy/work/models/model/
cmadireddy is user name.
now... (6 Replies)
Discussion started by: lathigara
6 Replies
9. Shell Programming and Scripting
Hi All,
I m very new to unix...i jus want to chk the content of file.
ma requirement is
if file has a content then
display it
else
dont display or something
pls specify which loop shalli use either for or while?? (20 Replies)
Discussion started by: navsan
20 Replies
10. Shell Programming and Scripting
Hi,
This is a bit lengthy problem, i will try to keep explaining it simple.
I have got a file say file1 that contains the following in it,
------------------------------------------------------------------------ r201463 | ngupta@gmail.com | 2012-06-19 22:02:20 +0530 (Tue, 19 Jun 2012) |... (3 Replies)
Discussion started by: Kashyap
3 Replies
LEARN ABOUT DEBIAN
gems-server
GEMS-SERVER(1) gems documentation GEMS-SERVER(1)
NAME
gems-server - Transmit a shell session in real time.
SYNOPSIS
gems-server [-ip ip] [-port p] [-maxconn n] [-wait m] [-log dest] [-noscript] [-script_bin script]
gems-server -h | -v
DESCRIPTION
Transmits a shell session to be shown in real time in various different computers or terminals.
gems-server transmits data in real time to clients via a network connection. Each one of these clients must run the gems-client(1) program
to establish connection and receive the transmitted data. Clients can connect and disconnect at any given time, but of course they will
only receive the data that is transmitted while they are connected (just like a radio transmission/reception system).
The gems system is normally used to transmit a console session and show it in various computers at the same time, but it is also possible
to transmit any other kind of data.
OPTIONS
-ip IP address where connections will be accepted.
-port TCP port. Default: 6666.
-maxconn
Do not accept more than n simultaneous clients. Default: 25.
-wait Wait until m clients are connected before starting the transmission. This is useful to ensure that the first m clients will receive
all data transmitted. The default behavior is to start transmission immediately, without waiting for client connections.
-log By default, the server does not write log messages. This option configures the destination of logs. The dest argument can be `sys-
log' (to log through syslogd(8)), `stderr' (to log through standard error output), or it can be an arbitrary filename (log messages
will be appended to the file, if it exists).
-noscript
By default, the server executes the script(1) program to take terminal data and transmit it. When this option is used the server
will not run script, and data will be read form standard input.
-script_bin
Specifies the location of the script(1). program. Default: /usr/bin/script.
-h Show a short help message.
-v Show version information.
FILES
/var/lock/gems-server.PORT
Lock file. gems-server creates this file on initialization and deletes it on exit. PORT is replaced by the TCP port used. gems-
server will not run if this file is already present in the system.
AUTHORS
Diego Essaya <dessaya@fi.uba.ar>
Emiliano Castagnari <ecastag@fi.uba.ar>
SEE ALSO
gems-client(1), script(1), syslogd(8)
gems AUGUST 2004 GEMS-SERVER(1)