Sponsored Content
Operating Systems Linux Suggest update of two commands - who to write to? Post 302388811 by Corona688 on Thursday 21st of January 2010 01:56:57 PM
Old 01-21-2010
Quote:
Originally Posted by pludi
However, try both commands with the '-h' switch (for "human"), and you'll have sizes in GB too.
Yes, and there's a reason they put it in a switch. Most commands available in shell are designed to output data extremely consistently so other programs can use it predictably. If you know it'll always report 1K blocks, that's easy to build a shell script around -- but trying to parse mixed units like 115K, 2.2G and 441M would be a nightmare.

Lastly, always, always, always read the man pages before complaining about a lack of feature. You'd have found the -h flags in both commands. You'd also have found email addresses to report bugs to.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

how can I write script that lets me run shell commands?

Hello I want to make simple extension to vi , you know how you want to run some shell command you do ":! ls -l " , then you go out the vi the command executed and then you hit enter and you back to vi but now I want to be able to go out of vi and run several command outside of vi .. and in... (3 Replies)
Discussion started by: umen
3 Replies

2. Programming

Can we use write() to modify/update intermediate records in a file

Hi, I have a database (a simple .dat file) which has multiple records (structure datatype) in it. I would like to know if we can use write() system call to update/modify intermediate records in this file (using C). If so, could somegive give a code snippet of the same. :-) Thanks in advance... (2 Replies)
Discussion started by: maverix
2 Replies

3. Shell Programming and Scripting

How to write a script by using unix commands to down any server

Hi, I need to do frequently server down and up. Every time i am using nearly 5 to 6 commands to down and agin i am using the commands to up. Can anybody help me to write a script to down and up. which i can use once on unix platform it can down later it can up the server. (1 Reply)
Discussion started by: sreerao
1 Replies

4. Shell Programming and Scripting

Pls Help-Script to execute Commands and write to excel file

Execute some commands in script and store result in excel sheet Kindly help me........... (1 Reply)
Discussion started by: Computer_baby
1 Replies

5. Red Hat

how to write shell specific commands?

I am using Fedora 8,Red hat 9. Whenever we write a new command. Then we goto "/usr/bin" and then place this in this directory.And hence we can use it as a command anywhere from the terminal. We generally see commands like "trap" which run only in bash shell.We also have other shell specific... (1 Reply)
Discussion started by: nsharath
1 Replies

6. Fedora

wall and write commands are not working

hi friends i am using fedora linux operating system on the server and two clients(with windows os) are connected to it(server ).but here wall and write cmds are not working to send messages from one system to another system . pls help me (4 Replies)
Discussion started by: sankar_vitam
4 Replies

7. UNIX for Dummies Questions & Answers

Can anyone help? I have to Write a program in C that recognizes the following commands and translate

I have to Write a program in C that recognizes the following commands and translates them into much simpler ones Commands to recognize shorter command list L cd dir C - dir_length - dir get file_name G - file_name_length - file_name Long commands are read from the standard input and... (1 Reply)
Discussion started by: aintour
1 Replies

8. Homework & Coursework Questions

Can anyone help? I have to Write a program in C that recognizes the following commands and translate

I have to Write a program in C that recognizes the following commands and translates them into much simpler ones Commands to recognize shorter command list L cd dir C - dir_length - dir get file_name G - file_name_length - file_name Long commands are read from the standard input... (1 Reply)
Discussion started by: aintour
1 Replies

9. Shell Programming and Scripting

How can i write a script to execute commands on the webserver from a browser?

I want to create a script with the php exec() or system() function to execute commands from a remote browser on the webserver. I am open to using Perl or whatever. I am using an Apache2 webserver on Ubuntu. I have done quite a bit of research on this on google and read lots of responses about... (0 Replies)
Discussion started by: bash_in_my_head
0 Replies

10. Shell Programming and Scripting

How to write a update query in perl script?

can any one suggest me on how to write a update query in perl script for Oracle database and also tell me abt how we can write a code for sending mails with report as attachment to appropriate persons? (1 Reply)
Discussion started by: Ramesh V Kumar
1 Replies
prebind(1M)															       prebind(1M)

NAME
prebind - prepare frequently executed programs for faster startup SYNOPSIS
file] [path-list] DESCRIPTION
prepares some frequently executed programs for faster startup using (see fastbind(1)), and updates the IPD database for the modified files. Many frequently used commands such as etc. are so short lived that the program startup time takes up a major part of the total run time of each instance. In user-space, a big chunk of startup time could be spent in the dynamic loader, dld.so(5), in resolving the references among the program and its shared library dependencies. This startup overhead can be avoided using Patch level changes affecting related shared libraries (e.g. libc) can obsolete the information stored in an executable. So must be invoked after each such change, to ensure consistent levels of performance. As writes symbol resolution information into the executable, the metadata of the software product that provides the executable must be updated to reflect the changes. facilitates the use of It invokes on some executables known to be frequently used on HP-UX systems and updates the IPD database using see swmodify(1M). By default, operates on a pre-defined list of executables. Users can also specify an alternate list of executables by providing it in a file or as a path-list on the command line. For complete details, refer to the whitepaper at Options supports the following option: Prints the usage information. Prints a preview of commands that will be invoked, without actually invoking them. Removes information from the specified (or default) list of executables. Reads the list of executables from file. Arguments can read a list of executables either from the command line or from a file. Each command-line argument or each line in the file will be considered as the full path to an executable on which is to be invoked. Lines beginning with a pound character in the file will be consid- ered as comments and ignored. WARNINGS
uses (see swlist(1M)) to retrieve software product information and so may take a long time to complete, depending on the system software configuration. It is recommended to be used only after patch changes that may affect executables of interest. needs to be run with appropriate privileges as required to write to the executables and to run The executables must be writeable. RETURN VALUES
returns the following values: Successful completion. Failure. An error has occurred. FILES
By default, acts on the following files: While is yet another frequently used executable that can benefit from it is almost always in use and including it in the default list would generate errors. It is recommended that be run mannually on this executable when it is not in use (such as from a root shell, with no users logged in). All these executables depend on and some other similar shared libraries, so it is recommended that be run whenever any of the files men- tioned above are changed. AUTHOR
was developed by Hewlett-Packard. SEE ALSO
fastbind(1), swmodify(1M). Itanium(R)-based Systems Only prebind(1M)
All times are GMT -4. The time now is 07:02 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy