[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference iosg::all-in-1_v30

Title:*OLD* ALL-IN-1 (tm) Support Conference
Notice:Closed - See Note 4331.l to move to IOSG::ALL-IN-1
Moderator:IOSG::PYE
Created:Thu Jan 30 1992
Last Modified:Tue Jan 23 1996
Last Successful Update:Fri Jun 06 1997
Number of topics:4343
Total number of notes:18308

369.0. "PROBLEM WRITING A SCRIPT" by VIRGO::SEKURSKI (Mary Beth Sekurski 245-5350) Tue Mar 31 1992 06:39

    
    Hello,     ALL-IN-1 V2.4  SYS_TIDY AND SYS_USER INSTALLED
    
    
    	Several of our users are moving to a new site and I need
    	force them to a 500 quota. Presently they have an 800 quota.
    
    	I've given them a two week notice to decrease their document
    	count.  On April 5th, I would like to run a script file to
    	set their quota's to 500.  
    
    	I'm new to script writing.  The following doesn't seem to
        work.  Can anyone see what I might be missing or where I've
    	made a mistake.   
    
    	What I did was duplicate the steps I keyed in by hand. The 
    	script will contain several users other users, but this was
    	just a test.  It doesn't even pass the line of SYS{CR}.
    
    	Thanks,
    
    	Mary Beth
    
    
        SYS{CR}
        MUA{CR}
        SEL{CR}
        {LF}
        SEKURSKI.MARYBETH{CR}
        E{CR}
        {GOLD PC NEXT SCREEN}
        {GOLD PC NEXT SCREEN}
        {GOLD PC NEXT SCREEN}
        {GOLD PC NEXT SCREEN}
        {GOLD DOWN}
        {GOLD DOWN}
        {GOLD DOWN}
        {GOLD DOWN}
        {GOLD DOWN}
        {GOLD DOWN}
        {LF}
        500{CR}{CR}
        SEL{CR}
        RYBAK.PAMELA{CR}
        E{CR}
        {GOLD PC NEXT SCREEN}
        {GOLD PC NEXT SCREEN}
        {GOLD PC NEXT SCREEN}
        {GOLD PC NEXT SCREEN}
        {GOLD DOWN}
        {GOLD DOWN}
        {GOLD DOWN}
        {GOLD DOWN}
        {GOLD DOWN}
        {GOLD DOWN}
        {LF}
        500{CR}{CR}
        EX{CR}
                 
T.RTitleUserPersonal
Name
DateLines
369.1Here are three other ways to do it57826::VICKERSIf it helps a customer, DO ITTue Mar 31 1992 08:0835
    Mary Beth,

    You might be better off using a DO mode script rather than a SCRIPT
    mode script.  A SCRIPT mode script emulates your keystrokes but is
    rather painful and error prone.  I suspect you already know that,
    however.  ;')

    The easiest way to make this rather sad change could be as simple as:

    FOR PROFIL WITH .DEPART EQS "SAD" THEN DO -
     GET #USER = .USER\\-
     WRITE CHANGE PROFIL USER=#USER,QUOTA="500"

    This assumes that the affected users all have SAD as their department
    name.

    If you can't get at a way to group the users in that way then you could
    just have a series of statements like:

    WRITE CHANGE PROFIL USER="SEKURSKI.MARYBETH",QUOTA="500"

    This approach assumes that you have a list of user names in text
    somewhere.

    Yet another approach would be to create a UPD to do the dastardly deed:

    .FUNCTION WRITE CHANGE PROFIL USER=$SM_ACCOUNT,QUOTA="500"

    Creating this as one of the F names (like F20) would allow you to
    select the user name ($SM_ACCOUNT) and then invoking the UDP by hitting
    the proper F key.

    Have fun,
    don

369.2A different approach ...AIMTEC::VOLLER_IGordon (T) Gopher for PresidentTue Mar 31 1992 08:1633
Mary Beth.

	You could us something like the following :-

	Login to ALL-IN-1 MANAGER account

	At CHOICE field type

		<FOR PROFIL DO WRITE CHANGE PROFIL .%KEY=.USER, QUOTA=500

	Note. If you need to be more selective then you'll need to modify the
	command. For example :-

		<FOR PROFIL WITH .USER = "A" ...

		Just gets the users who's names begin with A

		<FOR PROFIL WITH .USER == "FRED" ...

		Just user FRED

		<FOR PROFIL WITH .DEPART == "FINANCE"

		Just the FINANCE people 


		etc, etc ...

	Hope this helps.

Cheers,

Iain.
369.3Notes clash ...AIMTEC::VOLLER_IGordon (T) Gopher for PresidentTue Mar 31 1992 08:183
Don's answer is better than mine ...

Iain.
369.4Customize SM MUA IIOSG::TALLETTJust one more fix, then we can ship...Tue Mar 31 1992 11:5213
    
    	Well I'd take yet another approach! I'd take a copy of the index
    	form in System Management, MUA I, and add a new option, XSQ
    	multiple set doc quota. Copy the named data from one of the
    	other multiple select options and put in the WRITE CHANGE PROFIL
    	from the previous replies. You can test it by just selecting
    	one account, and then doing XSQ. When it all works, you can go
    	through the PROFILE and select the victim users, and do an XSQ
    	to set all their quotas. You also then have an option to set them
    	back when they complain to you manager... :-)
    
    Regards,
    Paul
369.5MGT MUA I x GE?IRONIC::KARPELand ALL-4-1!Tue Mar 31 1992 19:0611
    I believe you could also do this:
    
    MGT MUA I 
    Select some accounts
    GE (global edit)
    
    There is a field on this form to change document quota.  I can't check
    this out, because I don't have access to a 2.4 Manager account anymore, 
    but I know it was there in 2.3.
    
    Terri K.
369.6GE is Best Bet - 2.3 and 3.0 ONLYMINDER::FLACKI%ALL-IN-1-I-NEWFEA, &quot;ALL-IN-1 New Feature&quot;Tue Mar 31 1992 19:479
        
        Global Edit seems the best bet. It was there in 2.3 was gone 
        in 2.4 and is back in 3.0.
        
        Now you see it - now you don't !
        
        Ian.
        
        Upgrade.... :-)
369.7Thanks for all the helpVIRGO::SEKURSKIMary Beth Sekurski 245-5350Tue Mar 31 1992 20:4610
    
    
    	Thank you all for the hints and suggestions on the
    	way to change my quotas.  Users aren't too thrilled
    	about it but if they want their accounts transferred
    	they will have to live with it for a short time.
    
    	Again thank you.
    
    	Mary Beth
369.8Moved by modAIMTEC::WICKS_AVote Bill'n'Opus for a weirder USATue Mar 31 1992 22:299
    MAry Beth,
    
    This reply was posted as a new note instead of reply to this topic.
    
    Hope you don't mind me moving it here where it makes more sense.
    
    Regards,
    
    Andrew.D.Wicks