PMDF popstore & MessageStore Manager's Guide


Previous Contents Index

6.6 Changing new account defaults

Recall that when a new account is created with the add command, the default account is used as a source of defaults for the new account. Thus, by changing the settings for the default account with the modify command, you change the defaults which will be applied to subsequently created accounts. For instance, to change the default account quota to 100 kbytes with an overdraft quota of 10 kbytes, you would modify the default account accordingly:


popstore> modify default -quota=100 -overdraft=10

Note that the settings for the default account only applies to new accounts created with the add command. The default account settings do not apply to all existing accounts.

6.7 Bulk loading accounts

To create many accounts at once, use the run command. Before using that command, first create a text file containing commands with one command per line. For instance,


# cat a.com
add jdoe -owner "John Doe" -password 133458 
add csmith -owner "Cathy Smith" -password 244587 
add rbrown -owner "Randy Brown" -password 569214 
...
# 
Then use the run command to execute the commands from the file:


# pmdf popstore
popstore> run -log a.com
popstore> add bjames -owner "Bob Jones" -password 133458 
popstore> add csmith -owner "Cathy Smith" -password 244587 
popstore> add rbrown -owner "Randy Brown" -password 569214 
popstore> ...
popstore> quit
# 
Each command will be read from the specified file and executed. By default, if an error occurs, it will be reported and processing of the file will be aborted. Use the -ignore switch to cause processing to continue despite any errors which might occur.


Previous Next Contents Index