Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Testing whether code is run in batch mode

  • To: mathgroup at smc.vnet.net
  • Subject: [mg61860] Re: Testing whether code is run in batch mode
  • From: "Jens-Peer Kuska" <kuska at informatik.uni-leipzig.de>
  • Date: Wed, 2 Nov 2005 04:09:28 -0500 (EST)
  • Organization: Uni Leipzig
  • References: <dk1jlm$9mb$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,

try $FrontEnd===Null

or !TrueQ[$Notebooks]

Regards
  Jens

"Marcus Stollsteimer" <marcus314 at yahoo.com> 
schrieb im Newsbeitrag 
news:dk1jlm$9mb$1 at smc.vnet.net...
| Hi group,
|
| is there a builtin function or variable that 
tests if a calculation is
| done in the Front End or in batch mode?
|
| right now I use as a workaround
|
|  BatchQ = Notebooks[] === $Failed;
|
| Regards,
| Marcus
|
|
| -- 
| [...] which will be published posthumously or 
after his death,
| which ever comes first. -- W. Allen
| 



  • Prev by Date: Re: A Problem with the NonlinearFit?
  • Next by Date: Re: Question regarding Mathematica's treatment of whitespace
  • Previous by thread: Re: A Problem with the NonlinearFit?
  • Next by thread: Re: Testing whether code is run in batch mode