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)
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)
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)
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)
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)
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)
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)
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)
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)
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
LEARN ABOUT ULTRIX
kprop
kprop(8krb)kprop(8krb)Name
kprop - Kerberos utility
Syntax
/var/dss/kerberos/bin/kprop database slaves_file [ -force ] [ -safe | clear ]
[-realm realm_name]
Description
The daemon runs on a Kerberos master and propagates the Kerberos database to the Kerberos slaves, where it is received by the waiting dae-
mon.
The first parameter, database, is the name of the file out of which data is extracted. This file is not the Kerberos database, See the
reference page for more information. The database is a file created by the command. It is an ASCII representation of the Kerberos data-
base (see the reference page for
The second parameter that must be supplied is slaves_file, the name of the file on the Kerberos master that lists the Kerberos slaves to
which propagates the Kerberos master database. The is created in format.
The Kerberos utility first determines whether the ASCII Kerberos database, database, was correctly dumped by It accomplishes this by deter-
mining if database is older than the file created by during the operation. If it is older, the dump did not succeed or is not yet fin-
ished. If the dump did not complete successfully or has not yet completed, the master database is not transferred to any Kerberos slave.
Otherwise, determines, for each slave server listed in the whether or not the database has changed since the last successful transfer to
the slave. It determines this for slave server by comparing the modification time of the file with the modification time of database. If
the file is newer, then the database, database, need not be transferred to Finally, propagates the database to those servers which need a
new copy of the database and updates the modification time of the file for these slave servers.
Options-safe Specifies that the data sent over the network is guaranteed to be authenticated at the destination and protected against modifica-
tions in transit. That is, and which are Kerberos principals, become Kerberos-authenticated to each other and send messages format-
ted by For more information about refer to the on-line reference page,
-clear Specifies that all data should be sent in cleartext (unencrypted). This switch is useful when first setting up the Kerberos envi-
ronment.
-realm Specifies the realm name that you are in. If this option is not used, the realm_name is given in the file. (See the reference page
for more information.)
-force Forces the on the Kerberos master to propagate the Kerberos database to the Kerberos slaves, even if there are no recent changes to
the database. Without the force flag, the Kerberos database is not propagated if the database file has not changed since the last
successful transfer.
Restrictions
The Kerberos utility does not support the transfer of encrypted data.
Files
See Also
kpropd(8krb), krb.conf(5krb), kdb_util(8krb), krb_slaves(5krb), krb_dbase(8krb)kprop(8krb)