cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Discussions

Solve problems, and share tips and tricks with other JMP users.
%3CLINGO-SUB%20id%3D%22lingo-sub-17975%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EAcquisizione%20del%20file%20di%20registro%20durante%20una%20sessione%20di%20script%20JMP%20non%20interattiva%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-17975%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%26lt%3Bmeta%20http-equiv%3D%22Content-Type%22%20content%3D%22text%2Fhtml%3B%20charset%3DUTF-8%22%20%2F%26gt%3B%3CP%3ECiao%2C%3C%2FP%3E%3CP%3ESo%20che%20questo%20%C3%A8%20stato%20chiesto%20prima%2C%20ma%20la%20soluzione%20menzionata%20non%20ha%20funzionato%20per%20me.%20Voglio%20scrivere%20nel%20registro%20e%20salvare%20l'output%20durante%20una%20parte%20specifica%20del%20mio%20script.%3C%2FP%3E%3CP%3EIl%20log%20capture()%20funziona%20quando%20ho%20JMP11%20aperto%20ma%20quando%20eseguo%20jsl%20come%20sessione%20autonoma%20non%20interattiva%20non%20ottengo%20alcun%20output.%3C%2FP%3E%3CP%3ECredo%20che%20il%20problema%20sia%20che%20non%20viene%20avviato%20alcun%20file%20di%20registro%20inizialmente%20quando%20il%20thread%20JMP%20viene%20avviato%20in%20background%2C%20quindi%20mi%20chiedevo%20se%20fosse%20possibile%20aprire%20la%20finestra%20di%20registro%20con%20un%20po'%20di%20jsl%3F%3F%3C%2FP%3E%3CP%3EOPPURE%20esiste%20un%20modo%20pi%C3%B9%20efficace%20per%20acquisire%20il%20file%20di%20registro.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EPer%20tua%20informazione...%20il%20motivo%20per%20cui%20desidero%20l'output%20del%20file%20di%20registro%20%C3%A8%20perch%C3%A9%20sto%20costruendo%20tabelle%20html%20da%20tabelle%20di%20dati%2C%20quindi%20volevo%20un%20file%20automatizzato%3C%2FP%3E%3CP%3Escript%20piuttosto%20che%20dover%20aprire%20JMP%20ed%20eseguire%20il%20mio%20script.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EQualsiasi%20suggerimento%20%C3%A8%20molto%20apprezzato%2C%3C%2FP%3E%3CP%3EGrazie.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-17981%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERi%3A%20Acquisizione%20del%20file%20di%20registro%20durante%20una%20sessione%20di%20script%20JMP%20non%20interattiva%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-17981%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ECraige%2C%3C%2FP%3E%3CP%3EMi%20piace%20il%20tuo%20suggerimento%20sull'utilizzo%20di%20una%20stringa%20JSL%20e%20saveTextFile.%20Potrei%20aggiornare%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Fdocs%2FDOC-6420%22%20target%3D%22_blank%22%3E%20Esporta%20la%20tabella%20dati%20in%20HTML%3C%2FA%3E%20per%20fare%20questo.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EAggiornamento%3A%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Fdocs%2FDOC-6420%22%20target%3D%22_blank%22%3E%20Esporta%20la%20tabella%20dati%20in%20HTML%3C%2FA%3E%20%C3%A8%20ora%20aggiornato%20per%20funzionare%20in%20questo%20modo.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-17980%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERi%3A%20Acquisizione%20del%20file%20di%20registro%20durante%20una%20sessione%20di%20script%20JMP%20non%20interattiva%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-17980%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EMi%20interessa%20sapere%20come%20stai%20realizzando%20questo%3A%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22color%3A%20%23555555%3B%20font-family%3A%20'Helvetica%20Neue'%2C%20Helvetica%2C%20Arial%2C%20'Lucida%20Grande'%2C%20sans-serif%3B%20font-size%3A%2013px%3B%22%3E%22Hai%20ragione%20quando%20dici%20che%20JMP%20deve%20essere%20aperto%20ma%20si%20apre%20come%20thread%20di%20processo%20in%20background%22%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22color%3A%20%23555555%3B%20font-family%3A%20'Helvetica%20Neue'%2C%20Helvetica%2C%20Arial%2C%20'Lucida%20Grande'%2C%20sans-serif%3B%20font-size%3A%2013px%3B%22%3EChe%20sistema%20operativo%20stai%20utilizzando%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22color%3A%20%23555555%3B%20font-family%3A%20'Helvetica%20Neue'%2C%20Helvetica%2C%20Arial%2C%20'Lucida%20Grande'%2C%20sans-serif%3B%20font-size%3A%2013px%3B%22%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22color%3A%20%23555555%3B%20font-family%3A%20'Helvetica%20Neue'%2C%20Helvetica%2C%20Arial%2C%20'Lucida%20Grande'%2C%20sans-serif%3B%20font-size%3A%2013px%3B%22%3EEsistono%20molti%20modi%20per%20eseguire%20uno%20script%20automatizzato%20che%20aprir%C3%A0%20effettivamente%20JMP%2C%20ad%20esempio%20tramite%20un%20file%20.bat.Non%20funzioner%C3%A0%20neanche%20questo%3F%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-17979%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERi%3A%20Acquisizione%20del%20file%20di%20registro%20durante%20una%20sessione%20di%20script%20JMP%20non%20interattiva%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-17979%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ENon%20sono%20sicuro%20che%20funzioner%C3%A0%2C%20ma%20vale%20la%20pena%20provarlo...%20nelle%20preferenze%20specifiche%20di%20Windows%20o%20inviare%20(in%20un'esecuzione%20*precedente*%20in%20entrambi%20i%20casi%2C%20ovviamente)%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%208pt%3B%20font-family%3A%20'courier%20new'%2C%20courier%3B%22%3EPreferenze%20(Log%20Open%20Strategy(%20%22Avvio%22))%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EIn%20alternativa%2C%20se%20stai%20creando%20HTML%20nella%20finestra%20di%20registro%2C%20valuta%20la%20possibilit%C3%A0%20di%20crearlo%20in%20una%20stringa%20JSL%2C%20quindi%20utilizzare%20saveTextFile%20per%20salvare%20la%20stringa.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EQuale%20approccio%20stai%20utilizzando%20per%20avviare%20JMP%3F%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3ECraige%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-17978%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERi%3A%20Acquisizione%20del%20file%20di%20registro%20durante%20una%20sessione%20di%20script%20JMP%20non%20interattiva%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-17978%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EProva%20a%20impostare%20la%20funzione%20BatchInteractive().Questo%20potrebbe%20risolvere%20il%20tuo%20problema.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EBatchInterattivo(0)%3B%20o%20BatchInteractive(1)%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-17977%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERi%3A%20Acquisizione%20del%20file%20di%20registro%20durante%20una%20sessione%20di%20script%20JMP%20non%20interattiva%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-17977%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EQuesto%20%C3%A8%20il%20post%20a%20cui%20mi%20riferisco%2C%20grazie.%3C%2FP%3E%3CP%3ELo%20snippet%20di%20codice%20che%20hai%20suggerito%20non%20funzioner%C3%A0%20poich%C3%A9%20visto%20di%20seguito%20open%20log%20non%20sembra%20essere%20un%20comando%20valido.%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2012pt%3B%20font-family%3A%20Courier%20New%3B%22%3Eregistro%20aperto%3CSTRONG%3E%20()%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23000080%3B%20font-size%3A%2012pt%3B%20font-family%3A%20Courier%20New%3B%22%3E%20%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22color%3A%20%23000080%3B%20font-size%3A%2012pt%3B%20font-family%3A%20Courier%20New%3B%22%3E%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22color%3A%20%230000dd%3B%20font-size%3A%2012pt%3B%20font-family%3A%20Courier%20New%3B%22%3Espettacolo%3C%2FSPAN%3E%3CSTRONG%20style%3D%22%3A%20%3B%20font-size%3A%2012pt%3B%20font-family%3A%20Courier%20New%3B%22%3E%20(%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-size%3A%2012pt%3B%20font-family%3A%20Courier%20New%3B%22%3E%20%C3%A8%20aperto%3CSTRONG%3E%20())%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23000080%3B%20font-size%3A%2012pt%3B%20font-family%3A%20Courier%20New%3B%22%3E%20%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EQuando%20apro%20una%20sessione%20JMP%2C%20apro%20il%20mio%20script%20e%20poi%20lo%20eseguo%2C%20capture%20log()%20funziona%2C%20infatti%20inizialmente%20utilizzavo%20il%20comando%20save%20log()%20quando%20eseguivo%20lo%20script%20manualmente%2C%20prima%20di%20iniziare%20a%20cercare%20una%20soluzione%20automatizzata.%3C%2FP%3E%3CP%3EHai%20ragione%20quando%20dici%20che%20JMP%20deve%20aprirsi%20ma%20si%20apre%20come%20thread%20di%20processo%20in%20background%20e%20non%20puoi%20effettivamente%20vederlo%2C%20questo%20%C3%A8%20il%20motivo%20per%20cui%20credo%20che%20quando%20si%20apre%20il%20registro%20non%20si%20apra%20automaticamente%20con%20quel%20processo.%3C%2FP%3E%3CP%3EGrazie%20per%20la%20risposta.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-17976%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERi%3A%20Acquisizione%20del%20file%20di%20registro%20durante%20una%20sessione%20di%20script%20JMP%20non%20interattiva%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-17976%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ETi%20riferisci%20a%20questo%3F%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Fmessage%2F223177%22%20target%3D%22_blank%22%3E%20Ri%3A%20Posso%20visualizzare%20il%20registro%20di%20un%20eseguibile%20(%5C!)%20JSL%3F%3C%2FA%3E%20In%20caso%20contrario%2C%20guarda%2C%20dai%20un'occhiata.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EPuoi%20aprire%20il%20registro%20e%20vedere%20se%20%C3%A8%20aperto%20con%20questi%20comandi%3A%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010.0pt%3B%20font-family%3A%20Consolas%3B%20color%3A%20%230000dd%3B%22%3EApri%20registro%3C%2FSPAN%3E%3CSTRONG%20style%3D%22color%3A%20black%3B%20font-size%3A%2010.0pt%3B%20font-family%3A%20Consolas%3B%22%3E%20()%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-size%3A%2010.0pt%3B%20font-family%3A%20Consolas%3B%20color%3A%20navy%3B%22%3E%20%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010.0pt%3B%20font-family%3A%20Consolas%3B%20color%3A%20%230000dd%3B%22%3ESpettacolo%3C%2FSPAN%3E%3CSTRONG%20style%3D%22color%3A%20black%3B%20font-size%3A%2010.0pt%3B%20font-family%3A%20Consolas%3B%22%3E%20(%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-size%3A%2010.0pt%3B%20font-family%3A%20Consolas%3B%20color%3A%20%230000dd%3B%22%3E%20Il%20registro%20%C3%A8%20aperto%3C%2FSPAN%3E%3CSTRONG%20style%3D%22color%3A%20black%3B%20font-size%3A%2010.0pt%3B%20font-family%3A%20Consolas%3B%22%3E%20()%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-size%3A%2010.0pt%3B%20font-family%3A%20Consolas%3B%20color%3A%20black%3B%22%3E%3CSTRONG%3E%20)%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-size%3A%2010.0pt%3B%20font-family%3A%20Consolas%3B%20color%3A%20navy%3B%22%3E%20%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EMa%20penso%20che%20ti%20sfugga%20qualcosa%20quando%20dici%3A%20%22%3CSPAN%20style%3D%22color%3A%20%23555555%3B%20font-family%3A%20'Helvetica%20Neue'%2C%20Helvetica%2C%20Arial%2C%20'Lucida%20Grande'%2C%20sans-serif%3B%20font-size%3A%2013px%3B%22%3E%20Il%20log%20capture()%20funziona%20quando%20ho%20JMP11%20aperto%20ma%20quando%20eseguo%20jsl%20come%20sessione%20autonoma%20non%20interattiva%20non%20ottengo%20alcun%20output.%22%3C%2FSPAN%3EAffinch%C3%A9%20JSL%20possa%20essere%20eseguito%2C%20JMP%20deve%20essere%20aperto.JSL%20viene%20eseguito%20solo%20tramite%20jmp.exe%20che%2C%20eseguito%20da%20un%20prompt%20dei%20comandi%20o%20ovunque%2C%20aprir%C3%A0%20JMP.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
lenny
Level II

Capturing the log file during a non interactive JMP script session

Hi there,

I Know this was asked before but the solution mentioned didn't work for me. I want to write to the log and save the output during a specific portion of my script.

The log capture() works when I have JMP11 open but when I run the jsl as a stand alone non interactive session I get no output.

I believe the problem is that there is no log file started initally when the JMP thread starts in the background, so I was wondering if you can open the log window with some jsl??

OR is there a more robust way to capture the log file.

FYI.. the reason I want the log file output is because i am constructing html tables from data tables so I wanted an automated

script rather than me having to open JMP and run my script.

Any suggestions greatly appreciate,

Thank you.

6 REPLIES 6
msharp
Super User (Alumni)

Re: Capturing the log file during a non interactive JMP script session

Are you referring to this Re: Can I view the log of an executable (\!) JSL? If not look check it out.

You can open the log and see if it's open with these commands:

Open Log();

Show( Is Log Open() );

But, I think you are missing something when you say:  "The log capture() works when I have JMP11 open but when I run the jsl as a stand alone non interactive session I get no output."  In order for JSL to run JMP has to open.  JSL only runs through jmp.exe which running from a command prompt or anywhere will open JMP.

lenny
Level II

Re: Capturing the log file during a non interactive JMP script session

That is the post I am referring to thanks.

That code snippet you suggested will not work as seen below open log doesn't appear to be a valid command.

open log();

show(is log open());

When I open a JMP session and open my script and then run it, the capture log() works in fact I was originally using the save log() command when I ran the script manually, before I started looking at an automated solution.

You are correct when you say JMP has to open but it opens up as a process thread in the background and you cant actually see it, this is why I believe when it opens the log doesn't automatically open with that process.

Thank you for your reply.

txnelson
Super User

Re: Capturing the log file during a non interactive JMP script session

Try setting the BatchInteractive() function.  This may solve your issue.

BatchInteractive(0); or BatchInteractive(1);

Jim
msharp
Super User (Alumni)

Re: Capturing the log file during a non interactive JMP script session

I'm interested in how you're accomplishing this:

"You are correct when you say JMP has to open but it opens up as a process thread in the background"

What operating system are you using?


There are many ways to run an automated script that will actually open JMP, for example, through a .bat file.  Will this not work either?

Craige_Hales
Super User

Re: Capturing the log file during a non interactive JMP script session

Not sure this will do it, but worth a try...in the windows-specific prefs, or submit (in a *previous* run either way, of course)

Preferences(Log Open Strategy( "Startup" ))

Alternatively, if you are building HTML in the log window, consider building it in a JSL string instead, then using saveTextFile to save the string.

What approach are you using to start JMP? 

Craige

Craige

Re: Capturing the log file during a non interactive JMP script session

Craige,

I like your suggestion about using a JSL string and saveTextFile. I might update Export Data Table to HTML​ to do this.

Update: Export Data Table to HTML​ is now updated to work this way.

Recommended Articles