Solved

Execute shared program from command line on remote system

Posted on 2004-08-31
14
2,598 Views
Last Modified: 2008-01-09
I am trying to execute the following from a command line:

\\dana01\security\Superdat\sdat4388.exe -silent

Would like to run the above from a remote system - I have tried pstools / psexec but cannot seem to getit to work -

Is there a way to execute a program/ process on a remote system from the command line?
0
Comment
Question by:tbaseflug
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
  • 2
  • +2
14 Comments
 
LVL 84

Expert Comment

by:oBdA
ID: 11946383
McAfee comes with a scheduler that allows you to automatically install the updates from a share; which version are you using?
0
 

Author Comment

by:tbaseflug
ID: 11946405
oBdA -

For whatever reasons, I have been asked to create / develop a program that will circumvent the McAfee utility.
0
 
LVL 2

Expert Comment

by:wtp_issc
ID: 11946426
Drag the executable into the command prompt to verify you're using the right path.  Looks like it should work.  I've never used the -silent switch so you might want to make sure it works with that executable.
0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 

Author Comment

by:tbaseflug
ID: 11946469
wtp_issc -

OK, did that and it does work (with -silent as well) - everything works great when executed locally, just want to be able to do the same on a remote system, from my local cmd line
0
 
LVL 6

Expert Comment

by:tanelorn
ID: 11946521
Hi,


will it work without the -silent switch?
also,  how are you calling that line
\\dana01\security\Superdat\sdat4388.exe -silent
is it part of a batch file? or how?
also, are you using task scheduler to run it?

   it almost sounds like you want to update the remote machine, not run the exe from a share.
      in that case i've used pstools to do this. put your update file in the same dir as your pstools (for simplicity..)
      psexec \\remote-machine -s -c -d sdat4388.exe -silent
      the -c will copy it to the target machine. before running it



Tanelorn
0
 
LVL 7

Expert Comment

by:msice
ID: 11947008
I think the only way to do this from a remote computer would be to schedule a command on the remote computer to run. Like so
AT \\RemotePCName 02:00pm "\\dana01\security\Superdat\sdat4388.exe" -silent
Or have it run a vbs that will run what you need.
0
 
LVL 6

Expert Comment

by:tanelorn
ID: 11947981
Hi

the solution will depend on how he wants to develop his "thang"

if he wants to push,  pstools "psexec"  will work
if he wants to pull,  AT sceduler will work,  heck, even task scheduler will work..

I use psexec to push and run virus remover tools on machines I knew were broadcasting...(or listening for that matter)
works like a charm...

Tanelorn
0
 
LVL 7

Expert Comment

by:msice
ID: 11953961
Sounded like he wanted to run sdat4388.exe on a remote computer from the cmd line of another.
0
 

Author Comment

by:tbaseflug
ID: 11963487
All -

What I am trying to do is to setup a file or program to execute sdat4388.exe on a remote system on an hourly interval / schedule.  Was hoping at least to be able to run / execute sdat4388.exe rom the command line on a remote system, if so, would be able to run this again through something like SQL Server via the xp_cmdshell sproc - for some reason, when I try and run the psexec through the command line, on a remote system, it starts and then appears to hang up and never respond back - if I run the following line on my local systsm: \\servername\security\SuperDat\sdat4388.exe - it runs great and as expected, so am at a loss
0
 
LVL 7

Expert Comment

by:msice
ID: 11964953
You can setup a secheduled Task on a remote computer using the AT command.
0
 

Author Comment

by:tbaseflug
ID: 11964967
How would I do that, per an example, from a command line
0
 
LVL 2

Expert Comment

by:wtp_issc
ID: 11965035
I think the issue lies as to why that remote machine will not run the executable.  You should be able to easily set up a scheduled task that points to that executable or point it to a batch file that includes that executable.
0
 
LVL 7

Expert Comment

by:msice
ID: 11965147
As I said above "I think the only way to do this from a remote computer would be to schedule a command on the remote computer to run. Like so
AT \\RemotePCName 02:00pm "\\dana01\security\Superdat\sdat4388.exe" -silent
Or have it run a vbs that will run what you need."
0
 
LVL 7

Accepted Solution

by:
msice earned 500 total points
ID: 11965216
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Virtualise server 2000 for Hyper V 4 865
unable to search  data in SQL 2000 server 10 320
Dell PowerEdge raid drive replacement 13 526
Can you expand C: in Windows 2000? 5 138
NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
This article is a collection of issues that people face from time to time and possible solutions to those issues. I hope you enjoy reading it.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question