I do not see what tail gives you. But. Try this.
You may want to learn about the sync command, and how new data is written to disk periodically, not continuously.
Since the kernel keeps all of the data being written to outfile, tail -f will see it all (except the first 990 lines of outfile)
This User Gave Thanks to jim mcnamara For This Post:
I have a USB serial adapter that supports arbitrary baud rates. To set a nonstandard rate in code, I'd been using the TIOCGSERIAL like so:
struct serial_struct ser_info;
ioctl(ser_dev, TIOCGSERIAL, &ser_info);
ser_info.flags = ASYNC_SPD_CUST | ASYNC_LOW_LATENCY;
ser_info.custom_divisor... (1 Reply)
I have an expect script that interrogates several hundred unix servers for both access and directories therein using "ssh user@host ls -l /path". The combination of host/path are unique but the host may be interrogated multiple times if there are multiple paths to test.
The expect script is run... (2 Replies)
Hi Friends,
Can you please answer the following questions.
1) What is Paging rate ?
2) How to Calculate Paging rate from the following topas command output?
Faults 206 Real,MB 28671
Steals 311 % Comp 71.1
PgspIn 1 % Noncomp 28.8 ... (3 Replies)
hi guys
I have a linux server which has about 5 volumes from SAN (fiber channel) now I need to measure the transfer rate between one LUN which is a Logical Volume to another LUN which is another Logical Volume.
so basically this server has 5 LUNs from SAN
each SAN volume is a logical volume... (3 Replies)
I want to control the speed of execution of a script, There are 1000 lines in script, i want 100 lines to be executed in 10 seconds and from 11th second execution from 101 line should start, again so on. Please help me in creating the script.
Thanks,
cmaniar (1 Reply)
Deal all,
I have a directory called
I want to know how many MBs are transferred to it every 2 hours.
How can I do this?
Any ideas?
I have a simple idea but I can't translate it into shell script, the idea is:
1- get the size of the folder now, using
2- then get the size of the... (4 Replies)
Discussion started by: Mohannad
4 Replies
LEARN ABOUT LINUX
scsi_setup_cdb
scsi_setup_cdb(9F) Kernel Functions for Drivers scsi_setup_cdb(9F)NAME
scsi_setup_cdb - setup SCSI command descriptor block (CDB)
SYNOPSIS
int scsi_setup_cdb(union scsi_cdb *cdbp, uchar_t cmd, uint_t addr, uint_t cnt, uint_t othr_cdb_data);
INTERFACE LEVEL
Solaris DDI specific (Solaris DDI).
PARAMETERS
cdbp Pointer to command descriptor block.
cmd The first byte of the SCSI group 0, 1, 2, 4, or 5 CDB.
addr Pointer to the location of the data.
cnt Data transfer length in units defined by the SCSI device type. For sequential devices cnt is the number of bytes. For
block devices, cnt is the number of blocks.
othr_cdb_data Additional CDB data.
DESCRIPTION
scsi_setup_cdb() function initializes a group 0, 1, 2, 4, or 5 type of command descriptor block pointed to by cdbp using cmd, addr, cnt,
othr_cdb_data.
addr should be set to 0 for commands having no addressing information (for example, group 0 READ command for sequential access devices).
othr_cdb_data should be additional CDB data for Group 4 commands; otherwise, it should be set to 0.
scsi_setup_cdb() function does not set the LUN bits in CDB[1] as the makecom(9F) functions do. Also, the fixed bit for sequential access
device commands is not set.
RETURN VALUES
scsi_setup_cdb() returns:
1 Upon success.
0 Upon failure.
CONTEXT
These functions can be called from a user or interrupt context.
SEE ALSO makecom(9F), scsi_pkt(9S)
Writing Device Drivers
American National Standard Small Computer System Interface-2 (SCSI-2)
American National Standard SCSI-3 Primary Commands (SPC)
SunOS 5.10 23 Jun 1997 scsi_setup_cdb(9F)