Making `logging.basicConfig` log to *both* `sys.stderr` and `sys.stdout`?
I use python oftentimes to write automation scripts on Linux servers.
And there's a big pattern in my scripts:
- I *always* use `logging` instead of `print` statements.
- I *always* create two stream handlers. One for `sys.stdout` with
level `INFO` and one for `sys.stderr` with level `WARN`
Well, the levels may variate occasionally, but that's only the rare
The reason I do this is simple: Most automation tasks are run via
cron. With this setup, I can redirect `stdout` to `/dev/null` and
still receive e-mails if things go wrong.
And having two handlers gives me more ...SYS$SPECIFIC and SYS$COMMON not enough?
Basically, the idea is that stuff specific to a given node will be in
its SYS$SPECIFIC directory and stuff common to all nodes (satellites or
not) booting from the same system disk will be in SYS$COMMON. A good
idea as far as it goes, but does it go far enough?
In particular, there are two additional categories, which I'll give the
obvious names SYS$CLUSTER and SYS$WORLD. SYS$CLUSTER would include
stuff common to all nodes in a cluster, i.e. would differ from
SYS$COMMON if there is more than one system disk in the cluster. The
obvious place for this stuff is somewhere which is not ...Re: SYS$SPECIFIC and SYS$COMMON not enough?
> >What are some real-world examples of stuff which is common to all nodes
> >which boot from a common system disk, but not common to all nodes in a
> >cluster, even in a share-as-much-as-possible cluster?
> One use of a cluster is testing new system SW. You can make a copy of your
> main system disk and upgrade the software there (say, a VMS patch). Then
> boot one system using that disk and see how it works, while the rest of the
> cluster does your production work using the old system without the upgrade.
> In that case, any files affected by the ...Re: SYS$SPECIFIC and SYS$COMMON not enough? #2
> How weird - we did this as a different excercise to do upgrades off
> line on the read only stuff, and swap it back in quickly. We also have
> a third party product root to keep our own/third party stuff out of
> SYS$SYSDEVICE:[VMS$COMMON...] tree, like a "/usr/local...".
> H sh lo sys$sysroot
> "SYS$SYSROOT" = "$9$DKA0:[SYS0.]" (LNM$SYSTEM_TABLE)
> = "SYS$COMMON:"
> 1 "SYS$COMMON" = "CLU$COMMON:" (LNM$SYSTEM_TABLE)
> = "VMS$COMMON:"
> = "OUR$COMMON:&...STARTUP.LOG?
I have an ALPHA which hangs for a couple of minutes AFTER it joins the
cluster. This is a 21164A CPU (actually, two of them) so the machine is
quite fast. By the time it gets to SYLOGICALS.COM, a 4000/60 has
already completed booting.
Is there a way to get the startup sequence before SYLOGICALS.COM logged
somewhere, preferably with SET PREFIX turned on, so I can see where and
perhaps why it is hanging? During the hanging, no messages are written
to the console, so I have no idea what it is doing.
Other ALPHAs don't show this behaviour.
The only thing I can thik of it to edit S...SYS$STARTUP:MMOV$STARTUP.COM -- lacks something (priority)
And while I'm complaining about SYS$STARTUP:MMOV$SHUTDOWN.COM, I
recently (at long last) figured out why I've been getting such choppy
MPEG playback after system startup until I manually restart the
In SYS$STARTUP:MMOV$STARTUP.COM, the "RUN /DETACHED" command lacks a
"/PRIORITY" qualifier, so if it's run from a typical batch queue (as it
was on my system), the MMOV$SERVER process inherits a reduced process
priority, resulting in poor performance. (And on an AlpSta 200 4/233,
it needs all the performance advantages it can scrape toget...Startup log
I am running windows 2000 and have set it to make a startup log for
I know this may be a silly question, but where will i find the log
after i have started?
ACE VERSION: 5.4
HOST MACHINE and OPERATING SYSTEM:
WIN2K P4 - 1.6 ghz
CONTENTS OF $ACE_ROOT/ace/config.h:
#define ACE_HAS_STANDARD_CPP_LIBRARY 1
#define ACE_NTRACE 1
#define ACE_NDEBUG 0
DOES THE PROBLEM AFFECT:
per thread loggin doesnt seem to work in my case
my goal - use logging system of ace, configurable during run - time.
For this purpose I use ACE_Logging_Strategy, seems to work
further i need du...Re: SYS$STARTUP:MMOV$STARTUP.COM -- lacks something (priority)
From: firstname.lastname@example.org (Keith A. Lewis)
> Actually the problem is recurring in a different way since I moved the
> music library to a Linux disk and now play it over NFS. Thinking of
> copying to a scratch directory on VMS before playing... if I can't figure
> out how to raise the priority of the NFS-serving Linux processes.
Locating the bottleneck could help. Is the sloth at the server or
the client? Can the (VMS) NFS client do more read-ahesd or caching,
> Do you get a popping sound between songs due to audio device resets? I have
&...Re: SYS$STARTUP:MMOV$STARTUP.COM -- lacks something (priority) #2
From: email@example.com (Hoff Hoffman)
> I've passed this along to one of the engineers familiar with the MMOV
> product for his consideration -- though if you require a fix for this,
> please contact the support center directly. (I can't commit to having
> this fixed, release of an ECO kit, etc.)
I'm just a (peon) hobbyist, so formal support is generally not an
option. My fixes (commenting out the troublesome F$CONTEXT() for
shutdown, and adding a suitable /PRIORITY qualifier for startup) seem
satisfactory, so I'm happy enough, at least on these problem...RE: STARTUP.LOG?
> -----Original Message-----
> From: R Boyd [mailto:firstname.lastname@example.org]=20
> Sent: December 27, 2005 11:45 AM
> To: Info-VAX@Mvb.Saic.Com
> Subject: Re: STARTUP.LOG?
> And if you try the 20000 flag and still dont get enough information,
> try 10000 -- which will generate excruciatingly detailed logging of
> everything happening before STARTUP.COM is invoked.
> If the system is getting to the point where it invokes STARTUP.COM,
> your best bet is the STARTUP_P2 setting mentioned by Jilly. I prefer
> to set all of my Alpha systems to boot with the 200...Log likelihood Specification
I'm trying to do estimate parameters for the following log likelihood
by ML. Can anyone help me with this. In addition I need to write
that u~Normal(resmean,resstd). Can I do that with a model statement
(model u ~ n(resmean,resstd))?
proc nlmixed data=alright;
I would like to switch on query logging for specific views only. Is
this possible using BIND 9.7 (or any other BIND version, for that
The "querylog" option does not seem to apply to views, and it does not
appear to be possible to filter based on view in the "logging" phrase.
Florian Weimer <email@example.com>
BFK edv-consulting GmbH http://www.bfk.de/
Kriegsstra=DFe 100 tel: +49-721-96201-1
D-76133 Karlsruhe fax: +49-721-96201-99
...thread specific sys.stdout?
This may sound a little crazy. I capture the output of one class by
redirecting the sys.stdout. However the is another threading running at
the same time and occasionaly it output some messages to the redirected
sys.stdout irreleveant to the output I want to capture. Is there a way to
redirect output specific to some threads?
> This may sound a little crazy. I capture the output of one class by
> redirecting the sys.stdout. However the is another threading running at
> the same time and occasionaly it output some messages to the redirected
> sys.stdo...Log into network, not a specific machine
I have two Macs working off an Airport Extreme Base Station (one
running 10.3, the other 10.4).Each person in my family has an account
on both machines. But if you do something on one machine, say create a
document and put it on the desktop or add a bookmark to your browser,
when you log into the other machine those items are not there.
So I was wondering is there a way to create account where your stuff
(desktop, Mail folders, etc.) are all the same independent of which
particular machine you are on? I have a feeling this is either very
easy or impossible to do.
pixel_a_ted wrote:...sys-suspend with logging / fs
I just tried sys-suspend on a Blade 100 with either Solaris 9 9/05
or Solaris 10 3/05 installed. With both OS versions, the resume boot
cprboot: can't open /.CPR
I know that there were problems in the past (Solaris 7/8?) with
resuming after sys-suspend when / is a logging filesystem, but
I thought those had been fixed, esp. as logging is now default
for all filesystems.
Is this still a general problem (bugid 4491494 from Apr/2005 seems
to suggest this), or is it a local problem ?
Systems Administrator | Institute of Scientific...Modify the logical SYS$STARTUP, why or why not?
I just came across some changes to the logicals SYS$STARTUP in one of our
remote sites. I would tend to think that this is not a good idea.
Anyone else doing the same type changes?
ANy other comments?
$ show logical /full sys$startup
"SYS$STARTUP" [exec] = "MYSTARTUP" (LNM$SYSTEM_TABLE)
1 "MYSTARTUP" [exec] = "DISK2:[SYSCOMMON]" (LNM$SYSTEM_TABLE)
1 "SYS$MANAGER" [exec] = "SYS$SYSROOT:[SYSMGR]" (LNM$SYSTEM_TABLE)
VMS S...[9fans] /sys/log/mail
why do i see this?
brahma Jul 25 09:08:59 delivered boyd From boyd Fri Jul 25 09:08:59 EDT 2003 158
should i not see domain!boyd?
> brahma Jul 25 09:08:59 delivered boyd From boyd Fri Jul 25 09:08:59 EDT 2003
ahh, me bad. a had a typo in the .dict file. fixed now. flames to me.
...Re: Log likelihood Specification
--- On Thu, 6/18/09, clyde013 <clyde013@YAHOO.COM> wrote:
> From: clyde013 <clyde013@YAHOO.COM>
> Subject: Log likelihood Specification
> To: SAS-L@LISTSERV.UGA.EDU
> Date: Thursday, June 18, 2009, 7:28 AM
> I'm trying to do estimate parameters
> for the following log likelihood
> by ML. Can anyone help me with this. In
> addition I need to write
> that u~Normal(resmean,resstd). Can I do that with a
> model statement
> (model u ~ n(resmean,resstd))?
> proc nlmixed data=alright;
> gamma2=.247682162...Startup / launcher / no-logging / no-keyboard
I want to make a small retro-gaming station for my children with
a Raspberry Pi. I would be happy to get some ideas concerning the
a) auto-loggin, no username, no password;
is it possible to directly access the shell without the logging step?
b) the startup script should launch a menu (either some dialog/ncurses
or some framebuffer environment, rather no X) for selecting games (with
of course a "return to the shell" option) ;
c) I would like the menu to be fully driven from a joystick; I have never
used a joystick before (...Log error at server startup
Please help me!!
My pgsql installation is having a problem during startup and I don't konw
how to solve it. postmaster is reporting this:
LOG: database system shutdown was interrupted at 2003-09-04T
LOG: checkpoint record is at 0/44C3FC0
LOG: redo record is at 0/44C3FC0; undo record is at 0/0; shutdown TRUE
LOG: next transaction id: 27046; next oid: 28452
LOG: database system was not properly shut down; automatic recovery in
LOG: ReadRecord: unexpected pageaddr 0/24C4000 in log file 0, segment 4,
LOG: redo is not required
PANIC: XLogWrite: wr...How to log traffic on a specific interface
I've installed an additional nic into my box and attached a wireless AP
to it in preparation for providing a wireless hot-spot to the pool area
of my apartment complex. PF is limiting connectivity to dns, ssh, pop3
and web access. However, I'd like to log all the traffic passing through
the interface seperately from PF. Ideally I'd like to include the MAC
address and the destination IP along with the usual stuff like date and
time. How can I do this?
----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The...Flushing SYS$OUTPUT log files
Like many other people (judging by past requests to cov) I have a need to
make sure my batch or detached jobs have successfully logged information to
the disk-file (rather than just the RMS buffer) in case of machine crash
etc. The log entries are not critical and it wouldn't be the end of the
world if they were lost but they would certainly be bloody useful when a
support person is trying to work out the last thing that was going on.
So, I hit the manuals and cov archives and first looked at SET OUTPUT and
wasn't too keen on that, and then looked at getting the IFI from translat...Running a program as a specific user on startup
Hi, im new with unix and I cant figure this out. Im running Freebsd 6
I installed pgsql and I need it to run on startup.
my /etc/rc.local file contains
echo " ";
echo "Proftpd Loading...";
/usr/local/sbin/proftpd -c /usr/local/etc/proftpd.conf
echo "Proftpd Running...";
echo " ";
and has the properties -rw-r--r-- 1 root wheel 198
/etc/psqlrun file contains
echo "Pgsql Loading...";
/usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data