|
Post by mueh on Jun 24, 2023 10:11:23 GMT -5
Hi Randall ! It's no error on your side . -IMPORT permanently fails to add the Profile on my side if File name is specified . George : I think CFGMAINT line 1126 PMode OR= %PQuiet ' Force Quiet mode for IMPORT filename is causing the problem . George: Do you think this code is usefull also it's documented under Import ? Note: When a specific file-name is provided, CFGMaint will treat the run as a -QUIET run, no pop-ups for errors will be done nor will you be prompted to proceed with the actual table loading.
|
|
|
Post by Robert on Jun 24, 2023 11:52:18 GMT -5
Randall, thanks for the clarification. I have a saying about myself: "I'm not that fast, and I'm not that smart, but I can be careful". Part of being careful is having a keen eye for inconsistencies. So when I saw two different names for the profile in question, I immediately go into careful/consistency-checker mode.
Thanks for clearing this up. I see that the problem had nothing to do with mistaken names, but there are some fundamental code issues that need to be addressed.
Sometimes 'careful mode' works, and sometimes you actually need to know something. I have been involved in SPFLite for a long time, but I hardly know everything, and in fact I seem to know less about it each day :-(
R
|
|
|
Post by George on Jun 24, 2023 12:56:29 GMT -5
Randall: Have you looked in the \SPFLIte\ data folder for the LOG file? If something is failing, there should be a log file identifying what's happening. CFGMaint logs just about everything it does, and only throws the LOG file away if everything is OK.
When a CFG entry is re-loaded, a message - Loading Table: PL075 - should be displayed. When I tried your file with the missing space, I could see the message about correcting the LASTACCES field.
George
|
|
|
Post by George on Jun 24, 2023 13:00:49 GMT -5
MUEH: The theory behind the default QUIET mode was that if a filename was specified, then CFGMAINT was probably being used in some kind of BAT file and pop-up intervention is not wanted. (Typing long file names at a Cmd prompt is no fun.)
But maybe that should be removed.
George
|
|
|
Post by Robert on Jun 24, 2023 13:31:20 GMT -5
George, I do believe in actual BAT files, if certain commands are run, CMD.EXE will suppress warning popups, or will use the value of a command flag to "pre-answer" the warning popup.
Suppose you had a "-WARN" option on CFGMAINT. I see it could take values like
-WARN=QUIET If a warning-level issue occurs, quietly allow it
-WARN=ASK If a warning-level issue occurs, as the user what to do about it
-WARN=FAIL If a warning-level issue occurs, treat it as a failure condition and halt
It would be "nice" if you could 'figure out' if CFGMAINT was running in a BAT file, and choose the right way to handle things, but I am not sure it's possible.
|
|
|
Post by rprinceton on Jun 27, 2023 15:10:22 GMT -5
Hi George, Can you try importing a profile by specifying it as a parm to the CFGmaint program? e.g., CFGMaint.exe -IMPORT some.profile.TXT If you can get this to work then please provide me with the exact string you specified. Thank you. Regards, Randall Princeton
|
|
|
Post by George on Jun 27, 2023 15:37:11 GMT -5
Randall: OK, just tried an Import and, yes, it didn't work.
So, I have some work to do here. Sorry for the problems this has caused you.
George
|
|
|
Post by George on Jun 28, 2023 8:15:27 GMT -5
Randall: Tried to send you an email. It gets rejected by your mail server. Tried twice.
Regardless, thanks.
George
|
|
|
Post by rprinceton on Jun 28, 2023 10:45:55 GMT -5
Hi George, Please use RPrinceton@gmail.com for the eMail. It should work. Thank you. Regards, Randall Princeton
|
|
|
Post by George on Jun 28, 2023 11:45:05 GMT -5
Randall: I found the CFGMaint quirk, here's a corrected version, it should work much better. I also removed the assumption of QUIET mode for the import. If messages are to be suppressed, use -QUIET. George CFGMaint.exe (97 KB)
|
|
|
Post by rprinceton on Jun 28, 2023 12:55:49 GMT -5
Hi George, Works beautifully! Thank you. Let me know if you would like me to try any additional tests. Sidenote: To suppress the load messages, it appears that the -QUIET keyword must be specified before the -IMPORT keyword. The reason I bring it up is that in the help manual the -QUIET keyword is specified in a trailing position. Thank you again. Regards, Randall Princeton
|
|
|
Post by George on Jun 28, 2023 14:27:57 GMT -5
Randall: Hmmm, I'll check that, but maybe a filename type operand has to be last. We'll see.
Glad it's working better, looking at it, it was a pretty dumb error.
George
|
|