How to run script (.bat) on remote server. URGENT !!

G

Guest

I have a script which is basically a.bat file"dataunload.bat". This .bat file
will call .cmd file (InformixUnload.cmd) from in it. The .cmd file contains
few lines to start infomix (window ver) and unload records from few tables.

The script files "dataunload.bat" and "InformixUnload.cmd" are at a Win2k
server (called "MyDataServer") where Informix engine also running.

Now I want to execute "dataunlaod.bat" from another win2k server called
"myTestServer". I tried with network pipe method pipe
(\\servername\dataunload.bat") which is not working and it says "dbacess" not
a valid command. dbaccess is an informix tool which is not available on
"myTestServer".

What I am trying to find, a command line utilities which should allow me to
logon to "MyDataServer" and execute the .bat file. I can do this using
RemoteDesktop where user inervention is required. Looking somehting similar
to FTP, telnet etc..

Any thoughts... kindly help..
Regards,
 
P

Pegasus \(MVP\)

AJ said:
I have a script which is basically a.bat file"dataunload.bat". This .bat file
will call .cmd file (InformixUnload.cmd) from in it. The .cmd file contains
few lines to start infomix (window ver) and unload records from few tables.

The script files "dataunload.bat" and "InformixUnload.cmd" are at a Win2k
server (called "MyDataServer") where Informix engine also running.

Now I want to execute "dataunlaod.bat" from another win2k server called
"myTestServer". I tried with network pipe method pipe
(\\servername\dataunload.bat") which is not working and it says "dbacess" not
a valid command. dbaccess is an informix tool which is not available on
"myTestServer".

What I am trying to find, a command line utilities which should allow me to
logon to "MyDataServer" and execute the .bat file. I can do this using
RemoteDesktop where user inervention is required. Looking somehting similar
to FTP, telnet etc..

Any thoughts... kindly help..
Regards,

Use psexec.exe (www.sysinternals.com).
 
J

Jerold Schulman

I have a script which is basically a.bat file"dataunload.bat". This .bat file
will call .cmd file (InformixUnload.cmd) from in it. The .cmd file contains
few lines to start infomix (window ver) and unload records from few tables.

The script files "dataunload.bat" and "InformixUnload.cmd" are at a Win2k
server (called "MyDataServer") where Informix engine also running.

Now I want to execute "dataunlaod.bat" from another win2k server called
"myTestServer". I tried with network pipe method pipe
(\\servername\dataunload.bat") which is not working and it says "dbacess" not
a valid command. dbaccess is an informix tool which is not available on
"myTestServer".

What I am trying to find, a command line utilities which should allow me to
logon to "MyDataServer" and execute the .bat file. I can do this using
RemoteDesktop where user inervention is required. Looking somehting similar
to FTP, telnet etc..

Any thoughts... kindly help..
Regards,


See tip 4141 » PsExec freeware executes programs remotely.
in the 'Tips & Tricks' at http://www.jsifaq.com

Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
http://www.jsifaq.com
 
G

Guest

thanks very much for your help..

have just d/loaded the file. Let me try... Hope it will resolve my problem
 
G

Guest

thanks for the reference.. Let me try and I hope the resolution you have
given will resolve my issue.

regards
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top