07-16-2012
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi:
I am currently working on a program which requires direct its ouput to a file here is an example
./proram arg_1 arg_2
when program ends all output will be arg_2 file
Is that possible I am not a bad programmer, However I am stuck there.
Can anyone give a hint?
Thanks
SW (1 Reply)
Discussion started by: slackware
1 Replies
2. UNIX for Dummies Questions & Answers
Ahhhrrrggg I'm having a brain fart...
I want to take the output of a command and redirect it to a file...
This works....
$ man cp | cat >> copy_help
but this doesn't
keytool -help |cat >> keytool_help
It just produces... these lines...
more keytool_help
] ...
... (11 Replies)
Discussion started by: jimmyc
11 Replies
3. UNIX for Dummies Questions & Answers
Hi all!!
is possible to assign the output of some command to filename, i.e.
grep_output.txt
Otherwise, I want to open a new file which name is inside another, how can I do it?
Thanks a lot! (7 Replies)
Discussion started by: csecnarf
7 Replies
4. Shell Programming and Scripting
Hey guys ,
i have a variable with the contents ...
NUMBER=4
and a test file with the contents
1248
1213
1214
1278
1200
3045
3444
2130
I want to execute a script that will produce the following output ( based on NUMBER=4) to be ...
create 1248 (1 Reply)
Discussion started by: theshams
1 Replies
5. Shell Programming and Scripting
Hi All,
I want to redirect only the file names to a new file from the ls -ltr directroy. how Can i do it.
my ls -ltr output will be as below.
-rwxr-xr-x 1 118 103 28295 Jul 26 2006 event.podl
-rwxr-xr-x 1 118 103 28295 Jul 26 2006 xyz.podl
I want my new file... (6 Replies)
Discussion started by: girish.raos
6 Replies
6. Shell Programming and Scripting
Hi,
I have a data file xyz.dat similar to the one given below,
2345|98|809||x|969|0
2345|98|809||y|0|537
2345|97|809||x|544|0
2345|97|809||y|0|651
9685|98|809||x|321|0
9685|98|809||y|0|357
9685|98|709||x|687|0
9685|98|709||y|0|234
2315|98|809||x|564|0
2315|98|809||y|0|537... (2 Replies)
Discussion started by: nithins007
2 Replies
7. UNIX for Dummies Questions & Answers
Hi Guys,
Please help me with my problem here:
I have a source file:
1212 23232 343434 ASAS1 4
3212 23232 343434 ASAS2 4
3234 23232 343434 QWQW1 4
1134 23232 343434 QWQW2 4
3212 23232 343434 QWQW3 4
and a mapping... (4 Replies)
Discussion started by: kokoro
4 Replies
8. Shell Programming and Scripting
Below script perfectly works, giving below mail output. BUT, I want to make the script mail only if there are any D-Defined/T-Transition/B-Broken State WPARs and also to copy the output generated during monitoring to a temporary log file, which gets cleaned up every week. Need suggestions.
... (4 Replies)
Discussion started by: aix_admin_007
4 Replies
9. Shell Programming and Scripting
Hi Guys,
I want to redirect the output of 3 scripts to a file and then mail the output of those three scripts.
I used below but it is not working:
OFILE=/home/home1/report1
echo "report1 details" > $OFILE
=/home/home1/1.sh > $OFILE
echo... (7 Replies)
Discussion started by: Vivekit82
7 Replies
10. Shell Programming and Scripting
I am working on an outage script and I run a command from the command line which tells me the amount of generator failures in my market. The output of this command only gives me three digits to identify the site by. I have a master list of all sites in a separate file, call it list.txt. If my... (7 Replies)
Discussion started by: jbrass
7 Replies
ypmake(8) System Manager's Manual ypmake(8)
NAME
ypmake - rebuild Network Information Service (NIS) database using the make command
SYNOPSIS
cd /var/yp make [options] [map]
OPTIONS
The options argument can be used to override the default values of three special variables used by make: Instructs make to use the source
files in the specified directory. The default is /var/yp/src. Instructs make to construct a domain other than the master's default domain.
The DOM variable in the /var/yp/Makefile file must be set to the domain name before running make. If you run ypsetup, the DOM variable is
set when you specify a domain name. Specifies the database routines used to store NIS maps. The choices are: btree -- Recommended when
creating and maintaining very large maps. dbm/ndbm -- For backward compatibility. This is the default. hash -- A potentially quicker
method for managing small maps. When non-null inhibits updating of the new database files using the yppush(8) function. The default is the
null string.
To override the default values of these special variables, an options argument format of special_variable = value is used. See the EXAM-
PLES section for an example.
The map argument supplied on the command line instructs make to update only the specified map. The specified maps are those located at
/var/yp/{domain}, where {domain} is the NIS domain name. Some typical entries for the map argument are passwd, hosts, and networks. Typing
make passwd creates and updates the NIS password database, if it is out of date. The make command distributes the updated password database
to the slave servers using yppush(8). Therefore, typing make host or make networks creates and updates the host and network files,
/var/yp/src/hosts and /var/yp/src/networks, respectively, on the master and slave servers.
See ypfiles(4) and ypserv(8) for an overview of NIS.
DESCRIPTION
The make command uses the /var/yp/Makefile file to build an NIS database. With no arguments, make creates databases for any NIS maps that
are out-of-date, and then executes yppush(8) to notify slave servers that there has been a change.
Note
Execute the make command only at an NIS master server machine. If it is executed from either a slave server or an NIS client machine, the
created changes will only be overwritten when the next NIS master server machine update, using ypxfr(8), is performed.
RESTRICTIONS
You must use the same database format for each map in a domain. In addition, a server serving multiple NIS domains must use the same data-
base format for all domains.
Although a Tru64 UNIX NIS server that takes advantage of btree files will be able to store very large maps, NIS slave servers that lack
this feature might have a much smaller limit on the number of map entries they can handle. It may not be possible to distribute very large
maps from a Tru64 UNIX NIS master server to a slave server that lacks support for very large maps. NIS clients are not affected by these
enhancements.
EXAMPLES
This example causes make to create a password NIS map for the domain NewDomain instead of for the default domain: make DOM=NewDomain passwd
SEE ALSO
Commands: make(1), makedbm(8), yppush(8), ypserv(8), ypxfr(8)
Files: ypfiles(4)
ypmake(8)