Running a Perl script under Cygwin

From: Filipe Bonjour (fbonjour_at_urbanet.ch)
Date: 09/25/03


Date: Thu, 25 Sep 2003 21:55:35 +0200

Hi,

Looking for a scripting language able to get the list of processes
under Win2000 (as "ps" in Unix), I found that Perl had a module
called ProcessTable that does that. Unfortunately, it will not
compile under Windows, so I had to complicate the setup by compiling
it under Cygwin. Does anyone know how to call that script from
outside the Cygwin prompt? For instance, from the WIndows scheduler?

To be more accurate:

We have at work a bunch of Unix boxes and we use Control-M to
schedule tasks on those servers (cleaning logs, etc) that are
performed by scripts. But now our customers decided to move to
Windows 2000, and we need to perform the same job: call a Perl
script compiled with Cygwin from the Control-M agent (which is
on the same host as the script).

I'd appreciate any help on this! I know Linux and Unix well, but
as I am not a Windows user, I have never used Cygwin at all...

Thanks in advance!

Filipe



Relevant Pages

  • Re: How do Unix grep, find, sort?
    ... 1996 after starting Windows admin after many years in Unix, ... You could also inline the replace into one script ... Right now it is still much a roll your own world, in Windows ... do go down the road with some script language. ...
    (microsoft.public.windows.server.scripting)
  • RE: Is there a way for Samba to authenticate via PAM?
    ... >password which changes both the unix and windows password. ... could you share that script with me? ... everyone uses the same password for Linux system password and for Samba. ...
    (RedHat)
  • Re: [SLE] Windows backups to a Linux server
    ... will just rsync the system to the linux server. ... .BAT file that called cygwin and my bash script. ... Windows event scheduler and all was fine. ...
    (SuSE)
  • Re: Amazon used lisp & C exclusively?
    ... The sysv approach was to use a generic master script which you don't ... Windows has symlinks to directories. ... reuired because of broken unix programs. ... SYSV and 3.4+BSD supported the setting of the sticky bit on files AND ...
    (comp.lang.lisp)
  • Re: How to get the application path
    ... Why do you limit this to "Unix"? ... shell process waiting until the the binary proper returns. ... Could you tell me the equivalent of my script in CMD.exe? ... Application paths in Windows are supposed to be set in the registry; ...
    (comp.lang.ada)