Can anyone direct me to a resource that explains scripting in simple terms?
I have visited many sites and browsed this forum and have yet to find simple explanations. (8 Replies)
I have written some scripts that do a few admin tasks on 23 servers I manage.
Usually I execute these scripts from one server by running ssh commands remotley, i.e.
ssh root@server2 shellscript, ssh root@server2 shellscript & so on..
It works fine but I want to improve this by writing a... (3 Replies)
from CLI pressing Tab and character like a shows result of the commands starting with a,
can i use this in a script too and post the results to a file?
thanks (1 Reply)
can you help me to create a phone book with add, delete, modify with first name, last name, middle name, phone no(multiple ph no), address, email address, notes or comments to store about the contact and groups that hold for the contact..
i am new to this linux environment. please guide me.
... (1 Reply)
I'm trying to write a script that in the end will from one central location hop to a bunch of servers and then run a series of ping tests. The thing is, the list of devices that needs to be pinged is going to be different for each server. So what I want to do is be able to do is read through the... (0 Replies)
Hi all!
I am trying to write a script that will check if a certain directory is available at several different nodes and then do stuff in it .....
On the beginning of the script I give as a variable the directory and the number of the nodes and then I loop like this:
for... (3 Replies)
Hello All,
I am trying to run some simulations through SSH from my mac on our university SOLARIS system. My problem is that whenever I want to execute a command I get an error which says "Invalid argument".
Maybe I should explain more what I want to do and what I did.
Firstly I installed a... (10 Replies)
I am connecting to a device using telnet, I want my script to perform certain commands : ie- show device , show inventory..etc and write the output it sees from the terminal to a file.
this is what I have got :
#!/usr/bin/expect --
set running 1
spawn telnet <ip address>
expect ... (1 Reply)
I wish to create an executable bash script that will run the following commands as root, that is, using sudo su
iptables-save | awk '/^
/ { print $1 }
/^:+ / { print $1 " ACCEPT" ; }
/COMMIT/ { print $0; }' | iptables-restoreMy first attempt at bash... (9 Replies)
Hi Good morning all,
I want to create script file with multiple commands.
For ex:
pmrep connect is one of the command to connect to repository.
pmrep objectexport is another command to export objects to a file.
These commands should run sequentially.But when i try to execute this, the first... (4 Replies)
Discussion started by: SekhaReddy
4 Replies
LEARN ABOUT ULTRIX
newinv
newinv(1) General Commands Manual newinv(1)Name
newinv - update distribution kit master inventory
Syntax
/usr/sys/dist/newinv mi-file input-path
Description
The command interactively maintains the master inventory files used for producing distributions in format. The program updates the master
inventory for a product when changes are made to the hierarchy of files which are to be packaged in the subsets which constitute the prod-
uct.
The product hierarchy is scanned to produce a list of component path names relative to input-path. The list of path names is processed
against the mi-file to produce a list of those files which have been removed from the product hierarchy and a list of those files which
have been added.
The user is then given an opportunity to intervene and direct the inventory maintenance by editing these lists. The user is placed in the
editor with each list available for editing. The editor used is the one specified by the EDITOR environment variable. If EDITOR is not
set, is used. When editing the list of files which have been removed from the product, the user is expected to verify that the removals
were intentional, and confirm the intent by removing the associated record from the file. When editing the list of files which have been
added to the product, the user is expected to provide flags and subset information for each new file, transforming the elements of the list
into master inventory records.
Both of these lists are merged with the records for the files which have not been changed to produce a new copy of the master inventory
file.
Arguments
mi-file The pathname of the master inventory file to be processed. If no master inventory file exists, you must create an empty one
before using the command.
input-path The name of the product hierarchy to be scanned for files belonging in the inventory. All files and directories found below
the input-path will be processed as belonging in the inventory.
Restrictions
The default text editor if not specified in $EDITOR is
Files in the product hierarchy cannot be excluded from the master inventory. Files can be blocked from being kitted in the final distribu-
tion kit by setting the subset field of the master inventory record to NOSHIP.
Examples
To update the master inventory file ULT400.mi from the hierarchy beginning at /var/kits/input, type:
newinv ULT400.mi /var/kits/input
Diagnostics
newinv: where is mi-file?
The mi-file specified on the command line cannot be found.
input-path: bad directory.
The input-path directory specified on the command line does not exist.
Files
Backup copy of master inventory
The list of files missing from the product.
The list of files new to the product.
Intermediate join file.
List of all files in the product.
See Alsokits(1), vi(1), stl_mi(5), environ(7), setld(8)
Guide to Preparing Software for Distribution on ULTRIX Systems
newinv(1)