10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
because the tail +2 on the first line gives me the file name pomga I do not want anything like what I miss
tail +2 ejemplo.txt
==> ejemplo.txt <==
10 (2 Replies)
Discussion started by: tricampeon81
2. Shell Programming and Scripting
I have 250 files that have 16 columns each - all numbered as follows stat.1000, stat.1001, stat.1002, stat.1003....stat.1250.
I would like to join all 250 of them together tail by tail as follows. For example
a b c
d e f
g h i
j k l
So that my output... (2 Replies)
Discussion started by: kayak
3. Shell Programming and Scripting
I would like to create a script which tails the content of a log file in real time, looks for a specific string , like "ERROR" and captures in a text file the previous 10.000 lines that were existing before this string.
Any help is appreciated. (12 Replies)
Discussion started by: liviusbr
4. Shell Programming and Scripting
I want to write a script which will tail a particular file for 15 mins and then sleep for 10 mins and again tail for 15 mins. This cycle will go on for a limited period of time.
How can i ensure that tail command will run for 15 mins before calling sleep command
Thanks (6 Replies)
Discussion started by: @bhi
5. Shell Programming and Scripting
My query seems to be silly but Iam unable to find where the exact problem lies.
I have a script to unzip set of files
here is the script
Count=`cat /home/gaddamja/Tempfile | wc -l`
Filename=`cat /home/gaddamja/Tempfile |tail -$Count | head -1`
cd... (7 Replies)
Discussion started by: jagadish_gaddam
6. Shell Programming and Scripting
I'm having a hard time getting this to work!
I need to input a name and compare that name to a file in the file the name has a code on the same line as it, what i need is to compare the input name with the file and then output the code to a other file.
... (16 Replies)
Discussion started by: nogame11
7. Shell Programming and Scripting
I am trying to extract a particular line from a.log which keeps appending every sec and output that into a newfile b.log which should append itself with filtered data received from a.log
tail -f a.log |grep fail| tee -a b.log
nothing in b.log
tail -f a.log |grep fail >>b.log
... (4 Replies)
Discussion started by: wannalearn
8. Shell Programming and Scripting
I have search the forum and could not find an answer...Here is what I am trying to do. Every 15 minutes, a script send uptime output to a logfile (dailylog.log), that file contains lines like the one below:
11:21am up 44 days, 19:15, 1 user, load average: 0.00, 0.02, 0.03
... (7 Replies)
Discussion started by: qfwfq
9. UNIX for Dummies Questions & Answers
I've read through a few of these lists but can't find a right combination of answers (I can create VPN's but can't send an email!)
Ok - I'm using taper as backup software which generates a log file called taper_log I want the last eight lines of this log file to be sent to a specified... (3 Replies)
Discussion started by: ifan
10. Shell Programming and Scripting
Working in HP-UX 10.20. I eventually want to write a bourne shell script to handle the following problem, but for now I am just toying with it at the command line.
Here's what I am basically trying to do:
tail -f log_X | grep n > log_Y
I am doing a tail -f on log_X . Once it sees "n", I... (6 Replies)
Discussion started by: cdunavent
RDMA_POST_RECVV(3) Librdmacm Programmer's Manual RDMA_POST_RECVV(3)
rdma_post_recvv - post a work request to receive incoming messages.
int rdma_post_recvv (struct rdma_cm_id *id, void *context, struct ibv_sge *sgl, int nsge);
id A reference to a communication identifier where the message buffer(s) will be posted.
context User-defined context associated with the request.
sgl A scatter-gather list of memory buffers posted as a single request.
nsge The number of scatter-gather entries in the sgl array.
Posts a single work request to the receive queue of the queue pair associated with the rdma_cm_id. The posted buffers will be queued to
receive an incoming message sent by the remote peer.
Returns 0 on success, or -1 on error. If an error occurs, errno will be set to indicate the failure reason.
The user is responsible for ensuring that the receive is posted, and the total buffer space is large enough to contain all sent data before
the peer posts the corresponding send message. The message buffers must have been registered before being posted, and the buffers must
remain registered until the receive completes.
Messages may be posted to an rdma_cm_id only after a queue pair has been associated with it. A queue pair is bound to an rdma_cm_id after
calling rdma_create_ep or rdma_create_qp, if the rdma_cm_id is allocated using rdma_create_id.
The user-defined context associated with the receive request will be returned to the user through the work completion wr_id, work request
rdma_cm(7), rdma_create_id(3), rdma_create_ep(3), rdma_create_qp(3), rdma_reg_read(3), ibv_reg_mr(3), ibv_dereg_mr(3), rdma_post_recv(3),
librdmacm 2010-07-19 RDMA_POST_RECVV(3)