Re: remote comand

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



i try this but don't work.

I'm just trying to sincronize my server 2 with a hdd library clone with
script. All script work fine, but i'm want to do unattended. To do this i
need run scripts in 2 different server. 1 script to flush data in server 1
and other to map drive in server 2.

The easy option it's to run a script in server 2 that flush data in server 1
(cmd remote) and this script go back the control to server1.

i'm going to try with other options. Thank you very much for all.

"Pegasus (MVP)" wrote:

Unfortunately you chose not to tell us exactly what you're
doing, hence we cannot tell you where your problem lies.
Here is what I did:

1. Create a batch file c:\temp\test.bat on PC1:
@echo off
dir \

2. Invoke the batch file from PC2:
psexec \\pc1 c:\temp\test.bat

The batch file runs and psexec.exe returns to PC2,
as expected.


"Alberto Arias" <AlbertoArias@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:5E578A0C-1C45-4C3D-B026-C09BCBB690BC@xxxxxxxxxxxxxxxx
It's work fine, but i have the same problem. When i run the tool i cant
exit.
I want to run a but ina server 1 that run some prgram with commands in
server
2, and when finish close the *.bat.
With psexec i run a program fine but dont work the @k, bye, finish, exit
and
anything tag. The are some Trick?????

Thank you for your good answer.

"Pegasus (MVP)" wrote:


"Alberto Arias" <AlbertoArias@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message
news:8AA0F348-5203-48BF-89F1-B2406541E1F5@xxxxxxxxxxxxxxxx
There are some method to run a *.bat in a remote server??? I want to
run a
but in my first server from my second server. I found the rexec comand
but
i
can't do run. Some page or program????

Thank you very much.

Try psexec.exe from www.sysinternals.com.






.



Relevant Pages

  • Re: Same Internal Server Error from last two days
    ... I am trying to run a Hello World Perl Script in Apache 2.2. ... But its constantly giving me Internal Server Error.The script ... # have to place corresponding `LoadModule' lines at this location so the ...
    (perl.beginners)
  • Re: Same Internal Server Error from last two days
    ... I am trying to run a Hello World Perl Script in Apache 2.2. ... But its constantly giving me Internal Server Error.The script Runs perfectly fine from the command prompt. ... # This is the main Apache HTTP server configuration file. ... LoadModule actions_module modules/mod_actions.so ...
    (perl.beginners)
  • Re: File monitoring
    ... I have to create a script that searches between several directories (5 ... already be transferred to the other server, if they're in that directory, ... I need a batch file that runs every hour and search across those ... For Each oFile In oFiles ...
    (microsoft.public.windows.server.scripting)
  • Same Internal Server Error from last two days
    ... I am trying to run a Hello World Perl Script in Apache 2.2. ... But its constantly giving me Internal Server Error.The script ... # have to place corresponding `LoadModule' lines at this location so the ...
    (perl.beginners)
  • Re: can this be done with Perl?
    ... Since this batch file needs to be used by different ... > the server the files are to be copied to, and have it generate a batch ... You would place a CGI script, written in Perl (and probably using Perl ...
    (comp.lang.perl.misc)