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 OSF1
ypsetup
nissetup(8) System Manager's Manual nissetup(8)NAME
nissetup, ypsetup - Sets up the Network Information Service (NIS) environment
SYNOPSIS
/usr/sbin/nissetup
/usr/sbin/ypsetup
DESCRIPTION
The nissetup (formerly ypsetup) script configures and runs NIS on your system. You can use nissetup to initially set up your NIS configura-
tion, to change your current NIS configuration, or to remove your NIS configuration. NIS provides a distributed data lookup service for
sharing data among networked systems.
Before running nissetup, make sure that your system is connected to a local area network and that the network is configured and running.
You must know the name of your NIS domain and your system's role in the domain (master server, slave server, or client).
Security Note
You invoke nissetup from the SysMan Menu. See sysman(8) for more information.
When using the nissetup script to set up a NIS server that is running with enhanced security, you must answer yes to the question about
locking the domain name and authorized servers (the ypbind -S option). If you are setting up a master server, the server is bound to itself
(done by default). If you are setting up a slave server, the server is bound to itself done by default) and optionally to the master server
and any other slave servers.
If your system will be the master server for your NIS domain, be sure no other master exists for your domain and that the NIS database
files are in the /var/yp/src directory.
Note
Remove the root entry, if it exists, from the passwd database file.
If your system be will be a slave server or client, be sure a master server is already set up for your NIS domain.
FILES
Specifies the command pathname NIS parameters pertinent to a specific system
Default NIS Databases
In the /var/yp/src directory, the default databases are: Group database Host database Sendmail alias database Network group aliases data-
base Network database Password database Protocol database RPC database Service database
SEE ALSO
Commands: domainname(1), ypwhich(1), svcsetup(8), sysman(8), sysman_station(8), ypbind(8), yppasswdd(8), ypserv(8), ypxfr(8)
Files: svc.conf(4)
Networking: nis_intro(7), nis_manual_setup(7)
Network Administration
nissetup(8)