10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I have some text like
EU1BTDAT:ASSGNDD filename='$SEQFILES/SUNIA.PJ008202.CARDLIB/DATECARD'
EU1BTDATEST:ASSGNDD filename='$SEQFILES/SUNIA.PJ008202.CARDLIB/DATECARD'
EU1CLOSEDATES:ASSGNDD filename='$SEQFILES/SUNIA.PJ008202.CARDLIB/DATECARD'
EU1DATED:ASSGNDD... (8 Replies)
Discussion started by: gotamp
8 Replies
2. Shell Programming and Scripting
I have following files at /dir1
a.csv.20131201
b.csv.20131201
c.csv.20131201
d.csv.20131201
a.csv.20131202
b.csv.20131202
c.csv.20131202
d.csv.20131202
.......................
.......................
.......................
.......................
I need to move these files to... (4 Replies)
Discussion started by: JaisonJ
4 Replies
3. Shell Programming and Scripting
I have this file which contains
91886,000,MiniC2-00,1.9.12,aML,en
91886,000,MiniC2-00,1.9.12,aML,en
91886,000,MiniC2-00,1.9.12,aML,en
91886,000,MiniC2-00,1.9.12,aML,en
91886,000,MiniC2-00,1.9.12,aML,en
91886,000,MiniC2-00,1.9.12,aML,en
91886,000,MiniC2-00,3.0,aML,en... (6 Replies)
Discussion started by: nikhil jain
6 Replies
4. Shell Programming and Scripting
Hi,
I have a file like...
$cat file1
+++++++++++++++++++ client1 +++++++++++++++++++++++++++++
col1 col2 col3
------ ----- -----
(0 rows affected)
=========================================================
+++++++++++++++++++ client1 +++++++++++++++++++++++++++++
col1 col2 col3... (6 Replies)
Discussion started by: sam05121988
6 Replies
5. Shell Programming and Scripting
i have a file as below that has n section :
2006 0101 1236 49.3 L 37.902 48.482 0.0 Teh 5 0.2 2.7LTeh 1
GAP=238 E
Iranian Seismological Center, Institute of Geophysics, University of Tehran 6
... (5 Replies)
Discussion started by: oreka18
5 Replies
6. Shell Programming and Scripting
I have a list of Servers in no particular order as follows:
virtualMachines="IIBSBS IIBVICDMS01 IIBVICMA01"And I am generating some output from a pre-existing script that gives me the following (this is a sample output selection).
9/17/2010 8:00:05 PM: Normal backup using VDRBACKUPS... (2 Replies)
Discussion started by: jelloir
2 Replies
7. UNIX for Dummies Questions & Answers
I have a 5000 line config.log file with several "maybe" errors. Any reccomendations on finding solvable problems? (2 Replies)
Discussion started by: NeedLotsofHelp
2 Replies
8. Shell Programming and Scripting
print 'test'
SETUSER 'dbo'
go
create proc abc
as
/Some code here/
go
SETUSER
go
print 'test1'
SETUSER 'dbo'
go
Create Procedure xyz
as
/some code here/
go
SETUSER
go
print 'test2'
SETUSER 'dbo' (2 Replies)
Discussion started by: mad_man12
2 Replies
9. Shell Programming and Scripting
Hi,
I have a text file 10giga size.
Opening the file with vi takes forever ...
Im intersting only with the 100 first records.
Is there way to copy those 100 lines to new file (with no need to open the file)?
Thanks (6 Replies)
Discussion started by: yoavbe
6 Replies
10. UNIX for Dummies Questions & Answers
1 . Thanks everyone who read the post first.
2 . I have a log file which size is 143M , I can not use vi open it .I can not use xedit open it too.
How to view it ?
If I want to view 200-300 ,how can I implement it
3 . Thanks (3 Replies)
Discussion started by: chenhao_no1
3 Replies
MEM(4) BSD Kernel Interfaces Manual MEM(4)
NAME
mem, kmem -- memory files
SYNOPSIS
device mem
DESCRIPTION
The special file /dev/mem is an interface to the physical memory of the computer. Byte offsets in this file are interpreted as physical mem-
ory addresses. Reading and writing this file is equivalent to reading and writing memory itself. Only offsets within the bounds of /dev/mem
are allowed.
Kernel virtual memory is accessed through the interface /dev/kmem in the same manner as /dev/mem. Only kernel virtual addresses that are
currently mapped to memory are allowed.
On ISA the I/O memory space begins at physical address 0x000a0000 and runs to 0x00100000. The per-process data size for the current process
is UPAGES long, and ends at virtual address 0xf0000000.
IOCTL INTERFACE
Several architectures allow attributes to be associated with ranges of physical memory. These attributes can be manipulated via ioctl()
calls performed on /dev/mem. Declarations and data types are to be found in <sys/memrange.h>.
The specific attributes, and number of programmable ranges may vary between architectures. The full set of supported attributes is:
MDF_UNCACHEABLE
The region is not cached.
MDF_WRITECOMBINE
Writes to the region may be combined or performed out of order.
MDF_WRITETHROUGH
Writes to the region are committed synchronously.
MDF_WRITEBACK
Writes to the region are committed asynchronously.
MDF_WRITEPROTECT
The region cannot be written to.
Memory ranges are described by struct mem_range_desc:
u_int64_t mr_base; /* physical base address */
u_int64_t mr_len; /* physical length of region */
int mr_flags; /* attributes of region */
char mr_owner[8];
In addition to the region attributes listed above, the following flags may also be set in the mr_flags field:
MDF_FIXBASE
The region's base address cannot be changed.
MDF_FIXLEN
The region's length cannot be changed.
MDF_FIRMWARE
The region is believed to have been established by the system firmware.
MDF_ACTIVE
The region is currently active.
MDF_BOGUS
We believe the region to be invalid or otherwise erroneous.
MDF_FIXACTIVE
The region cannot be disabled.
MDF_BUSY
The region is currently owned by another process and may not be altered.
Operations are performed using struct mem_range_op:
struct mem_range_desc *mo_desc;
int mo_arg[2];
The MEMRANGE_GET ioctl is used to retrieve current memory range attributes. If mo_arg[0] is set to 0, it will be updated with the total num-
ber of memory range descriptors. If greater than 0, the array at mo_desc will be filled with a corresponding number of descriptor struc-
tures, or the maximum, whichever is less.
The MEMRANGE_SET ioctl is used to add, alter and remove memory range attributes. A range with the MDF_FIXACTIVE flag may not be removed; a
range with the MDF_BUSY flag may not be removed or updated.
mo_arg[0] should be set to MEMRANGE_SET_UPDATE to update an existing or establish a new range, or to MEMRANGE_SET_REMOVE to remove a range.
RETURN VALUES
[EOPNOTSUPP] Memory range operations are not supported on this architecture.
[ENXIO] No memory range descriptors are available (e.g. firmware has not enabled any).
[EINVAL] The memory range supplied as an argument is invalid or overlaps another range in a fashion not supported by this architec-
ture.
[EBUSY] An attempt to remove or update a range failed because the range is busy.
[ENOSPC] An attempt to create a new range failed due to a shortage of hardware resources (e.g. descriptor slots).
[ENOENT] An attempt to remove a range failed because no range matches the descriptor base/length supplied.
[EPERM] An attempt to remove a range failed because the range is permanently enabled.
FILES
/dev/mem
/dev/kmem
SEE ALSO
kvm(3), memcontrol(8)
HISTORY
The mem and kmem files appeared in Version 6 AT&T UNIX. The ioctl interface for memory range attributes was added in FreeBSD 3.2.
BUGS
Busy range attributes are not yet managed correctly.
This device is required for all users of kvm(3) to operate.
BSD
October 3, 2004 BSD