dean@coplex.UUCP (Dean Brooks) (08/19/90)
I have been unable to find any mention of this, but is there a global init file for elm? We have around 30 users at our site who have no clue how to work with computers, but need to have a working mail program. The turnaround on employees at our site is also high, so setting up a .elmrc file for every new user is a pain. Is it possible to have a global init file that would be in effect for everyone? -- dean@coplex.UUCP Dean A. Brooks Copper Electronics, Inc. Louisville, Ky UUCP: !uunet!coplex!dean
root@texbell.sbc.com (Greg Hackney) (08/20/90)
In article <188@coplex.UUCP> dean@coplex.UUCP (Dean Brooks) writes: > I have been unable to find any mention of this, but is there a global >init file for elm? I don't follow this group much anymore, and don't run the latest version of Elm anymore, so I don't know if they put a global file in or not. A lot of default stuff is pre-configured in elm.h at compilation. However, it should be real easy to hack in a global .elmrc file in the file "read_rc.c": /* Look for the elmrc file */ sprintf(filename,"%s/%s", home, elmrcfile); if ((file = fopen(filename, "r")) == NULL) { dprint(2,(debugfile,"Warning:User has no \".elm/elmrc\" file\n\n")); /* look for old-style .elmrc file in $HOME */ sprintf(filename, "%s/.elmrc", home); if (access(filename, 00) != -1) { move_old_files_to_new(); /* try to open elmrc file again */ sprintf(filename,"%s/%s", home, elmrcfile); if((file = fopen(filename, "r")) == NULL) { dprint(2, (debugfile, "Warning: could not open new \".elm/elmrc\" file.\n")); ---> /* Look for the global elmrc file */ ---> sprintf(filename,"%s", GLOBAL_ELMRC_FILE); ---> if ((file = fopen(filename, "r")) == NULL) { ---> dprint(2,(debugfile,"Warning:User has no \".elm/elmrc\" file\n\n")); Some of the Elmheads can probably elaborate on what other effects this will have. -- Greg Hackney