01-03-2011
What have you tried?
You have four requests, but do not show any work or even an attempt at solving this. We like to help, not write your code.
These 3 Users Gave Thanks to joeyg For This Post:
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'm looking to create a Korn Shell script that, if given a directory as an arg, will calc bytes used by all files in the given directory and display that info. If no command line arg is given the program is to calc and display the bytes used by all the files in the pwd.
Example output:
... (3 Replies)
Discussion started by: kecannon
3 Replies
2. Shell Programming and Scripting
Hi all,
Does anybody know or guide me on how to remove the first N bytes and the last N bytes from a binary file? Is there any AWK or SED or any command that I can use to achieve this?
Your help is greatly appreciated!!
Best Regards,
Naveen. (1 Reply)
Discussion started by: naveendronavall
1 Replies
3. UNIX for Dummies Questions & Answers
Compete noob question....
I need a script to search through a directory and find files containing text string abcde1234 for example and then copy that file with that text string to another directory
help please :eek: (9 Replies)
Discussion started by: imeadows
9 Replies
4. Shell Programming and Scripting
Hi All,
OS:AIX 64 bits.
Requirement is to convert file_size from bytes to megabytes through shell script as below:
export DBALIST="xyz@rediffmail.com"
ls -ltr abcd.txt > file_size.result
export file_size=`awk -F" " '{ print $5 }' file_size.result`
if ]
then
mailx -s "File abcd.txt... (3 Replies)
Discussion started by: a1_win
3 Replies
5. Shell Programming and Scripting
Hi everyone,
the problem is quite simple, yet I can't find an easy solution using awk.
I need to search for a string in $3, then if I find this string, copy the line,modify $3, and copy the next 9 lines to the same file.
My problem is in the copying of the lines... Finding and modifying... (5 Replies)
Discussion started by: Teroc
5 Replies
6. Shell Programming and Scripting
Hi,
I want to copy some files from a Folder say, /usr/X at random intervals to another location.
Basically, new files will be dumped at random intervals to location /usr/X and I have to copy those new files to some other location (after copying, I cannot delete those files from source... (2 Replies)
Discussion started by: angshuman_ag
2 Replies
7. Shell Programming and Scripting
Dear all,
I have a database with thousands of files with the structure of name is:
Filename_hour_year.abc
Filename_hour_year_1.abc
..............
So what I need is how to write a script that all file with contain the character "_1" will copy to "_2"
For example: file name:... (7 Replies)
Discussion started by: hainguyen1402
7 Replies
8. Shell Programming and Scripting
I have a text file which got 6th coloumn as date and 7th coloumn as time. The text contains data for last one week. I need to remove all the data whose date & time is after 03/08/2011 06:00:00 and save it on another file
TEXT FILE
========
6 dbclstr-b IXT_Web Memphis_Prod_SQL_Diff... (4 Replies)
Discussion started by: ajiwww
4 Replies
9. Shell Programming and Scripting
How can i remove a file using shell script when its size exceeds 10MB. Given that file is located in different location to the shell script where it is running? (4 Replies)
Discussion started by: vel4ever
4 Replies
10. Shell Programming and Scripting
hello,
suppose, entered input is of 1-40 bytes, i need it to be converted to 40 bytes exactly.
example: if i have entered my name anywhere between 1-40 i want it to be stored with 40 bytes exactly.
enter your name:
donald duck (this is of 11 bytes)
expected is as below - display 11... (3 Replies)
Discussion started by: shravan.300
3 Replies
mountd(1M) mountd(1M)
NAME
mountd - server for NFS mount requests and NFS access checks
SYNOPSIS
/usr/lib/nfs/mountd [-v] [-r]
mountd is an RPC server that answers requests for NFS access information and file system mount requests. It reads the file
/etc/dfs/sharetab to determine which file systems are available for mounting by which remote machines. See sharetab(4). nfsd running on the
local server will contact mountd the first time an NFS client tries to access the file system to determine whether the client should get
read-write, read-only, or no access. This access can be dependent on the security mode used in the remoted procedure call from the client.
See share_nfs(1M).
The command also provides information as to what file systems are mounted by which clients. This information can be printed using the show-
mount(1M) command.
The mountd daemon is automatically invoked by share(1M).
Only super user can run the mountd daemon.
The options shown below are supported for NVSv2/v3 clients. They are not supported for Solaris NFSv4 clients.
-r Reject mount requests from clients. Clients that have file systems mounted will not be affected.
-v Run the command in verbose mode. Each time mountd determines what access a client should get, it will log the result to the con-
sole, as well as how it got that result.
/etc/dfs/sharetab shared file system table
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWnfssu |
+-----------------------------+-----------------------------+
nfsd(1M), share(1M), share_nfs(1M), showmount(1M), nfs(4), sharetab(4), attributes(5)
Since mountd must be running for nfsd to function properly, mountd is automatically started by the svc:/network/nfs/server service. See
nfs(4).
Some routines that compare hostnames use case-sensitive string comparisons; some do not. If an incoming request fails, verify that the case
of the hostname in the file to be parsed matches the case of the hostname called for, and attempt the request again.
27 Apr 2005 mountd(1M)