I did the following on all the previously listed versions and could not find bash:
But I suppose another option would be to deploy bash on all those machines, and then the script would work fine
As for Perl, none of the admins here use it, and I for one don't know the first thing about it :/
Hi...How can I generate random numbers between a given range ...preferably between 1 and 100...in UNIX C programming...?
I tried out functions like rand(),drand48() etc but didnt get satisfactory results...
Thanks a lot in advance.......... (1 Reply)
I need to generate a random number in ksh everytime I run the script ,the range should be from 100 to 24800,I could use $RANDOM but I seem to have no control over the range of numbers ,could you please suggest some way I could implement this .Thanks.
Mervin (2 Replies)
Hello All...
Can someone help me generate a random password which will be 7 characters long which contains alpha-numeric characters using shell script.
I am looking to store the output of the script that generates the password to a variable within a script and use it as the password.
... (5 Replies)
I need a function to generate a random alphanumeric password in C code. It needs to be between 6-8 characters and follow the following rules:
Reject if same char appears # time: 4 or more
Reject if same char appears consecutively: 3 or more
I have the following random password working for... (2 Replies)
Hi,
I am using a remote storage service for backing up our data - we want to have a script run as part of a cron job which would do the backups from our local Linux machine to the service's Linux machine.
I want to use tar and ssh to do this (rather than mounting the disk and using cp) .... (5 Replies)
Hi
I have the below code
MAXCOUNT=10
count=1
echo
echo "$MAXCOUNT random numbers:"
echo "-----------------"
while # Generate 10 ($MAXCOUNT) random integers.
do
number=$ + 1 ]
"echo $number"
let "count += 1" # Increment count.
done
But aftre executing this
... (8 Replies)
i tried to use $random function in unix
i simply typed print $random at shell and it returnted no value
is there any function in korn shell that i can use to generate random number
help is appreciated (2 Replies)
Hi - I have a word GTTCAGAGTTCTACAGTCCGACGAT
I need to extract all the possible "chunks" of 7 or above letter "words" from this.
SO, my out put should be
GTTCAGA
TTCAGAG
TCAGAGT
CAGAGTTCT
TCCGACGAT
CAGTCCGACG
etc.
How can I do that with awk or any other language? I have no... (2 Replies)
Hi
I am new to expect. Please if any one can help on my issue its really appreciable. here is my issue:
I want expect script for random passwords and random commands generation.
please can anyone help me?
Many Thanks in advance (0 Replies)
Hi,,
Here i have attached a text file where iam facing problem in my code.
Please read the file and help me out of this issue..
Thanks in advance (4 Replies)
Discussion started by: vanid
4 Replies
LEARN ABOUT BSD
vipw
VIPW(8) System Manager's Manual VIPW(8)NAME
vipw - edit the password file
SYNOPSIS
vipw
DESCRIPTION
Vipw edits the password file while setting the appropriate locks, and does any necessary processing after the password file is unlocked.
If the password file is already being edited, then you will be told to try again later. The vi editor will be used unless the environment
variable EDITOR indicates an alternate editor.
Vipw performs a number of consistency checks on the password entries, and will not allow a password file with a ``mangled'' entry to be
installed. If vipw rejects the new password file, the user is prompted to re-enter the edit session.
Once the information has been verified, vipw uses mkpasswd(8) to update the user database. This is run in the background, and, at very
large sites could take several minutes. Until this update is completed, the password file is unavailable for other updates and the new
information will not be available to programs.
SEE ALSO chpass(1), passwd(1), passwd(5), adduser(8), mkpasswd(8)4th Berkeley Distribution March 11, 1989 VIPW(8)