10 More Discussions You Might Find Interesting
1. Programming
Can someone help me to write this program in C in QNX?
Using the FIFO queues write a simple communication system consisting of programs write and read. The program write the parameters given strings enclosed in single quotes. These strings are written to the FIFO file. Reads the program read... (1 Reply)
Discussion started by: ebasse2
1 Replies
2. Shell Programming and Scripting
I have got a file in following format:
AAAAAAA
BBBBBBBB
CCCCCCC
DDDDDDD
I am trying to read this file and out put it in following format:
AAAAAAA,BBBBBBB,CCCCCCC,DDDDDD
Preferred method is shell or Perl.
Any help appreciated. (11 Replies)
Discussion started by: Araoki
11 Replies
3. Shell Programming and Scripting
Hi Everyone,
newbie here, please help me i can't read the code i'm confused reading this code.
select c.net_svc_id, c.inst_st_dt into ${REO_RECON_USERID_LUZON_TEMP} from ${WO_INST_SITE_COMP_FIELDS} a, ${WO_INST_SITE_COMPONENTS} b, ${WO_INST} c where a.cust_ac_no = b.cust_ac_no and... (3 Replies)
Discussion started by: nikki1200
3 Replies
4. Shell Programming and Scripting
EDIT: Nevermind. I found a forth kludge to get around the psed requirement!
Short version: I'm trying to use the "w" flag with psed to write all substituted lines into another file. No matter how many times I read the man pages or search with Google, I can't seem to find the proper syntax... (0 Replies)
Discussion started by: CluelessPerson
0 Replies
5. Programming
HI
I need to implement a client/server TCP application. the customer is the client and the bartender is the server.
When the customer enter the Bar, client connects to the server
Server should reply the client immediately. Other wise if the server is busy, it should send an update message... (10 Replies)
Discussion started by: lixiao1212
10 Replies
6. IP Networking
Hi,
We have smb client running on two of the linux boxes and smb server on another linux system. During a backup operation which uses smb, read of a file was allowed while write to the same file was going on.Also simultaneous writes to the same file were allowed.Following are the settings in the... (1 Reply)
Discussion started by: swatidas11
1 Replies
7. Programming
Hi all,
I have a problem with some read/write functions.
I have a .bin file which contains a lot of structures as follows:
struct alumno
{
char id;
char apellido1;
char apellido2;
char nombre;
float nota1p;
float nota2p;
float notamedia;
char photofilename;
};
What I have... (3 Replies)
Discussion started by: Attenea
3 Replies
8. Shell Programming and Scripting
I need to find all the files that have group Read or Write permission or files that have user write permission.
This is what I have so far:
find . -exec ls -l {} \; | awk '/-...rw..w./ {print $1 " " $3 " " $4 " " $9}'
It shows me all files where group read = true, group write = true... (5 Replies)
Discussion started by: shunter63
5 Replies
9. Shell Programming and Scripting
I am trying to write a script that will do a sql statement. But in the sql I will have a list (1,2,3,4).
How would I go about asking for the input from the user running the script, and then transferring that back into the list as say ($var1,$var2,$var3)?
It would be somewhat like this:
... (1 Reply)
Discussion started by: Captain
1 Replies
10. Programming
How can 'popen()' be used for reading and writing to opening pipe?
If i try 'popen("prog", "rw")'
and then put and get chars - it does
not work.
What is wrong? (1 Reply)
Discussion started by: szzz
1 Replies
SMB_TRAFFIC_ANALYZER(8) System Administration tools SMB_TRAFFIC_ANALYZER(8)
NAME
vfs_smb_traffic_analyzer - log Samba VFS read and write operations through a socket to a helper application
SYNOPSIS
vfs objects = smb_traffic_analyzer
DESCRIPTION
This VFS module is part of the samba(7) suite.
The vfs_smb_traffic_analyzer VFS module logs client write and read operations on a Samba server and sends this data over a socket to a
helper program, which feeds a SQL database. More information on the helper programs can be obtained from the homepage of the project at:
http://holger123.wordpress.com/smb-traffic-analyzer/
vfs_smb_traffic_analyzer currently is aware of the following VFS operations:
write
pwrite
read
pread
vfs_smb_traffic_analyzer sends the following data in a fixed format seperated by a comma through either an internet or a unix domain
socket:
BYTES|USER|DOMAIN|READ/WRITE|SHARE|FILENAME|TIMESTAMP
Description of the records:
o BYTES - the length in bytes of the VFS operation
o USER - the user who initiated the operation
o DOMAIN - the domain of the user
o READ/WRITE - either "W" for a write operation or "R" for read
o SHARE - the name of the share on which the VFS operation occured
o FILENAME - the name of the file that was used by the VFS operation
o TIMESTAMP - a timestamp, formatted as "yyyy-mm-dd hh-mm-ss.ms" indicating when the VFS operation occured
This module is stackable.
OPTIONS
smb_traffic_analyzer:mode = STRING
If STRING matches to "unix_domain_socket", the module will use a unix domain socket located at /var/tmp/stadsocket, if STRING contains
an different string or is not defined, the module will use an internet domain socket for data transfer.
smb_traffic_analyzer:host = STRING
The module will send the data to the system named with the hostname STRING.
smb_traffic_analyzer:port = STRING
The module will send the data using the TCP port given in STRING.
smb_traffic_analyzer:anonymize_prefix = STRING
The module will replace the user names with a prefix given by STRING and a simple hash number.
smb_traffic_analyzer:total_anonymization = STRING
If STRING matches to 'yes', the module will replace any user name with the string given by the option
smb_traffic_analyzer:anonymize_prefix, without generating an additional hash number. This means that any transfer data will be mapped
to a single user, leading to a total anonymization of user related data.
EXAMPLES
The module running on share "example_share", using a unix domain socket
[example_share]
path = /data/example
vfs objects = smb_traffic_analyzer
smb_traffic_analyzer:mode = unix_domain_socket
The module running on share "example_share", using an internet socket, connecting to host "examplehost" on port 3491.
[example_share]
path = /data/example
vfs objects = smb_traffic_analyzer
smb_traffic_analyzer:host = examplehost
smb_traffic_analyzer:port = 3491
The module running on share "example_share", using an internet socket, connecting to host "examplehost" on port 3491, anonymizing user
names with the prefix "User".
[example_share]
path = /data/example
vfs objects = smb_traffic_analyzer
smb_traffic_analyzer:host = examplehost
smb_traffic_analyzer:port = 3491
smb_traffic_analyzer:anonymize_prefix = User
VERSION
This man page is correct for version 3.3 of the Samba suite.
AUTHOR
The original Samba software and related utilities were created by Andrew Tridgell. Samba is now developed by the Samba Team as an Open
Source project similar to the way the Linux kernel is developed.
The original version of the VFS module and the helper tools were created by Holger Hetterich.
Samba 3.5 06/18/2010 SMB_TRAFFIC_ANALYZER(8)