Sponsored Content
Full Discussion: Reading and Writing Files ?
Top Forums UNIX for Dummies Questions & Answers Reading and Writing Files ? Post 302087109 by reborg on Tuesday 29th of August 2006 05:15:17 PM
Old 08-29-2006
The answer depends (to some extent) on what you want to do.

Do you need sequential or random access to the file?
 

10 More Discussions You Might Find Interesting

1. Programming

Reading and Writing file on LAN

Hi gurus I am not a C programmer but I need to read and write files on a computer on LAN using IP address. Suppose on a computer that has an IP 192.168.0.2 Any help or code example. I did in JAVA using URL, but do not know how to do in ANSI-C. In java: ------- URL url = new... (3 Replies)
Discussion started by: lucky001
3 Replies

2. Shell Programming and Scripting

reading/ writing to sockets

Is it possible to read from or write to sockets with ksh? I use AIX 5.3 (1 Reply)
Discussion started by: rein
1 Replies

3. UNIX and Linux Applications

Reading and Writing from Excel using Unix scripting

Hi All, I want to read and write into Excel files. I want my script to generate the required output directly in the Excel format. Is it possible through unix scripting or shall I have to use some other language for this purpose? Waiting for your suggestion. Thanks in Advance. ... (3 Replies)
Discussion started by: AshishK
3 Replies

4. UNIX for Dummies Questions & Answers

Log File Writing and Reading

Hi all, I have the following shell script code which tries to sftp and writes the log into the log file. TestConnection () { echo 'Connection to ' $DESTUSERNAME@$DESTHOSTNAME $SETDEBUG if ]; then rm $SCRIPT ; fi touch $SCRIPT echo "cd" $REMOTEDIR >> $SCRIPT echo "quit" >>... (10 Replies)
Discussion started by: valluvan
10 Replies

5. Programming

I need help with file reading/writing in C

Hello everybody, I'm trying to code a program which makes the following: It sends an ARP request frame and when it gets the reply, extracts the IP address of source and writes it to a .txt file. This is gonna be done with many hosts (with a for() loop), so, the text file would look like... (2 Replies)
Discussion started by: Zykl0n-B
2 Replies

6. Shell Programming and Scripting

Reading data from DataBase and Writing to a file

Hi All, Please help me in writing data to a file in one row. In database there is a column which contains large data which does not fit in the file in one row. The column contains list of paths. I want to write these paths to a file in one row. Please find the code below writes : ... (2 Replies)
Discussion started by: rajeshorpu
2 Replies

7. UNIX for Dummies Questions & Answers

Reading and writing data to and from multiple files

Hi, I have several text files. One main file contains the detail data, other have some information to extract data from the main file, and some are empty files. Examples are shown below: The main file look like: MainFile.txt >Header1 data1...data1... >Header2 data2...data2... ... ...... (2 Replies)
Discussion started by: Fahmida
2 Replies

8. Shell Programming and Scripting

reading from and writing to serial port

hello all, please any one can provide me the shell script to write data to /dev/ttyS1 and read responce from /dev/ttyS1 and compare the responce to some string .. thnxx ---------- Post updated at 03:35 PM ---------- Previous update was at 11:46 AM ---------- any body help me.. how do i... (1 Reply)
Discussion started by: yashwantkumar
1 Replies

9. Shell Programming and Scripting

Quick Question concerning Reading and Writing

First off, this is not homework nor for any class. I have a file (column) of data such as: 12.56 2.78 0.54 22.7 ... etc. (call the file "num") I want to read in each line, then check to see whether it's greater than or equal to a value, say "1". If it is, save it in one file, if it's... (8 Replies)
Discussion started by: astropi
8 Replies

10. Shell Programming and Scripting

Reading and writing in same file

Hi All, Here is my requirement. I am grepping through the log files and cutting some fields from the file to generate a csv file. Now I have to check if 2nd field is having some fixed value then with the help of 4th field I have to look in same log and run another grep command to retrieve the... (11 Replies)
Discussion started by: kmajumder
11 Replies
fcache_seqlimit_system(5)					File Formats Manual					 fcache_seqlimit_system(5)

NAME
fcache_seqlimit_system - percentage of file cache that can be consumed by sequential accesses, per system-wide limit VALUES
Failsafe Default Allowed values The minimum value allowed is The maximum value allowed is Specify a positive integer value. DESCRIPTION
This parameter places a system-wide limit on how much memory can be consumed in the file cache by sequential accesses. It is important to note the relationship between this tunable and the per-file limit tunable, These two tunables, in conjunction, control how much memory in the file cache can be consumed by sequential accesses. When sequential accesses to a file has exceeded the per-file limit AND the system-wide limit, the excess file cache pages are paged out. Note that both limits have to be reached in order for page stealing to occur. For example, a file can exceed its limit if the limit has not been reached. Similarly, no page stealing occurs if none of the files on the system has exceeded the per-file limit, even if the sys- tem-wide limit has been hit. The page stealing feature is specific to improving sequential I/O performance for large files. Limiting file cache memory consumption helps alleviate memory pressure in the file cache. It also prevents cache wiping -- a single thread sequentially accessing a large file can wipe out the existing contents of the file cache. Who is Expected to Change This Tunable? System administrators that run applications which do large sequential file I/O's. Typically, these files are larger than the size of phys- ical memory on the system. Restrictions on Changing Changes to this tunable take effect immediately. When Should the Value of This Tunable Be Raised? When you wish to allow greater file cache consumption due to sequential accesses. Setting and to 100 effectively disables the sequential access page stealing feature. What Are the Side Effects of Raising the Value? Setting the tunable too high may yield poor performance for large sequential I/O's for large files (larger than physical memory size). and should be tuned appropriately for the anticipated workload. When Should the Value of This Tunable Be Lowered? When you wish to limit file cache consumption due to sequential accesses. Setting and to 0 forces sequential access page stealing to always occur. What Are the Side Effects of Lowering the Value? Could cause more pageouts to occur in an attempt to limit the file cache consumption. What Other Tunable Values Should Be Changed at the Same Time? and should be changed at the same time. WARNINGS
All HP-UX kernel tunable parameters are release specific. This parameter may be removed or have its meaning changed in future releases of HP-UX. Installation of optional kernel software, from HP or other vendors, may cause changes to tunable parameter values. After installation, some tunable parameters may no longer be at the default or recommended values. For information about the effects of installation on tun- able values, consult the documentation for the kernel software being installed. For information about optional kernel software that was factory installed on your system, see at AUTHOR
was developed by HP. SEE ALSO
fcache_seqlimit_file(5). Tunable Kernel Parameters fcache_seqlimit_system(5)
All times are GMT -4. The time now is 11:41 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy