code logs -> 2007 -> Thu, 04 Oct 2007< code.20071003.log - code.20071005.log >
--- Log opened Thu Oct 04 00:00:39 2007
00:03
<@McMartin>
(RE: earlier) Yeah, ML, and ^ is string concatenation.
00:20 Chalcedon is now known as ChalcyAFK
01:10 Vornicus [~vorn@ServicesOp.Nightstar.Net] has quit [Connection reset by peer]
01:11 Vornicus [~vorn@64.252.7.ns-5095] has joined #code
01:12 Vornicus is now known as NSGuest-1340
01:13 NSGuest-1340 is now known as Vornicus
01:20 gnolam [lenin@Nightstar-10613.8.5.253.static.se.wasadata.net] has quit [Quit: Z?]
01:22 Vornicus [~vorn@ServicesOp.Nightstar.Net] has quit [Ping Timeout]
01:30 Vornicus [~vorn@64.252.7.ns-5095] has joined #code
01:31 Vornicus is now known as NSGuest-1341
01:31 NSGuest-1341 is now known as Vornicus
02:44 ReivSLEP is now known as Reiver
02:52 Kyrre [~Z@87.72.35.ns-26506] has quit [Ping Timeout]
02:56 Kyrre [~Z@87.72.35.ns-26506] has joined #Code
03:11 Takyoji [~caleblang@Nightstar-25812.dhcp.roch.mn.charter.com] has quit [Quit: ]
03:25 * McMartin contends with NSIS
03:28 * McMartin is victorious
03:30
<@McMartin>
http://hkn.eecs.berkeley.edu/~mcmartin/ophis/Ophis-1.0-win32-installer.exe
03:31
<@McMartin>
Unix distutils version will be forthcoming later.
03:37
< Reiver>
What is it for?
03:37
< Reiver>
(And/or does the casual observer want to run it?)
03:38
<@McMartin>
It's the cross-assembler I've been working on and maintaining for the past five years.
03:38
<@McMartin>
Finally properly documented, debugged, and with all the features I wanted.
03:38
<@McMartin>
So I'm kicking it up to 1.0 and making distributions.
03:38
<@McMartin>
So, the casual observer probably doesn't care unless he wants to take up C64 programming.
03:38
< Reiver>
Ah!
03:39
< Reiver>
Nonetheless, extremely Nifteh.
03:41
<@McMartin>
http://hkn.eecs.berkeley.edu/~mcmartin/ophis/ophismanual.pdf worked better than I thought.
04:36 GeekSoldier|bed is now known as GeekSoldier|work
04:39 Forj [~Forj@Nightstar-10836.ue.woosh.co.nz] has joined #code
04:39 mode/#code [+o Forj] by ChanServ
05:46 * McMartin flails at distutils.
05:46 * McMartin then heads home.
07:23 Vornotron [~vorn@64.252.37.ns-12462] has joined #code
07:23 Vornicus [~vorn@ServicesOp.Nightstar.Net] has quit [Ping Timeout]
07:25 Vornotron is now known as Vornicus
07:26 Vornicus is now known as Vornicus-Latens
07:35 GeekSoldier|work [~Rob@Nightstar-4826.pools.arcor-ip.net] has quit [Ping Timeout]
07:44 Vornotron [~vorn@64.252.44.ns-3977] has joined #code
07:46 Vornicus-Latens [~vorn@ServicesOp.Nightstar.Net] has quit [Ping Timeout]
08:29
<@McMartin>
http://hkn.eecs.berkeley.edu/~mcmartin/ophis/ is done.
08:29 * McMartin ticks that off the list.
08:40 ChalcyAFK is now known as Chalcedon
08:44
<@AnnoDomini>
Hm. I wonder if this idea'll work.
08:44 AnnoDomini [AnnoDomini@Nightstar-29622.neoplus.adsl.tpnet.pl] has quit [Quit: I am Yulaw! I am nobody's bitch! You - are mine.]
08:48 AnnoDomini [AnnoDomini@Nightstar-29622.neoplus.adsl.tpnet.pl] has joined #Code
08:48 mode/#code [+o AnnoDomini] by ChanServ
08:49 * AnnoDomini uses a spare switch to create an extension of the house LAN in his room.
08:51 You're now known as TheWatcher
08:51
<@AnnoDomini>
Incidentally, it's the same switch we used for the temporary LAN in Attilla's house. It is even affixed to its position the same way - with duct tape. :p
10:07 Chalcedon [~Chalcedon@Nightstar-10836.ue.woosh.co.nz] has quit [Quit: Gone]
10:07 GeekSoldier|work [~Rob@Nightstar-4853.pools.arcor-ip.net] has joined #code
10:35 gnolam [lenin@Nightstar-10613.8.5.253.static.se.wasadata.net] has joined #Code
10:35 mode/#code [+o gnolam] by ChanServ
10:40 Forj [~Forj@Nightstar-10836.ue.woosh.co.nz] has quit [Quit: Gone]
12:59
< Reiver>
pft
14:54 Vornotron is now known as Vornicus
17:11 You're now known as TheWatcher[afk]
17:23 GeekSoldier|work is now known as GeekSoldier
18:13 AnnoDomini [AnnoDomini@Nightstar-29622.neoplus.adsl.tpnet.pl] has quit [Ping Timeout]
18:18 AnnoDomini [AnnoDomini@Nightstar-29591.neoplus.adsl.tpnet.pl] has joined #Code
18:18 mode/#code [+o AnnoDomini] by ChanServ
18:24 Forj [~Forj@Nightstar-10836.ue.woosh.co.nz] has joined #code
18:24 mode/#code [+o Forj] by ChanServ
18:50 Forj [~Forj@Nightstar-10836.ue.woosh.co.nz] has quit [Quit: Gone]
18:58 You're now known as TheWatcher
20:54 Xiphias [Ameroth@Nightstar-25243.dsl.in-addr.zen.co.uk] has joined #code
21:19 MahalAtWork [~cb634206@Nightstar-29731.dsl.in-addr.zen.co.uk] has joined #Code
21:19 mode/#code [+o MahalAtWork] by ChanServ
21:21 * MahalAtWork prods the Coders for *gark* windows help
21:22
<@MahalAtWork>
or at least, help interpreting a document.
21:22
<@MahalAtWork>
Mostly, I can't work out the context of this 'help' line.
21:22
<@MahalAtWork>
I alsways have problems with this, I don't know why but I have Issues parsing.
21:23
<@MahalAtWork>
(Context: The psexec tool from sysinternals.com)
21:23
<@MahalAtWork>
Usage: psexec [\\computer[,computer2[,...] | @file][-u user [-p psswd]][-n s][-l
21:23
<@MahalAtWork>
][-s|-e][-x][-i [session]][-c [-f|-v]][-w directory][-d][-<priority>][-a n,n,...
21:23
<@MahalAtWork>
] cmd [arguments]
21:26 DreadPirate [icechat5@Nightstar-2562.phil.east.verizon.net] has joined #code
21:27
< DreadPirate>
someone need help with a windows script?
21:27
< GeekSoldier>
bracketed statements are optional.
21:28
< GeekSoldier>
this one seems to be nested kind of strangely, though.
21:29 GeekSoldier is now known as GeekSoldier|bed
21:29
< GeekSoldier|bed>
though without knowing what the switches mean, I cannot help much further. I am sorry.
21:29
<@MahalAtWork>
Mee.
21:29
<@MahalAtWork>
Well
21:29
<@MahalAtWork>
I would post the entire not-very-helpful-file, but I lack a website capability to do this from at work.
21:30
<@MahalAtWork>
unless you want me to flood channel.
21:30
<@MahalAtWork>
(FYI, it can be downloaded free from sysinternals.com
21:30
< GeekSoldier|bed>
i doubt it's necessary.
21:30
<@MahalAtWork>
Short version: I want to run \\servername\directory\script on a remote machine.
21:30
<@MahalAtWork>
which psexec should allow me to do
21:30
<@MahalAtWork>
I just can't figure out how to phrase the command.
21:31
<@MahalAtWork>
(and then get the output)
21:32
< DreadPirate>
hmm
21:32
< DreadPirate>
that is a bit difficult
21:32
< GeekSoldier|bed>
will you need to supply username/password?
21:33
<@ToxicFrog>
I think it would be something like:
21:33
< GeekSoldier|bed>
psexec \\remote -c batchfile
21:33
<@ToxicFrog>
psexec \\servername@drive:\directory\script -u usename -p password script arg1 arg2 arg3...
21:34
<@ToxicFrog>
Oh, wait
21:34
<@ToxicFrog>
No, that's a |...
21:34
<@ToxicFrog>
psexec //server -u name -p password drive:/path/to/script args...
21:34
<@ToxicFrog>
One would think it would come with a man page of some form, though
21:34
<@MahalAtWork>
It does.
21:34
<@MahalAtWork>
but not a terribly helpful one.
21:34
<@MahalAtWork>
it tells me what all the switches do.
21:35
<@MahalAtWork>
which I can spam, ifyou like?
21:35
< DreadPirate>
psexec \\marklap ipconfig /all
21:35
<@ToxicFrog>
PM it?
21:35
< GeekSoldier|bed>
tf's response should work, but add the -i, so that it launches in interactive mode (so you should be able to see the results locally)
21:35
< DreadPirate>
that simple command runs the ipconfig /all utility on the remote machine, but displays the output locally
21:35
<@ToxicFrog>
Are you sure -i is interactive mode?
21:35
<@MahalAtWork>
Dread: hey duh I didn't try that >.>
21:35 Chalcedon [~Chalcedon@Nightstar-10836.ue.woosh.co.nz] has joined #code
21:35 mode/#code [+o Chalcedon] by ChanServ
21:35
< DreadPirate>
sorry - just going by the help file I had from when I ran it
21:36
<@ToxicFrog>
Aah
21:36
< GeekSoldier|bed>
I've got the URL
21:36
<@MahalAtWork>
Nono, I mean I actually *didn't* try that, which was dumb of me.
21:37
< DreadPirate>
ahh
21:37
< GeekSoldier|bed>
microsoft.com/technet/sysinternals/utilities/psexec.mspx
21:37
< GeekSoldier|bed>
thar ye go... time to sleep now.
21:37
< GeekSoldier|bed>
goodnight, all!
21:38 * MahalAtWork tries:
21:39
<@MahalAtWork>
psexe \\remote -c -f Script.vbs
21:39
<@MahalAtWork>
Results: The specified application is not on the path.
21:39
< DreadPirate>
mahal - does the script already exist on the remote system?
21:39
<@MahalAtWork>
No.
21:40
<@MahalAtWork>
-c is copy to remote system, -f is copy even if it exists on remote system.
21:40
<@McMartin>
Did you actually type psexe or psexec?
21:40
<@MahalAtWork>
psexec.
21:40
< DreadPirate>
mahal - you may need to supply the full path to where you want the script to go
21:40
<@MahalAtWork>
... akk.
21:40 * MahalAtWork tries
21:41
<@MahalAtWork>
No, fail.
21:41
< DreadPirate>
what is the error?
21:41
<@MahalAtWork>
Results: The specified application is not on the path.
21:41
< DreadPirate>
hmm
21:42 * MahalAtWork WANT this to WORK damnit
21:42 * MahalAtWork grins
21:43 Chalcedon [~Chalcedon@Nightstar-10836.ue.woosh.co.nz] has quit [Ping Timeout]
21:43
< DreadPirate>
can you copy the file to the server ahead of time, using another command?
21:43 * MahalAtWork notes the help file there, if GS's copy wasn't noticed.
21:43
<@MahalAtWork>
http://www.microsoft.com/technet/sysinternals/utilities/psexec.mspx
21:43
<@MahalAtWork>
... I didn't think of that iether.
21:44
<@MahalAtWork>
god I am dumb today.
21:44
< DreadPirate>
I'm thinking the copying it to the remote system at the same time as running it may be causing some difficulty
21:44 * DreadPirate hugs mahal
21:44
< DreadPirate>
I call them brainfart days
21:44
< DreadPirate>
I have them myself
21:44 Chalcedon [~Chalcedon@Nightstar-10836.ue.woosh.co.nz] has joined #code
21:44 mode/#code [+o Chalcedon] by ChanServ
21:48
< Xiphias>
The help page uses the term program, perhaps it won't directly run a .vbs file?
21:48
< DreadPirate>
xiphias - that might be it
21:48
< DreadPirate>
cscript!
21:48
<@MahalAtWork>
Hunh?
21:48 * DreadPirate digs deep into unused portions of his memory
21:48
< DreadPirate>
one sec
21:50
< DreadPirate>
hmm - can anyone see this comment?
21:50
< Xiphias>
Yes
21:51
<@ToxicFrog>
Yes.
21:51
< DreadPirate>
okay - I tried pasting a link into here, and Nightstar wouldn't let me
21:51 * DreadPirate goes off to tinyurl it
21:51
<@ToxicFrog>
It's because the channel is +U
21:51 mode/#code [+v DreadPirate] by ToxicFrog
21:51
<@ToxicFrog>
Try it now.
21:51
<+DreadPirate>
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/c script_overview.mspx?mfr=true
21:51
<+DreadPirate>
aha! thank you, TF
21:51
<@ToxicFrog>
( while (true) { new WorkerThread(sock.accept()).start(); } ;.;)
21:52
<+DreadPirate>
mahal - that link is to info about cscript - you may need to run that on the remote system, and give it the full path to your script as an argument
21:54 * MahalAtWork ponders.
21:54
<+DreadPirate>
bah - windows needs to come with grep
21:54
<+DreadPirate>
(need to pull all 403 errors from a log file into a separate file
21:54
<+DreadPirate>
)
21:54
<@MahalAtWork>
Apparently I need to learn some vbscript now.
21:54
<@MahalAtWork>
the final bit of the VB is outputting to a window.
21:54
<@MahalAtWork>
If I could tell that how to output to a text doc, or something, I'd be fine.
21:54
<@ToxicFrog>
DreadPirate: try 'find'
21:55 * MahalAtWork cannot install *anything* on these remote systems; this is work.
21:56
<+DreadPirate>
..... TF - how did I go this long and *not* run across this utility before? *thwaps himself*
21:56
<@MahalAtWork>
Oh wait, cscript is already there >.>
21:56
<+DreadPirate>
mahal - was going to say - cscript or wscript is part of the default install of all windows systems
21:58 * MahalAtWork bouncyyays!! It worked!!!!!
21:58
<+DreadPirate>
yay!
21:58
<@ToxicFrog>
DreadPirate: because you wisely avoid the windows command line?
21:58
<+DreadPirate>
TF - I'm a windows admin - it's never totally avoidable
21:59
<+DreadPirate>
and batch files can occasionally save hours of manual labor
21:59 * ToxicFrog only knows about that because he ran into while looking for a find-equivalent many years ago
21:59
<@ToxicFrog>
Then I remembered that I had a copy of the MKS Toolkit, making it moot, and then Cygwin occurred shortly afterwards.
22:00
<+DreadPirate>
I'm just amazed as there have been a number of times where I cursed the lack of a windows grep utility
22:00
<+DreadPirate>
this was the first time I said as such when someone knowledgable on such things heard me
22:01
<@ToxicFrog>
Aah.
22:01
<@ToxicFrog>
Glad to be of service :P
22:01
<+DreadPirate>
hehe
22:01 * ToxicFrog just makes sure that all the windows machines he interacts with have Cygwin
22:02
<+DreadPirate>
not an option for me, unfortunately
22:04
<@MahalAtWork>
Crap.
22:04
<@MahalAtWork>
Now I need to run a batch file.
22:05
<@MahalAtWork>
and I cannot remember ANYTHING about them.
22:06 * Chalcedon cookies Mahal, leaves a plate in the channel for sustinence
22:06
<+DreadPirate>
I can help there as well, mahal
22:06
<+DreadPirate>
depending on what you need to do
22:06 Chalcedon is now known as ChalcyOut
22:11
<@MahalAtWork>
First issue: I need to prompt for keyboard input.
22:11
<@MahalAtWork>
I am feeling horribly forgetful on how to do this.
22:13
<+DreadPirate>
what kind of keyboard input? Just have the user hit space to continue, or something more complicated?
22:13
<@MahalAtWork>
"Type in the asset name of the PC you're trying to run the remote script on"
22:13
<+DreadPirate>
damn - it would be the more complicated of the two... :-p
22:14
<+DreadPirate>
let me see what I can find out
22:14
<@MahalAtWork>
Yes.
22:14
<@MahalAtWork>
I used to knwo hwo to do this
22:14 * MahalAtWork feels so stupid >.>
22:14
<+DreadPirate>
as did I, but that time was about seven or eight years ago
22:17
<+DreadPirate>
http://www.ericphelps.com/batch/samples/enter.bat.txt
22:17
<+DreadPirate>
that link might help you
22:20 * MahalAtWork reads, argsh.
22:20
<@MahalAtWork>
I"m sure remember it being so much easier than that1
22:20
<+DreadPirate>
I do as well, so I am continuing to search
22:20
<+DreadPirate>
ironically, it's easier to get input in C++ and vbscript than it is with simple batch files
22:20
<+DreadPirate>
at least from what I am seeing so far
22:22
<+DreadPirate>
aha! http://www.codingforums.com/archive/index.php?t-104063.html
22:22
<+DreadPirate>
set /P
22:23
<@MahalAtWork>
Well
22:23
<@MahalAtWork>
as of , er, 2001 when I did this, it wasn't that hard.!
22:25
<+DreadPirate>
http://www.ericphelps.com/batch/userin/index.htm
22:26
<@MahalAtWork>
hrm
22:26
<@MahalAtWork>
I nearly have it.
22:26
<@MahalAtWork>
my copy line isn't working
22:26
<@MahalAtWork>
copy \\[SERVERNAME]\Models\GetModel.vbs\ \\%computername%\c$\temp\GetModel.vbs
22:27
<@MahalAtWork>
wait
22:27
<@MahalAtWork>
the \ on the end of getmodel.vbs
22:27
<+DreadPirate>
yeah - the \ on the end of that part would cause an error
22:27
<@MahalAtWork>
heh, yeah
22:28
<@MahalAtWork>
\n or /n ?
22:28
<@MahalAtWork>
hat's the newline char?
22:28
<+DreadPirate>
\n
22:28
<+DreadPirate>
(I think)
22:28
<@MahalAtWork>
rm
22:28
<@MahalAtWork>
*hrm
22:30
<@MahalAtWork>
eg echo \n ?
22:33
<+DreadPirate>
are you trying to stick a line break in the middle of a statement?
22:33
<+DreadPirate>
as echo automatically puts a newline char at the end of every statement
22:40 AnnoDomini is now known as AnnoDomin
22:41
<@MahalAtWork>
.. oh duh
22:43 AnnoDomin is now known as AnnoDomino
22:49 * MahalAtWork Yays
22:49
<+DreadPirate>
get it all working?
22:49 * MahalAtWork thanks everyone, doles out handshakes or hugs as preferred, vanish.
22:49
<@MahalAtWork>
Yes!
22:49
<@MahalAtWork>
I will need to tidy it a little before throwing it at my coworkers.
22:49
<@MahalAtWork>
but it works, it contains the useful info, it'll do.
22:49 * DreadPirate hopes they duck first!
22:49
<+DreadPirate>
:)
22:50
<@MahalAtWork>
Hee.
22:50 MahalAtWork [~cb634206@Nightstar-29731.dsl.in-addr.zen.co.uk] has left #Code []
22:57 ChalcyOut is now known as Chalcedon
22:59 Xiphias [Ameroth@Nightstar-25243.dsl.in-addr.zen.co.uk] has quit [Quit: I was never gone]
23:02 You're now known as TheWatcher[T-2]
23:03 Attilla [~The.Attil@194.72.70.ns-11849] has quit [Ping Timeout]
23:05 You're now known as TheWatcher[zZzZ]
23:05 Attilla [~The.Attil@194.72.70.ns-11849] has joined #code
23:23
< Attilla>
Yeesh. How old *is* this paper? It says that this program for simulating molecular interactions takes "15 min to run on a large mainframe computer, almost 15 h on a fast mini-computer, and up to 4 min per timestep on a Commodore 64"
23:24
<+DreadPirate>
lol
23:24
<+DreadPirate>
means pretty darn quick on modern systems
23:24
< Attilla>
Indeed it is.
23:24
< Attilla>
This paper is from... 1985
23:24
< Attilla>
It's older than I am.
23:27
<+DreadPirate>
lol
23:27
<+DreadPirate>
great - now I feel old
23:27
<+DreadPirate>
:-p
23:27
< Attilla>
:p
23:28
<@McMartin>
I'm impressed that the paper tests it out on micros.
23:30
< Attilla>
Hah. On that micro for some of the runs I did with the software, it would have taken 30 days, 13 hours, and 20 minutes.
23:32
< Attilla>
(For anyone curious, the software was programmed in FORTRAN and nowadays has a Visual Basic facade, i'm not sure what its facade was previously or if VB was around then)
23:35
<@McMartin>
VB was not, in fact, around in 1985.
23:35
<@McMartin>
I believe DOS may have been up to 2.0 by then.
23:36
<+DreadPirate>
DOS 3.1 came out in November 1984, according to wikipedia
23:37
<@McMartin>
Aha, OK then.
23:37 * McMartin went 2.1 to 3.3 to 5.0, if he remembers correctly.
23:37
< Attilla>
Lessee.... FORTRAN 77 and BASIC
23:38
< Attilla>
Which makes sense since the next version was Fortran 90
23:39
<@McMartin>
And f77 is actually still in use, AIUI
23:39
<@McMartin>
F90 was the one that let you have local variables that were actually local. >_<
23:39
<@McMartin>
In F77 you have to manage the call stack by hand if you want to do recursion.
23:39
< Attilla>
Ouch
23:41
<@McMartin>
To be fair, F77 is the first formalization of the first programming language that operated at a level above assembler.
23:42
<@McMartin>
And for chips of that era, when doing assembler programming you do indeed need to manage a stack by hand.
23:50
< Attilla>
Interesting
23:51 * McMartin developed a really cunning way to get the best of both worlds on the 6502 chips, but he's never actually used it for anything interesting.
23:51
<@McMartin>
Also there's a hard limit on the number of local variables a function can have.
23:52
< Vornicus>
There is such a limit in C, too, and probably a bunch of other languages. I take it you mean a punitively small limit.
23:52
<@McMartin>
My prototype implementation was 16 bytes.
23:53
<@McMartin>
On the 64 the absolute theoretical maximum would be 124 bytes.
23:54
< Vornicus>
124...
23:54
< Vornicus>
128 - 4, okay, but I don't see what causes that.
23:54
<@McMartin>
256 is the Zero Page, which is basically the First Level Cache.
23:55
<@McMartin>
Also, all pointer values have to be there.
23:55
<@McMartin>
So I put all locals there.
23:55
<@McMartin>
Half of the Zero page ($80-$FF) is reserved by the BIOS.
23:55
< Vornicus>
aha
23:55
<@McMartin>
And $00-$01 controls the bankswitcher.
23:55
<@McMartin>
And then you need 2 bytes for the stack pointer.
23:56
< Vornicus>
aha.
23:57
<@McMartin>
http://www.stanford.edu/~mcmartin/retro/HLL/callstack.html
23:57
<@McMartin>
My mistake. three bytes. The stack manipulation macros require an additional memory location for scratch space.
23:58
< Vornicus>
aha
23:58
< Vornicus>
So, 123 bytes.
--- Log closed Fri Oct 05 00:00:15 2007
code logs -> 2007 -> Thu, 04 Oct 2007< code.20071003.log - code.20071005.log >