I have program that I want to be able to use I guess you would call them functions.... to run muliple little programs or loops with one menu script. How would I do this. Here is some code I am using. Sorry about the formatting....it doesn't paste well.
echo "*****************************... (3 Replies)
I have a while read loop that reads values inside of a file and then performs an expr operation on each.
Everything works fine, the way it's supposed to but, once the loop is finished, I can not access the variable that I used inside of the loop (but that variable was created outside of the... (7 Replies)
Surely there's an easier way to do this, lets see if anyone knows! I am new to scripting so go easy on me!
I have the following script and at the moment it doesn't work and I believe the problem is that I am using a while loop within a while loop. When I run the script using sh -x I can see... (6 Replies)
Hi All,
I am trying to write a bash script that will read a list of numbers from a file, then it needs to use netcat to create a socket connection and pass header/request. I need to limit it to 100 connections. So, after the first set of 100 are fineshed, I need to loop and do it again with... (0 Replies)
Hi,
This is probably going to be very simple but i came across something i can't quite explain. Here is the situation: i have a list of files, which i'd like to process one by one (get the size, make some tests, whatever) and generate some statistics using different variables.
Something... (5 Replies)
Guru,
I try to make a loop of 2 files,
Input
File1.txt:
1
2
File2.txt:
A
B
C
A, B and C is a file name, inside A
X
Y
Z
Expected Output
A.1
X (2 Replies)
I am trying to use two nested for loops to process some files and then create a new file using both variables in the output file name. I have several files in this naming style:
S1_L3_all_R1.fastq
S1_L3_all_R2.fastq
S1_L4_all_R1.fastq
S1_L4_all_R2.fastq
.
.
S1_L8_all_R1.fastq... (3 Replies)
I have a script to start/stop/restart the tomcat application. When we run the script first time i.e stop/start it set all env variables(DISTRIB_ID,NAME,TOMCAT_CFG,....etc),but when we restart the tomcat it is running in the same shell.....I need to set the variables when i restart the tomcat(in the... (1 Reply)
All,
I have set up ssh trust between 3 machines. The aim is to connect from machine-A to B and C and clear the txt files in tmp on all 3 machines. And, I have 3 environments and each environment has 2 hosts. So I should be able to run this script on any environment.
Here is the logic:
I want... (5 Replies)
Hello,
I am trying to login to multiple servers and i have to run multiple loops to gather some details..Could you please help me out.
I am specifically facing issues while running for loops.
I have to run multiple for loops in else condition. but the below code is giving errors in for... (2 Replies)
Discussion started by: mohit_vardhani
2 Replies
LEARN ABOUT OSF1
convuser
convuser(8) System Manager's Manual convuser(8)NAME
convuser - convert user profile information between BASE and ENHANCED formats
SYNOPSIS
/usr/tcb/bin/convuser -a [-c] [-i] [-n] [-u] [-R] [-U uid] [-M] [-T template] [-[qv]] [users]
/usr/tcb/bin/convuser -b [-T template] [-[qv]] [users]
/usr/tcb/bin/convuser -d [-n] [-M] [-[qv]] [users]
/usr/tcb/bin/convuser -H
FLAGS -a Converts from BASE to ENHANCED authentication format. This option is incompatible with the -b and -d options. If none of -a, -b,
or -d have been supplied, then -a is implied by any of -c, -i, -n, -u, -R, or -U.
-b Converts from ENHANCED to BASE authentication format. This option is incompatible with the -a and -d options. The conversion in
this case is bring any compatible passwords from the extended profile back to the BASE profile.
-c Causes the conversion for -a to create new extended profiles only. If the -c option is given, existing extended profiles will
remain unchanged.
-d Removes any extended profiles which do not still have corresponding BASE profiles.
-i Cause the conversion for -a to invalidate the encrypted password field in the BASE profile if the change to the ENHANCED profile is
successful.
-n Cause the -a and -d conversions to include NIS passwd.byname map entries in the list of BASE profiles for consideration.
-q Cause non-error output to be suppressed.
-u Cause the -a conversion to leave the migrated passwords still usable. The default is to pre-expire them.
-v Cause more verbose reports of progress to be given.
-M Work on NIS master map files rather than the local profiles. This option works on NIS master hosts only.
-R Cause newly-created extended profiles to be written only to the /tcb/files directory tree (v4 only).
-T template
Causes the creation of new extended profiles to use user template as the template for the account default values. Causes the con-
version for -b to consider only accounts with template as the associated account template.
-U uid Causes newly-crated extended profiles with UID values less than uid to be written to the /tcb/files directory tree (v4 only).
-H Cause an extended usage message to be given and no other processing to be performed.
DESCRIPTION
The convuser utility is used to provide migration between BASE and ENHANCED security levels, as well as to provide support for the use of
existing account-creation scripts. The most common uses are to clean up dangling extended profiles (those without corresponding BASE pro-
files) after the removal of the base profiles, and to create new extended profiles to correspond to newly added base profiles.
EXAMPLES
To remove dangling profiles:
# convuser -d
# convuser -Md To finish the addition of new accounts on a system using NIS to supply the extended profile information:
# convuser -iu
# convuser -Miu To finish the addition of new accounts on a system using NIS to supply the extended profile information:
# convuser -iun
RELATED INFORMATION
Files:
prpasswd(4), authcap(4)
Security delim off
convuser(8)