
Calling another Perl script (on UNIX) from a script on Windows NT
Quote:
>Hello!
> I am using ActiveState's ActivePerl on Windows NT 4 most of the
>time. I am not having a need of calling a Perl script on UNIX box from
>my Perl script on my Windows NT machine. The purpose is to FTP (upload)
>a file from local machine to one of our server.
At work, we have several OpenBSD computers along with a bunch of Windows
based computers. Making a long story short, a specific activity on one of
the Windows computers will trigger a Perl script on one of the OpenBSD
computers. However, I used the KISS method. :) Samba is running on the
OpenBSD computer, and one of its shares is mapped as a network drive on the
Windows computer. A certain action on the Windows computer will cause it to
write a "semaphore" file on the OpenBSD's share. A background script
running on OpenBSD monitors the share for the existance of the semaphore
file, and will run a Perl script "if" so. It's a very easy way to do it.
Hope this gives you some ideas!
--
---------------------------
Dana Booth <dana[at]oz.net>
Tacoma, Wa., USA
---------------------------