Mombu the Programming Forum

Go Back   Mombu the Programming Forum > Programming > Execute . exe on remote windows server
User Name
Password
REGISTER NOW! Mark Forums Read




Reply
1 25th September 09:32
luca marazzi
External User
 
Posts: 1
Default Execute . exe on remote windows server



Hi to all

I have a problem. At the End of a Filemaker script i have to execute
automatically an .exe on a remote Windows server.........i have thought to
use an
applescript (in filemaker script i can use a applescripts) , this exe will
be in a windows remote folder with specific authorization. and the server
must execute it.....do you know some tricks?What kind of function/command
could i use?

Thank you very much.

Luca Marazzi
  Reply With Quote


 


2 25th September 09:32
simon slavin
External User
 
Posts: 1
Default Execute . exe on remote windows server



That depends on what services the Windwos server is running and whether
you have enough privilages to trigger it to run programs. Once you know
that, you'll get better help on a newsgroup about Windows servers than you
will on an Apple group.

Simon.
--
http://www.hearsay.demon.co.uk
  Reply With Quote


 


3 25th September 09:32
luca marazzi
External User
 
Posts: 1
Default Execute . exe on remote windows server


"Simon Slavin" <slavins.delete.these.four.words@hearsay.demon.co. uk> ha
scritto nel messaggio news:fovta1$51u$1$8300dec7@news.demon.co.uk...

This ".exe" on the server open many text file in a directory on the server,
take all the row and create as many text files (formatted in a specific way)
as row and paste them to a remote computer (the directory of remote computer
is mounted on the server). I need to do it puntually evreytime @ the end of
a Filemaker Script . This filemaker script is excecute from an Apple
comupter. So i had tought that maybe it exist an apple script (like eppc
that could specify the account usr/pwd) that could execute this exe.......

Luca
  Reply With Quote
4 25th September 09:32
jerry kindall
External User
 
Posts: 1
Default Execute . exe on remote windows server


You could probably have it set up under Internet Information Services
(IIS, the Windows Web server). It can run EXEs in response to requests
for Web pages. Then you could just call the URL of the .EXE from your AppleScript. --
Jerry Kindall, Seattle, WA <http://www.jerrykindall.com/>

Send only plain text messages under 32K to the Reply-To address.
This mailbox is filtered aggressively to thwart spam and viruses.
  Reply With Quote
5 25th September 09:32
luca marazzi
External User
 
Posts: 1
Default Execute . exe on remote windows server


"Jerry Kindall" <jerrykindall@nospam.invalid> ha scritto nel messaggio
news:180220082025324406%jerrykindall@nospam.invali d...

This is a clever idea! (thnx)......but i have a little problem........ i
don't want to install another service.....the server is quite under heavy
work (DC, Dns, Fileserver,Backup Server....)

Do you know another possible solution?

Thnx Anyway!

Luca Marazzi
  Reply With Quote
6 25th September 09:32
jerry kindall
External User
 
Posts: 1
Default Execute . exe on remote windows server


Hmm, well, if you're ONLY using IIS for this, I am pretty sure it will
get swapped out of memory when that memory's needed elsewhere and have
little effect on performance. You might try it, anyway.

Another thing you could do, however, is use the Windows telnet service
(be sure to block it from the Internet, as it is not secure). It
should be possible to script Terminal to log on to the Windows box over
Telnet, get a DOS command prompt, and run the script that way. The
telnet service should have a lighter footprint than IIS. --
Jerry Kindall, Seattle, WA <http://www.jerrykindall.com/>

Send only plain text messages under 32K to the Reply-To address.
This mailbox is filtered aggressively to thwart spam and viruses.
  Reply With Quote
7 25th September 09:33
luca marazzi
External User
 
Posts: 1
Default Execute . exe on remote windows server


"Jerry Kindall" <jerrykindall@nospam.invalid> ha scritto nel messaggio
news:190220080837297303%jerrykindall@nospam.invali d...

I will give it a try.......

mumble mumble...............but could applescript open a telnet session, log
on, get a dos cmd prmpt, and run an exe automatically?

Thank you for you patience!

Luca Marazzi
  Reply With Quote
8 25th September 09:33
jerry kindall
External User
 
Posts: 1
Default Execute . exe on remote windows server


Well, you'd have to tell Terminal to do it, and you'd have to do it by
timing rather than actually looking for the prompts, but it could be
made to work. --
Jerry Kindall, Seattle, WA <http://www.jerrykindall.com/>

Send only plain text messages under 32K to the Reply-To address.
This mailbox is filtered aggressively to thwart spam and viruses.
  Reply With Quote
9 25th September 09:33
john stewart
External User
 
Posts: 1
Default Execute . exe on remote windows server


On 2008-02-25 21:44:19 -0500, Jerry Kindall <jerrykindall@nospam.invalid> said:

No, you need not use Terminal, use "Expect" instead as it can look for
prompts and answer them automatically.

You may not have it installed so if <x-man-page://expect> or man expect
in terminal comes up dry, you can get it here -

<http://expect.nist.gov/> the developer home page
<http://www.macports.org/ports.php?by=name&substr=expect>

Or via Fink.

J
  Reply With Quote
10 25th September 09:33
simon slavin
External User
 
Posts: 1
Default Execute . exe on remote windows server


You wouldn't do it like that. Unless you're going to go to the trouble of
inventing an AI to deal with all the slight differences you'll see in the
responses to the commands. Far more likely that your remote computer will
just trigger a script on the server and the script will have all the
intelligence in it.

I'm also concerned about how much power you're giving to an external user.
If you allow external users to execute arbitrary commands on your server
you might as well just hang out a sign to hackers saying "Exploit me !".
I would never run a server like that.

A better way to do it would be to have a script perpetually executing on
the server: every minute it wakes up, looks in one place to see if it has
to do it's job, does whatever it has to do, then goes back to sleep for a
minute before checking again. All your FileMaker script has to do is
something very simple like edit one text file on the server to add a line
to it. Or, if the job is simple enough and doesn't need to pass any
parameters/variables/values, just change the edit date on that file.

Simon.
--
http://www.hearsay.demon.co.uk
  Reply With Quote
Reply


Thread Tools
Display Modes




666