I guess we need a better idea of what you're trying to accomplish. If it's just reconfiguring the virtual machine with some differences for a specific userid, then it's not too uncommon to have a standard PROFILE EXEC that tests for a <userid> EXEC and runs it if it exists. Example code snippet:
'ESTATE' userid() 'EXEC A' if rc ^= 28 then do 'EXEC' userid() end Your specialized startup then goes into <userid> EXEC. -- db David Boyes Sine Nomine Associates > -----Original Message----- > From: Linux on 390 Port [mailto:[EMAIL PROTECTED] Behalf Of > Tzafrir Cohen > Sent: Thursday, March 13, 2003 12:16 PM > To: [EMAIL PROTECTED] > Subject: Re: reset a computer > > > On Thu, Mar 13, 2003 at 12:47:11PM -0500, Adam Thornton wrote: > > On Thu, Mar 13, 2003 at 11:31:56AM -0500, David Boyes wrote: > > > IF you're already in CMS, just type profile to rerun the > profile exec. > > No can do. Needs to be run from a script. > > > > > > > If you're not in CMS and the userid is set up to run CMS > (ie has a 191 > > > minidisk and links to MAINT 190), then either using hcp > to run the IPL > > > CMS command will do, or the real > share-nothing,take-no-prisoners IPL 190 > > > PARM CLEAR should do the trick (not recommended for large > numbers of > > > guests). Both disrupt Linux, obviously. > > > > And both will leave your disk in an inconsistent state, > requiring fsck. > > I don't care about this. The profile.exec loads a different > initrd that > runs mke2fs anyway. > > > > > Much better, IMHO, if you are or can easily be running a > kernel with the > > shutdown/signal processing stuff in it, would be: > > > > Build a kernel with parmline support. Add Leland Lucius's > patches to > > appropriately case the VMPOFF stuff. Heck, save it as an NSS just > > because you can. > > > > Then: > > > > IPL LINUXNSS PARM LINE VMPOFF="IPL CMS" > > > > Then, once it boots to Linux again, issue > > > > shutdown -h > > > > from the root prompt. > > What's the difference between this and 'hcp "ipl cms"' ? > > -- > Tzafrir Cohen > mailto:[EMAIL PROTECTED] > http://www.technion.ac.il/~tzafrir/ >
