Sponsored Content
Homework and Emergencies Emergency UNIX and Linux Support calculate internal fragmentation in directory Post 302580152 by Corona688 on Wednesday 7th of December 2011 05:32:56 PM
Old 12-07-2011
Quote:
Originally Posted by me.
doesnt matter now, I used the code you posted before and hope it will do so
BIG THANKS TO YOU !
It matters if you're doing anything with it... I don't understand why you'd stop caring when the time's up, unless this is homework.
 

10 More Discussions You Might Find Interesting

1. IP Networking

IP fragmentation

HI all, I am in urgent need of this answer. In TCP/IP protocol, If the IP datagram size > MTU of the any routing network then the IP fragmentation takes place! Where exactly the Fragmentation takes place? is it at the source network layer or in between at some router? If so, which of the... (1 Reply)
Discussion started by: reddyb
1 Replies

2. Shell Programming and Scripting

How to calculate file's size in directory and subdirectory

Hi, I have written one script to calculate total space of all file in one directory, ignoring subdirectory, it works fine. Now, I've been trying to calculate all files which includes files in any subdirectories. I use recursive function to do this, but it can work only if there is only one... (4 Replies)
Discussion started by: KLL
4 Replies

3. UNIX for Dummies Questions & Answers

Fragmentation command in linux?

Hi, Please let me know more details on fragmentation in redhat linux and command to check fragmented files? Thanks, Bache Gowda (2 Replies)
Discussion started by: bache_gowda
2 Replies

4. Solaris

Fragmentation Ratio

All. How can i calculate the fragmentation ratio on a mounted disk, given that i have no root privilege and i cannot switch to single user mode. (0 Replies)
Discussion started by: Negm
0 Replies

5. UNIX for Dummies Questions & Answers

calculate directory size by year of file

I need to calcualte the size of a directory by the year the files in that directory were created . For example the script will sum up, by year, the number of blocks for that directory and its' subdirectories for files created / accessed in that year. I need a report that would look like... (11 Replies)
Discussion started by: igidttam
11 Replies

6. UNIX for Advanced & Expert Users

Forwarding internal internet packets to internal webserver using iptables

Hi, I need to redirect internal internet requests to a auth client site siting on the gateway. Currently users that are authenticated to access the internet have there mac address listed in the FORWARD chain. All other users need to be redirected to a internal site for authentication. Can... (1 Reply)
Discussion started by: mshindo
1 Replies

7. Shell Programming and Scripting

How to calculate the entropy of a single directory that contains many files

Hello, I'm new member of shell scripting and i face some difficulties. To begin, i try to write an algorithm that calculate from one directory containing nfdump files (288) the entropy of one day 24hours. Each of the file is 5 min interval (nfdump -r nfcapd.200908250000 -s srcip) 1st (nfdump... (0 Replies)
Discussion started by: draxmas
0 Replies

8. Shell Programming and Scripting

Find a particular directory in multiple file systems and calculate total size

Hello : I need some help in writing a ksh script which will find a particular directory in all the file systems in a server and finally report the total size of the direcotry in all the file systems. Some thing like this.. find /u*/app/oracle -type d -name "product" -prune and then... (1 Reply)
Discussion started by: Sam1974
1 Replies

9. IP Networking

IP fragmentation problem

Hello all, I am experiencing a problem with IP fragmentation. I am receiving an udp packet that is larger than the MTU and it is fragmented along the network. I am receiving the two fragments but they are not being reassembled correclty. The MTU of the system is 1500 and I cannot increase it,... (2 Replies)
Discussion started by: arichard
2 Replies

10. Shell Programming and Scripting

Bash to calculate average of all files in directory and output by part of filename

I am trying to use awk to calculate the average of all lines in $2 for every file in a directory. The below bash seems to do that, but I cannot figure out how to capture the string before the _ as the output file name and have it be tab-delimeted. Thank you :). Filenames in... (3 Replies)
Discussion started by: cmccabe
3 Replies
calcomp(7)						 Miscellaneous Information Manual						calcomp(7)

