Sending log info to remote machines 2004-03-24 - By kim aldis
Back Yeah, pstools are real nice. Psexec, I think it is, the one that runs commands on remote machines requires that the commands you run be in the windows system dir. A nice workaround for this is to copy a bat file into the system folder on the remote machine, execute it then remove it, for which a bat file works well:-
Copy batcommand.bat \\remote\c$\system32 Psexec \\remote batcommand.bat Del \\remote\c$\system32\batcommand.bat
Rshd is actually very easy to set up and much better as a long-term solution. If you're doing a lot of stuff like this I strongly recommend you look at Cygwin, the Unix-alike for windoze. I run a tcsh prompt here and it works well enough that I can work in a unix-like way but still do stuff like call xsi and photoshop from the command line, a whole lot easier than messing with menus and stuff.
> -- --Original Message-- -- > From: owner-xsi@(protected) > [mailto:owner-xsi@(protected)] On Behalf Of Bernard Lebel > Sent: 24 March 2004 15:32 > To: XSI@(protected) > Subject: Re: [OT] Sending log info to remote machines > > Thanks a lot Kim. PsTools seems very promising. Rsh, I know > about, but not very familiar. If I need your hack I'll give > you a shout. > > I guess I should get a book. > > Thanks > Bernard > > > > -- -- Original Message -- -- > From: "kim aldis" <kim@(protected)> > To: <XSI@(protected)> > Sent: Wednesday, March 24, 2004 3:56 PM > Subject: RE: [OT] Sending log info to remote machines > > > > Hehe .... Windoze, they figured no-one would ever want to > do that and > > they still believe it. > > > > OK, 2 options; the Pstools which are a number of commands > for killing > > processes, running commands, start/stop services and > others. They have > > the advantage that you don't need to add services on the remote > > machines, just run and they work. Everyone with more than > one computer > > should have and > know > > how to use these. > > http://www.sysinternals.com/ntw2k/freeware/pstools.shtml > > > > And secondly, rsh and rshd. Rshd is a service that sits on > the remote > > machine and waits for commands from other machines. Rsh is > the client > > you run on your local machine - rsh DopeyWindowsMachine > dir. Rsh comes > > with Cygwin - www.sygwin.org - and rshd, there are now a > couple of GPL > versions. > > Both of them are reasonable secure but this makes them a > bit of a pain > > to set up. If you want a version with absolutely no security, safe > > enough if you're not connected to the outside world, I hacked the > > security checks > out > > of one of them and I'm running a version here. > > > > > > > > > -- --Original Message-- -- > > > From: owner-xsi@(protected) > > > [mailto:owner-xsi@(protected)] On Behalf Of Bernard Lebel > > > Sent: 24 March 2004 14:28 > > > To: XSI@(protected) > > > Subject: [OT] Sending log info to remote machines > > > > > > Hello, > > > > > > Is there a way, with a bat file, that I can send a > command to farm > > > clients to log with a specific account with a specific password, > > > provided that I know the IP and the names of the machines? > > > > > > > > > Thanks > > > Bernard > > > --- > > > Unsubscribe? Mail Majordomo@(protected) with the > following text in > > > body: > > > unsubscribe xsi > > > > > > > > > > > > > > > > > --- > > Unsubscribe? Mail Majordomo@(protected) with the > following text in body: > > unsubscribe xsi > > > --- > Unsubscribe? Mail Majordomo@(protected) with the following > text in body: > unsubscribe xsi > > >
--- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
|
|