To get the behavior you are expecting when invoked from a command file, the command immediately preceding the python invitation should be:
$ define/user sys$input sys$command
This is from 20+ year old memory, but that should be close....
- Mark
On Jan 26, 2015 2:47 PM, Johnny Billquist <bqt at softjar.se> wrote:
On 2015-01-26 20:41, Sampsa Laine wrote:
> So I've got this Python script which reads commands from stdin, basically in the form of <cmd> + <cr(lf?>
>
> When I run it standalone, it works fine, but when invoked from a COM file it acts as if stdin is nothing but CRLF's..
>
> Any ideas?
Are you sure it is not EOF?
When run from a command file, programs will get their input from the
command file, up to the next line starting with a dollar sign, which
would be the next DCL command. So I would assume you'd get an EOF in
your python program at that point.
Johnny
On 2015-01-26 20:41, Sampsa Laine wrote:
So I've got this Python script which reads commands from stdin, basically in the form of <cmd> + <cr(lf?>
When I run it standalone, it works fine, but when invoked from a COM file it acts as if stdin is nothing but CRLF's..
Any ideas?
Are you sure it is not EOF?
When run from a command file, programs will get their input from the command file, up to the next line starting with a dollar sign, which would be the next DCL command. So I would assume you'd get an EOF in your python program at that point.
Johnny
So I've got this Python script which reads commands from stdin, basically in the form of <cmd> + <cr(lf?>
When I run it standalone, it works fine, but when invoked from a COM file it acts as if stdin is nothing but CRLF's..
Any ideas?
sampsa
On 2015-01-26 20:12, Hans Vlems wrote:
Did you have a choice Johnny, was keeping the original meter an option?
Nope.
Johnny
Verzonden vanaf mijn BlackBerry 10-smartphone.
Origineel bericht
Van: Johnny Billquist
Verzonden: maandag 26 januari 2015 19:42
Aan: hecnet at Update.UU.SE
Beantwoorden: hecnet at Update.UU.SE
Onderwerp: Re: [HECnet] Number of nodes online a bit low?
On 2015-01-26 19:04, G. wrote:
On Mon, 26 Jan 2015 12:27:49 -0500, John Wilson wrote:
I am much more nervous about the (to my view) really crappy and scary
plugs you use in the US. They actually have a fair chance of actually
exposing me to contact...
I can't argue with that. They'd *never* be approved if they were invented
today, but we're used to being careful and people hate change.
Same danger here, until they made compulsory (25-30 years ago) to sell only
plugs with the first part of the prongs insulated, so that when there is
electricity flowing, the accidentally exposed part is not conductive.
http://en.wikipedia.org/wiki/Europlug#mediaviewer/File:Euro-Flachstecker_2.…
The nice thing is that it's backward compatible with ancient receptacles :)
Right. But with the addition that for the Shuko (which you have in both
Sweden and Germany (and other places)), the socket is inset, so when the
pins even gets close to the receptacle, the whole thing is already out
of each for any part of it.
But I know you have weird connectors and sockets in Italy... ;-)
Johnny
Hey Sampsa,
You got two more back online (MASON & ROXY).
I was out of town and Verizon's crappy router froze up.
If I get the SCSI2SD hard drive for the multia working, BOSCO will be back online.
Sent from my iPhone
On Jan 25, 2015, at 10:12 AM, "Sampsa Laine" <sampsa at mac.com> wrote:
So I ran a simple script that tried to get the executable characteristics of a node, for each node in the nodedb.
I was surprised to see that only 33 systems seemed to be online.
I thought there would've been more up.
Any way, here's the list of nodes that were shown as up:
ALEPH
AXPEE
B4GATE
BIGV7K
BUBBLE
DS20
EBOLA
ERSATZ
FRACK
FRICK
GLGMSH
GORVAX
HALO
HILANT
HPIVAX
JOCKE
K4VX2
KRYLBO
KUHAVX
LABVAX
MAISA
MIM
ORAV23
PLUTO
PONDUS
PYFFLE
SGC
SHAMS
SIMVAX
SLAVE
SOL
STRGTE
STUPI
VAX780
Did you have a choice Johnny, was keeping the original meter an option?
Verzonden vanaf mijn BlackBerry 10-smartphone.
Origineel bericht
Van: Johnny Billquist
Verzonden: maandag 26 januari 2015 19:42
Aan: hecnet at Update.UU.SE
Beantwoorden: hecnet at Update.UU.SE
Onderwerp: Re: [HECnet] Number of nodes online a bit low?
On 2015-01-26 19:04, G. wrote:
On Mon, 26 Jan 2015 12:27:49 -0500, John Wilson wrote:
I am much more nervous about the (to my view) really crappy and scary
plugs you use in the US. They actually have a fair chance of actually
exposing me to contact...
I can't argue with that. They'd *never* be approved if they were invented
today, but we're used to being careful and people hate change.
Same danger here, until they made compulsory (25-30 years ago) to sell only
plugs with the first part of the prongs insulated, so that when there is
electricity flowing, the accidentally exposed part is not conductive.
http://en.wikipedia.org/wiki/Europlug#mediaviewer/File:Euro-Flachstecker_2.…
The nice thing is that it's backward compatible with ancient receptacles :)
Right. But with the addition that for the Shuko (which you have in both
Sweden and Germany (and other places)), the socket is inset, so when the
pins even gets close to the receptacle, the whole thing is already out
of each for any part of it.
But I know you have weird connectors and sockets in Italy... ;-)
Johnny
On 2015-01-26 19:04, G. wrote:
On Mon, 26 Jan 2015 12:27:49 -0500, John Wilson wrote:
I am much more nervous about the (to my view) really crappy and scary
plugs you use in the US. They actually have a fair chance of actually
exposing me to contact...
I can't argue with that. They'd *never* be approved if they were invented
today, but we're used to being careful and people hate change.
Same danger here, until they made compulsory (25-30 years ago) to sell only
plugs with the first part of the prongs insulated, so that when there is
electricity flowing, the accidentally exposed part is not conductive.
http://en.wikipedia.org/wiki/Europlug#mediaviewer/File:Euro-Flachstecker_2.…
The nice thing is that it's backward compatible with ancient receptacles :)
Right. But with the addition that for the Shuko (which you have in both Sweden and Germany (and other places)), the socket is inset, so when the pins even gets close to the receptacle, the whole thing is already out of each for any part of it.
But I know you have weird connectors and sockets in Italy... ;-)
Johnny
On 2015-01-26 19:04, G. wrote:
On Mon, 26 Jan 2015 18:45:28 +0100, Johnny Billquist wrote:
sometimes happens that you blow a local fuse at home, but it's uncommon
[...]
The main fuses in my house are 32A for each phase. I could upgrade, but
Real fuses? Here they are almost fully disappeared. Maybe there is something in
factories and such, but nothing more in private homes.
Yeah. My house is old... Real fuses... Nowadays they are all just breakers in new installations.
Automatic circuit breakers, both magnetic-thermal and differential, are the norm
(I think there is a law too that requires their use), so when you exceed your
allowed power consumption it's just a matter of going downstairs and switch back
on your home circuit (if you live in a building with many apartments, switches
must be reachable from outside your home, so they are almost always located near
the main entrance, next to mail boxes).
I wouldn't be surprised if they are mandated for new building nowadays. But for old installations, you do not have to replace the whole thing.
The "bad" new thing is that ancient switches where somewhat forgiving of short
spikes in consumption, but now that there are digital meters connected to the
switches, there is a strict 120 second grace period, and after that the meter
commands the circuit breaker to trip... And here you go in the dark. :P
:-)
There is also a "nice" LCD display that tells you that you were left in the dark
because you were using more power than what your contract allowed. :P
They did replace my meter a few years ago to a new fancy digital one that could be read and monitored remotely.
Johnny
You can touch a live wire here and provided it's just one hand and your feet aren't in salty water nothing much will happen. Higher frequencies will pass your skin more readily. I'd rather touch 230V/50Hz than 80V/1000Hz.
Verzonden vanaf mijn BlackBerry 10-smartphone.
Origineel bericht
Van: Johnny Billquist
Verzonden: maandag 26 januari 2015 17:49
Aan: hecnet at Update.UU.SE
Beantwoorden: hecnet at Update.UU.SE
Onderwerp: Re: [HECnet] Number of nodes online a bit low?
On 2015-01-26 17:40, John Wilson wrote:
From: Johnny Billquist <bqt at softjar.se>
This is Europe, remember...
Normal mains are 230V, and 3-phase are 410V phase to phase. All the DEC
equipment around here are designed to run on that stuff.
Sure ... I remember reading the back plate on a dryer at a laundromat once
(in I forget which country) and suddenly not wanting to touch it any more.
I just have trouble getting used to the fact that although you *already*
run most things at what Americans would consider double voltage, you *still*
double the voltage for the big toys (things which we grudgingly whip out
the 230 VAC for). But then again, once it's lethal, I suppose it doesn't
matter how lethal. And copper costs more than insulation so being able
to use wimpier wire for the same wattage is good design. Less loss too.
Plus, this is stuff you pretty much never unplug/replug, so your fingers
are almost never near the live prongs. Still ... around here, it's hard
to find wire that's insulated for more than 300V.
Yeah... That "lethal" aspect have never been my issue. 110V or 230V. Who
cares? If it comes to the wrong place, either will kill me.
And just through two fingers on the same hand, they both just annoy the
hell out of me, and I swear loudly for a few minutes...
I am much more nervous about the (to my view) really crappy and scary
plugs you use in the US. They actually have a fair chance of actually
exposing me to contact...
You really cannot touch the prongs when they have power on plugs around
here...
Johnny
Wasn't 230V a compromise between the UK and the continent?
Verzonden vanaf mijn BlackBerry 10-smartphone.
Origineel bericht
Van: Johnny Billquist
Verzonden: maandag 26 januari 2015 17:44
Aan: hecnet at Update.UU.SE
Beantwoorden: hecnet at Update.UU.SE
Onderwerp: Re: [HECnet] Number of nodes online a bit low?
On 2015-01-26 16:47, G. wrote:
On Mon, 26 Jan 2015 14:49:43 +0100, Johnny Billquist wrote:
This is Europe, remember...
Normal mains are 230V, and 3-phase are 410V phase to phase. All the DEC
equipment around here are designed to run on that stuff.
Aehm, shouldn't it be 230 * SQRT(3) = 398 (rounded up to 400) or the other way
400 / SQRT(3) = 230 (slighty rounded down)? :)
You are probably right. I was trying to remember if it was 400 or 410,
but for some reason my brain decided that it was 410.
Actually, if I'm not wrong, 400 volts should be just a nominal standard voltage,
and some European countries have different real voltages, but they would be
still in range because of the allowed drift (something around plus/minus 6-10%).
I think there is something about that in Wikipedia. Again: if I'm not wrong. :)
No, that sounds right.
Indeed here in Italy nominal household voltage was 220 volts up until few years
ago, and it still is: just now I have a 219 volts reading at the outlet, and I
live downtown in a quite big northern city (i.e. not countryside).
Sweden moved "officially" from 220V to 230V many years ago. Probably
more than 20 years or so.
In everyday speaking even electricians still refer to 3-phase 400 volt power as
"three eighty" (lit. tre ottanta) i.e. the old 380 volt nominal voltage. :)
I sortof remember that too... :-)
(Well, the Swedish variant thereof...)
P.S. I think that the UK may still be on 240/415 actual voltage even if they
adhere to the European standards about the unified 230/400 delivery.
Yeah. As far as I can remember, they are officially with the 230V crowd,
but the actual power at the outlet can vary. :-)
Johnny