NAME
calcomp, tablet - Configuring a CalComp graphics tablet DESCRIPTION
This reference page provides information about how you configure a CalComp DrawingBoard III tablet, an input device supported by the Xinput extension to the Xserver. When the software for the tablet is installed on your system, you can configure it to emulate a system mouse. Other similar devices can be configured the samw way, but only the CalComp DrawingBoard III has been verified. Configuring the X Environment If you intend to use the CalComp DrawingBoard III tablet software, you must edit the file /usr/var/X11/Xserver.conf to turn on support for the X Input extension. To do this, remove the comment characters surrounding the following lines: input _dec_xi_db3 lib_dec_xi_db3.so XiDb3Init /dev/tty00:1:12:12:16: 1:8:1000:1:1 > > The backslash in this example indicates line continuation and is not in the actual display. You should also review these lines to ensure that the options specified for the tablet are correct, especially for the tty (logical COMM port) that is specified as the serial port, where the tablet is connected to your system. The last line of the /usr/var/X11/Xserver.conf file has the following syntax: device:mode:tabletWidth:tabletHeight:numbtns:core- Pointer:mouseScale: resolution:Xincrement:Yincrement The backslash in this example indicates line continuation and is not in the actual display. The following list can help you determine how to set up the entries for the tablet in the /usr/var/X11/Xserver.conf file: The port (tty) to which the device is connected. The default is tty00. This should be set to 1 for absolute motion. Width of the active tablet area in inches, not the physical size. The default is 12. Height of the active tablet area in inches, not the physical size. The default is 12. Number of buttons on the puck or pen. The maximum number is 16 and the default is 16. 0 indicates a native tablet mode (no system mouse). 1 indicates emulate core pointer (the mouse and tablet are both core pointer devices. The default is 1. 1 to 50 scaling factor in relative mode. Determines the speed of the cursor; the higher the number, the slower the cursor moves. The default is 8. 1 to 2540 lines per inch (lpi). The default is 1000. How much the X axis must be incremented to cause the tablet to send new coordinates to the Xserver. The range is 0 to 65536. The default is 1. How much the Y axis must be incremented to cause the tablet to send new coordinates to the Xserver. The range is 0 to 65536. The default is 1. The device option is required and specifies which tty device should be associated with the tablet. By default, the installation software assigns the CalComp DrawingBoard III tablet to tty00, which you may want to change if that tty is already allocated. For information on how to determine which serial port your tablet is connected to, see the hardware documentation that was shipped with your processor. Note that when the stylus or puck is moved as far as the minimum Xincrement or Yincrement value, the value of the corresponding axis is updated. For example, if the Xincrement value is set to 10 and the tablet is moved 10 units along the X axis, the value of the Y axis will also be updated simultaneously with the X axis, even if the Yincrement value has not been reached. Keep this in mind when setting the Xin- crement and Yincrement options. Configuring the Tablet into the X Server After you have configured the /usr/var/X11/Xserver.conf file, you must follow these steps to turn on support for the tablet in the Xserver: Plug the tablet into your system and turn it on. Enter the following command to restart the Xserver so that the Xinput extension can rec- ognize the tablet: # /usr/sbin/shutdown -r +5 "Turning on support for the Calcomp Drawingboard III tablet" (The backslash in this example indicates line continuation and is not in the actual display.) When the system comes back up, the tablet will be configured into the Xserver and ready to use. When the Xserver first accesses the tablet, it performs some hardware-specific initialization that can be saved in the on-board memory of the tablet. To save these settings, follow these steps: Press the EXIT CONFIG button on the tablet's menu. Under the SAVE button, press the DEFAULT button. Press the EXIT CONFIG button to save the settings. RESTRICTIONS
The following notes and restrictions apply to the CalComp DrawingBoard III tablet: If the puck or stylus is not used within a 5 minute period, the tablet will automatically shut off. To reactivate it, press any button on the puck or stylus while they are in close proximity to the tablet. If you configure the tablet as the system's core pointer, moving the puck and the system mouse simultaneously will cause the cursor to move in an unpredictable fashion. Use only one puck or stylus at a time. If you try to use both input devices simultane- ously, you will encounter unpredictable behavior. Manual configuration of the tablet via the tablet buttons is not supported. If you try to use these buttons to configure the tablet, the Xserver will malfunction and may even crash. If you need to reconfigure the tablet, edit the /usr/var/X11/Xserver.conf file and then reboot the Xserver. You can modify some parts of the tablet setup by programming the Xinput extension. For more information on how to do this, see the XInput specification provided by the X Consortium. FILES
The X server configuration file, in which the tablet is defined. RELATED INFORMATION
Xserver(1X), dc(7), scc(7), ports(7), tty(7), delim off calcomp(7)
All times are GMT -4. The time now is 10:57 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy