Sponsored Content
Full Discussion: Help Needed in Unix Script
Top Forums Shell Programming and Scripting Help Needed in Unix Script Post 302312044 by amritansur on Thursday 30th of April 2009 08:33:11 AM
Old 04-30-2009
Help Needed in Unix Script

Hi,

I have multiple servers and each server hosts multiple databases. Now i have requirement as below

1) Create a file in any server which will hold all the database name.

2) Write a shell script that will read the file and connect to each and every database. and log out of it one by one.

Please help me in this.

Thanks in advance
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Unix help needed!

I have a few questions about Unix. Can you please help! 1.How do I create an alias that greps the password file for my username and returns my password file entry? Once I get the alias to work I want to be able to let a friend use it .So that he can use the alias to locate his password entry... (1 Reply)
Discussion started by: JJJ
1 Replies

2. UNIX for Dummies Questions & Answers

Unix help needed !!

friends i wanted to now whehter there exists a book as a solution to the questions posted in exercies of the Design of Unix Operating system by Maurice J Bach !..its really urgent !! (1 Reply)
Discussion started by: darshaan
1 Replies

3. UNIX for Dummies Questions & Answers

Help needed in Basic UNIX

hi friends, How to obtain list of groups we r a member of and redirect it to a file. how to append the details of current OS to a file. how to append the estimated file space to a file. how to append the details of users loged on along wth their current activity into a file. Thank you...I'm... (3 Replies)
Discussion started by: bobby36
3 Replies

4. Shell Programming and Scripting

Script needed to FTP a file from sql report to unix server

Hi All, I have a Sqlplus report which will create a file. I need a FTP Script that will be executed inside the Sqlplus Report to FTP the report output file to unix server. Thanks, Previn (0 Replies)
Discussion started by: vprevin
0 Replies

5. UNIX for Advanced & Expert Users

Help needed with unix script

Hi All, I need to find out the completed transactions count which happened during a particular time duration from a log file. I'm a newbie with scripts and i'm unable to figure out how to get this task done with scripts. I have a transaction log file which has various lines indicating the... (1 Reply)
Discussion started by: haran_3k
1 Replies

6. Shell Programming and Scripting

Unix Script or command Needed

Hi, I am new to Shell Scripting. I need to pick the files from one directory and place them in another directory based on time stamp.It should pick the files if the files is not accessed for 1 hour. Can any one please help me how to work on this. Thanks in Advance. Regards, Prakash (1 Reply)
Discussion started by: kvrprakash
1 Replies

7. Homework & Coursework Questions

Unix Homework Help Needed

#!/bin/sh #Buddy Gibbons #COP3353 - Assignment 4 #4/21/12 file=$1 directories=0 files=0 rfiles=0 xfiles=0 wfiles=0 if then echo "Usage: assignment4.sh <directory_name>" exit fi (1 Reply)
Discussion started by: tennistennis1
1 Replies

8. Homework & Coursework Questions

Linux/UNIX Bash Shell Script trouble help needed!!

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 2. Shell Bash Script 3. !/bin/bash if echo no directory then mkdir -p /home/AC_Drywall elif ; then echo "$dir already exist" fi (4 Replies)
Discussion started by: TomFord1
4 Replies

9. Shell Programming and Scripting

Help needed to create a UNIX Space monitoring script

Hi All, Its urgent.. pls help me out.. I want to create a KSH which should generate a report with the list of users and the files larger than 5 GB created by them in a direcorty and send autogenerated e-mail to them. my input would be users list,directory path and the file size (say 5 GB) ... (11 Replies)
Discussion started by: anman0523
11 Replies

10. Shell Programming and Scripting

Needed SFTP script from windows to UNIX server and from UNIX to windows server(reverse SFTP)

hi guys, i need a script to sftp the file from windows to unix server ....(before that i have to check whether the file exists in the windows server or not and again i have to reverse sftp the files from unix to windows server..... regards, Vasa Saikumar. (13 Replies)
Discussion started by: hemanthsaikumar
13 Replies
ypinit(1M)																ypinit(1M)

NAME
ypinit - build and install Network Information Service databases SYNOPSIS
NIS_domain] NIS_server_name NIS_domain] Remarks The Network Information Service (NIS) was formerly known as Yellow Pages (YP). Although the name has changed, the functionality of the service remains the same. DESCRIPTION
is a shell script that creates Network Information Service (NIS) databases on either a master or slave NIS server. asks a few self- explanatory questions, and reports success or failure to the terminal. For an overview of Network Information Service, see ypfiles(4) and ypserv(1M). Options recognizes the following options and command-line arguments: Create the local host as the master server to all maps (databases) provided in the NIS domain (see domainname(1)). All maps are built from scratch, either from information pro- vided to at run-time, or from ASCII files in All such files should be complete and unabbreviated, unlike how they may exist on a NIS client machine (see passwd(4) for examples of abbreviated files). See ypmake(1M) for more information on how NIS databases are built on the master server. Note that uses the option when invoking so newly formed maps are not immediately copied to slave servers (see ypmake(1M)). Create NIS databases on a slave server by copying the databases from an existing NIS server that serves the NIS domain. The NIS_server_name argument should be the host name of either the master server for all the maps or a server on which the maps are current and stable. Configures the local host as a NIS client, so that the NIS client will attempt to bind to a particular NIS server. Invocation of with a option prompts the user to construct a list of NIS servers, in the order of preference, to which the client will try to bind. Each of these NIS servers must be listed in the file along with its IP Address. This list of NIS servers is stored in the file This file is used by when invoked without the option. (See ypbind(1M) in ypserv(1M)). If it is so desired that it is not necessary for a NIS client to bind to a NIS server in a particular list, the installation mechanism could be ignored. Causes to construct maps for the specified NIS_domain. defaults to the NIS domain shown by the command (see domain- name(1). RETURN VALUE
returns exit code 0 if no errors occur; otherwise, it returns exit code 1. AUTHOR
was developed by Sun Microsystems, Inc. FILES
SEE ALSO
domainname(1), makedbm(1M), ypmake(1M), yppush(1M), ypserv(1M), ypxfr(1M), ypxfrd(1M), group(4), hosts(4), netgroup(4), networks(4), passwd(4), protocols(4), publickey(4), rpc(4), services(4), ypfiles(4). ypinit(1M)
All times are GMT -4. The time now is 11:06 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy