Test User Generation Script

This script generates a sample user file that can be used as input in the previous provisioning script. It differs from the sample data file in that it will create any number of unique users from 1 to n. This script can be used to create hundreds or thousands of test accounts as needed.

Code Example 5-5. Test User Script Usage Example
 # !/bin/csh # # This script adds demo accounts # password set same as user_id if ( $#argv != 1 ) then echo "Wrong number of arguments" echo "Usage: $0 {number}" echo "" echo "where {number} is the number of test accounts to add" exit 1 endif set INSTALL_DIR=/A1000/demo6789/ims52 set mailhost=sparc5-1.central.sun.com set passwd=bacon set x=$1 cd $INSTALL_DIR/ndacli/bin while ( $x > 0 ...

Get Sun™ ONE Messaging Server: Practices and Techniques for Enterprise Customers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.