in reply to (OT) executing a command on a remote Windows XP machine

Does the command you show work from the command line?

I doubt it, as the way you have it coded, it would try to load the command snp109 from the remote machine \\oywps01 and run it on the local machine.

Once you have worked out the correct syntax for running the command on the remote machine from the command line, that same syntax will probably work from your script via system.


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail
"Memory, processor, disk in that order on the hardware side. Algorithm, algorithm, algorithm on the code side." - tachyon

Replies are listed 'Best First'.
Re^2: (OT) executing a command on a remote Windows XP machine
by blackadder (Hermit) on Oct 08, 2004 at 11:27 UTC
    Oh yeah it does buddy,....

    its only a print server with few printer defenistion on'em.

    I am using PSEXEC utilty to do the job,..But I will try WIn32::KillProcess again, I'd much rather a Perl solution than any other.
    Blackadder