Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Execute a batch script on a windows server

419 views
Skip to first unread message

LewsTherin Dragon

unread,
Feb 3, 2012, 10:45:11 AM2/3/12
to
In order for our backup process to work I need our OpenVMS server to
run a batch file that I have on my backup server. The batch file is
simple script that will start the backup job. The reason it needs to
be scripted instead of scheduled is the backups are never ready at the
same time and we have a very small window to finish the backups.

Is this possible or do I need to approach this another way?

Steven Schweda

unread,
Feb 3, 2012, 2:55:43 PM2/3/12
to Steven M. Schweda
> [...] our OpenVMS server [...]

Not a very detailed description of anything.

> [...] my backup server [...]

Not a very detailed description of anything.

> Is this possible or [...]

Is _what_, exactly, possible? As usual, many things are
possible. If your non-VMS system has an RSH or SSH client,
and your VMS system has an RSH or SSH server, then it should
be possible for a script on the non-VMS system to run any
kind of command on the VMS system. On a bad day, if the
non-VMS system can send an e-mail message to a user on the
VMS system, then a program like DELIVER can be configured to
perform some task when an appropriate e-mail message is
received.

Selecting an optimal solution to a problem usually
requires some detailed information on the environment. For
example (as a start):

tcpip show version

LewsTherin Dragon

unread,
Feb 3, 2012, 3:36:18 PM2/3/12
to
Sorry,

HP TCP/IP Services for OpenVMS Alpha Version V5.4 - ECO 7
on a AlphaServer GS80 6/731 running OpenVMS V7.3-2

I was thinking RSH but I am having a ton of problems getting Subsystem
for UNIX-based Applications on our backup server that is running
Windows Server 2003 R2 Standard 64-bit.

Keep getting cannot connect to Interix subsytem even though I have
confirmed that registry and security policies are set correctly.

If I can get that working everything else should be easy but so far no
luck. Was wondering if there were other possibilities.

Steven Schweda

unread,
Feb 3, 2012, 5:47:57 PM2/3/12
to Steven M. Schweda
> [...] I am having a ton of problems [...]

Not a very useful problem description.

> [...] Keep getting cannot connect to Interix subsytem [...]

That tells me approximately nothing.

As usual, showing actual commands with their actual output
can be more helpful than vague descriptions or
interpretations.

With my weak psychic powers, I have no real idea what
you've tried, or exactly how it failed, so it's hard to make
any specific suggestions. In any situation involving a
problem communicating between two systems, it can be helpful
to bring in a third system, to try to determine where the
problem lies.

A problem with RSH does not guarantee a problem with SSH.

Jojimbo

unread,
Feb 4, 2012, 5:34:51 PM2/4/12
to
I guess you want to run a windows script based on the completion of a
VMS process. There are vendors that provide solutions for that
problem, the one I am currently using very successfully (in both
directions) is from ISE. Known as "Enterprise Schedule".
www.i-s-e.com . It costs money but then it is supported very well and
does work. I'm just a satisfied customer.

Regards, Jim

John Vottero

unread,
Feb 5, 2012, 4:47:10 PM2/5/12
to
On Feb 3, 10:45 am, LewsTherin Dragon <lewstherindra...@gmail.com>
wrote:
You could take a look at JAMS, a commercial scheduling product for
OpenVMS, Windows, Linux and many more. It is fully supported and can
easily do things such as this. I am one of the developers and I can
attest to the quality of the product.

For a free approach, install OpenSSH for Windows and use SSH to
execute the command.

John Vottero
MVP Systems Software, Inc.

LewsTherin Dragon

unread,
Feb 6, 2012, 3:21:07 PM2/6/12
to
Ok, I am very close on this I think. The situation is this.

I have Networker on a Windows Server 2003 R2 64bit machine. I have
Subsystem for UNIX-based Applications installed with the SDK Utility
pack. I can successfully RSH from my OpenVMS machine to the Networker
server.

On my OpenVMS machine I am currently running.
HP TCP/IP Services for OpenVMS Alpha Version V5.4 - ECO 7
on a AlphaServer GS80 6/731 running OpenVMS V7.3-2

I am using the command:
rsh 'hostname' "cd /dev/fs/C; /dev/fs/C/scripts/test2"
But I am getting the error: "./savegrp.exe: No such device"

-hostname is the name of our backup server.

test2 is a script on the Networker server that consists of this:
cd "/dev/fs/F/Program Files/Legato/nsr/bin/"
./savegrp.exe -G "Alpha VMS"

The script works if I run it manually on the Networker server so I
believe the syntax is correct there.

I hope I haven't left anything out. And I really appreciate all the
advice/help I have received so far.

VAXman-

unread,
Feb 7, 2012, 6:07:30 AM2/7/12
to
In article <4821a49e-441c-4bfe...@h3g2000yqe.googlegroups.com>, LewsTherin Dragon <lewsther...@gmail.com> writes:
>On Feb 5, 3:47=A0pm, John Vottero <j...@vottero.com> wrote:
>> On Feb 3, 10:45=A0am, LewsTherin Dragon <lewstherindra...@gmail.com>
>> wrote:
>>
>> > In order for our backup process to work I need our OpenVMS server to
>> > run a batch file that I have on my backup server. The batch file is
>> > simple script that will start the backup job. The reason it needs to
>> > be scripted instead of scheduled is the backups are never ready at the
>> > same time and we have a very small window to finish the backups.
>>
>> > Is this possible or do I need to approach this another way?
>>
>> You could take a look at JAMS, a commercial scheduling product for
>> OpenVMS, Windows, Linux and many more. =A0It is fully supported and can
>> easily do things such as this. I am one of the developers and I can
>> attest to the quality of the product.
>>
>> For a free approach, install OpenSSH for Windows and use SSH to
>> execute the command.
>>
>> John Vottero
>> MVP Systems Software, Inc.
>
>Ok, I am very close on this I think. The situation is this.
>
>I have Networker on a Windows Server 2003 R2 64bit machine. I have
>Subsystem for UNIX-based Applications installed with the SDK Utility
>pack. I can successfully RSH from my OpenVMS machine to the Networker
>server.
>
>On my OpenVMS machine I am currently running.
>HP TCP/IP Services for OpenVMS Alpha Version V5.4 - ECO 7
> on a AlphaServer GS80 6/731 running OpenVMS V7.3-2
>
>I am using the command:
>rsh 'hostname' "cd /dev/fs/C; /dev/fs/C/scripts/test2"
>But I am getting the error: "./savegrp.exe: No such device"
>
>-hostname is the name of our backup server.
>
>test2 is a script on the Networker server that consists of this:
>cd "/dev/fs/F/Program Files/Legato/nsr/bin/"
>../savegrp.exe -G "Alpha VMS"
>
>The script works if I run it manually on the Networker server so I
>believe the syntax is correct there.
>
>I hope I haven't left anything out. And I really appreciate all the
>advice/help I have received so far.

To augment John's "free" solution (ie. ssh), install CygWIN on your WEENDOZE
box and you'll get a unixy/linuxy shell and a slew of optionally installable
utilities which make WEENDOZE almost useful outside of being a game console.

--
VAXman- A Bored Certified VMS Kernel Mode Hacker VAXman(at)TMESIS(dot)ORG

Well I speak to machines with the voice of humanity.

Paul Sture

unread,
Feb 7, 2012, 9:33:21 AM2/7/12
to
To ask the obvious question:

Have you checked the firewall settings on the Windows server?

--
Paul Sture

LewsTherin Dragon

unread,
Feb 7, 2012, 3:17:02 PM2/7/12
to
On Feb 7, 5:07 am, VAXman- @SendSpamHere.ORG wrote:
Got CygWIN working Thank you!!!

Richard B. Gilbert

unread,
Feb 7, 2012, 5:23:49 PM2/7/12
to
Hi John!

Whatever happened to Argent Software? Several acquisitions?

Richard Gilbert

VAXman-

unread,
Feb 7, 2012, 6:20:58 PM2/7/12
to
In article <5c15b292-16ee-4ea1...@h3g2000yqe.googlegroups.com>, LewsTherin Dragon <lewsther...@gmail.com> writes:
>On Feb 7, 5:07=A0am, VAXman- @SendSpamHere.ORG wrote:
>>{...snip...}
>> To augment John's "free" solution (ie. ssh), install CygWIN on your WEEND=
>OZE
>> box and you'll get a unixy/linuxy shell and a slew of optionally installa=
>ble
>> utilities which make WEENDOZE almost useful outside of being a game conso=
>le.
>>
>> --
>> VAXman- A Bored Certified VMS Kernel Mode Hacker =A0 =A0VAXman(at)TMESIS(=
>dot)ORG
>>
>> Well I speak to machines with the voice of humanity.
>
>Got CygWIN working Thank you!!!

You're Welcome. There's one WEENDOZE box I have to deal with at a remote
site and CygWIN has made it so that I don't even feel dirty anymore from
touching WEENDOZE... mostly, because I don't. I can not understand why
anybody would pay for one of the halfwit WEENDOZE scripting products when
there's CygWIN and a plethora of unixy/linuxy commands and a shell.

Richard B. Gilbert

unread,
Feb 7, 2012, 11:52:32 PM2/7/12
to
On 2/3/2012 5:47 PM, Steven Schweda wrote:
>> [...] I am having a ton of problems [...]
>
> Not a very useful problem description.
>
>> [...] Keep getting cannot connect to Interix subsytem [...]

WTF is an "Interix subsystem"??????? Just to start with.

Are you using VMS? If so, is "Interex" somehow related

Paul Sture

unread,
Feb 8, 2012, 3:49:37 AM2/8/12
to
On Tue, 07 Feb 2012 23:52:32 -0500, Richard B. Gilbert wrote:

> On 2/3/2012 5:47 PM, Steven Schweda wrote:
>>> [...] I am having a ton of problems [...]
>>
>> Not a very useful problem description.
>>
>>> [...] Keep getting cannot connect to Interix subsytem [...]
>
> WTF is an "Interix subsystem"??????? Just to start with.
>
> Are you using VMS? If so, is "Interex" somehow related

"Subsystem for UNIX-based Applications (SUA) is a source-compatibility
subsystem for compiling and running custom UNIX-based applications on a
computer running a Microsoft® Windows® server-class operating system. You
can make UNIX-based applications fully interoperable with Windows in SUA
with little or no change to your original source code."

SUA was formerly know as Windows Services for UNIX (SFU):

http://en.wikipedia.org/wiki/Windows_Services_for_UNIX

"Like the Microsoft POSIX subsystem in Windows NT that it replaces,
Interix is not an emulation of a Unix kernel, but rather an
implementation of a user-mode subsystem running directly on top of the
Windows NT kernel.

Windows Services for Unix and Subsystem for Unix-based Applications
provide header files and libraries that make it easier to recompile or
port Unix applications for use on Windows; they do not make Unix binaries
compatible with Windows binaries. It is best thought of as a distinct
Unix-like platform."

There's also a support site known as SUA Community, which is sponsored by
Microsoft.

http://suacommunity.com/SUA.aspx

(unless things have changed, the videos on that site can only be viewed
on Windows systems - grr!)


--
Paul Sture

hb

unread,
Feb 8, 2012, 4:42:24 AM2/8/12
to
On Feb 8, 9:49 am, Paul Sture <p...@sture.ch> wrote:
> "Subsystem for UNIX-based Applications (SUA) is a source-compatibility
> subsystem for compiling and running custom UNIX-based applications on a
> computer running a Microsoft® Windows® server-class operating system. You
> can make UNIX-based applications fully interoperable with Windows in SUA
> with little or no change to your original source code."

... for compiling and running GNU-based applications ... SUA contains
gcc and GNU binutils.

Maybe MS will change its mind, but the current message is: "SUA is
deprecated starting with [the Windows 8 M3 Developer Preview] release
and will be completely removed from the next release."

Paul Sture

unread,
Feb 8, 2012, 7:34:25 AM2/8/12
to
As I recall in mid-2010 Microsoft stopped funding the SUA Community, then
backtracked. I thought I had stashed this info away, but I cannot find
it. Here is what I can find though:

http://blogs.msdn.com/b/sfu/archive/2010/07/06/suacommunity-com-
closure.aspx

--- start quote ---
6 Jul 2010 3:58 PM

0

SUACommunity.com Closure

Last week, I was equally surprised when I received the word that
SUACommunity.com is not getting the funds to continue functioning."

Yet, SUACommunity.com is still up. The forum section is broken though.
--- end quote ---

and

http://brianreiter.org/2010/08/24/the-sad-history-of-the-microsoft-posix-
subsystem/

--- start quote ---
The Sad History of the Microsoft POSIX Subsystem

...

Slowly Going Off the Rails

With Windows Server 2003 R2 (and only R2), Interix became a core
operating system component, rebranded as “Subsystem for UNIX
Applications” (SUA). Around this time, the core development team was
reformed in India rather than Redmond and some of the key Softway
developers moved on to other projects like Monad (PowerShell) or left
Microsoft. Interix for Windows Server 2003 R2 (aka Interix 5.2) was
broken. It shipped with corrupt libraries and a number of new but flawed
APIs and broke some previously stable APIs like select(). Also, related
to the inclusion of Interix as an OS component, SP2 for Windows Server
2003 clobbers Interix 3.5 installations.
--- end quote ---

1. Things broke after moving development to India. Sound familiar?

2. The OP may be seeing artefacts of the broken releases mentioned above.

and to round it off:

http://brianreiter.org/2011/09/15/sua-deprecated-in-windows-8/

--- quote ---
SUA Deprecated in Windows 8

One obvious reason to deprecate SUA is that loading the extra subsystem
makes Windows take a noticeably longer time to boot. The architecture is
very much at odds with the instant boot goals of Windows 8.

There have been a number of developments over the last few years that
makes Interix less compelling. Things like fast-CGI on IIS and an
official PHP port from Zend, lots of dynamic languages with native
Windows runtimes, mySQL and PostgreSQL for WIndows, C libraries like
pthreads for win32 and msys which have made Interix less necessary. For
perl-heads there is even Strawberry Perl which is supposed to be a lot
more CPAN friendly than ActiveState perl. I think Hyper-V and PowerShell
are the real strategic replacements for SUA, though. PowerShell
integrates with COM and WMI and fits the object nature of Windows better
than any POSIX shell could. Hyper-V lets you actually run your UNIX app
on Windows on a supported Linux platform which I’m sure smells much less
MacGuyver to CIOs than this weird Interix POSIX on Windows thing that
nobody ever heard of.

From the time that Hyper-V officially supported RHEL with hast
enlightened drivers and Jeffrey Snover decided that the new shell and
automation for Windows would be based on .NET and pivoted to build Monad/
PowerShell rather than putting KSH on every Windows machine, Interix’s
days were numbered. Now it’s official, Interix will be gone from the
world about 11 years when Windows 8 reaches end-of-life but if you are
smart you will jump ship now because this product will have the minimum
life support staff imaginable.
--- end quote ---

There's that boot time goal again :-)

--
Paul Sture

aruna...@gmail.com

unread,
Oct 18, 2013, 1:48:00 AM10/18/13
to
Hi,
can we run OpenVMS commands from windows operating system

Simon Clubley

unread,
Oct 18, 2013, 8:16:29 AM10/18/13
to
On 2013-10-18, aruna...@gmail.com <aruna...@gmail.com> wrote:
> Hi,
> can we run OpenVMS commands from windows operating system

You can use ssh assuming your VMS TCP/IP stack supports it.

Until you state what the real problem is, that's about the best advice
anyone is going to be able to give you.

Simon.

--
Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP
Microsoft: Bringing you 1980s technology to a 21st century world

Jan-Erik Soderholm

unread,
Oct 18, 2013, 9:00:54 AM10/18/13
to
Simon Clubley wrote 2013-10-18 14:16:
> On 2013-10-18, aruna...@gmail.com <aruna...@gmail.com> wrote:
>> Hi,
>> can we run OpenVMS commands from windows operating system
>
> You can use ssh assuming your VMS TCP/IP stack supports it.
>
> Until you state what the real problem is, that's about the best advice
> anyone is going to be able to give you.
>
> Simon.
>

And it says "on a windows..." in the title but "from windows..."
in the body. You have to decide which it is.

Jan-Erik.

Simon Clubley

unread,
Oct 18, 2013, 9:09:34 AM10/18/13
to
On 2013-10-18, Jan-Erik Soderholm <jan-erik....@telia.com> wrote:
> Simon Clubley wrote 2013-10-18 14:16:
>> On 2013-10-18, aruna...@gmail.com <aruna...@gmail.com> wrote:
>>> Hi,
>>> can we run OpenVMS commands from windows operating system
>>
>> You can use ssh assuming your VMS TCP/IP stack supports it.
>>
>> Until you state what the real problem is, that's about the best advice
>> anyone is going to be able to give you.
>>
>
> And it says "on a windows..." in the title but "from windows..."
> in the body. You have to decide which it is.
>

I noticed that, but I took it to mean they had a batch script running
on a Windows server and that batch script needed to issue commands to
a VMS box.

However, until the OP tells us _exactly_ what they want (for example,
do they need to capture and process output from the VMS command ?) we
can only guess what a solution might be for whatever their problem is.

Stephen Hoffman

unread,
Oct 18, 2013, 10:38:55 AM10/18/13
to
On 2013-10-18 05:48:00 +0000, aruna...@gmail.com said:

> can we run OpenVMS commands from windows operating system


This is as much a a generic Microsoft Windows networking question as
anything else; Windows doesn't play well with Unix or Linux (or
OpenVMS) by default, and you'll generally end up installing some tools
onto Windows to work in a heterogeneous environment.

As for common options for generic Unix networking on Windows...

Install an ssh package on Microsoft Windows (PuTTY is free, and there
are other options), and configure the ssh server on your fairly recent
OpenVMS system, and use that.

If you're working with an ancient version of OpenVMS (that lacks an ssh
server) and cannot upgrade, or if you otherwise don't care about
network and password security, then you can acquire rsh or rexec
clients for Windows and install those, and use that with the OpenVMS IP
stack.

There are probably some other commercial options around such as
distributed job-scheduling packages that support Microsoft Windows,
OpenVMS and other local platforms, and these might be worth
investigating in certain environments; tossing around commands can turn
into a project to create a distributed job scheduler with all that
entails around failures and restarts and logging and the rest, and such
packages may already have been written.

So Intel is still working with OpenVMS. Interesting.


--
Pure Personal Opinion | HoffmanLabs LLC

MG

unread,
Oct 18, 2013, 11:24:10 AM10/18/13
to
On 18-okt-2013 7:48, aruna...@gmail.com wrote:
> Hi,
> can we run OpenVMS commands from windows operating system

Hi,
consider career change from computer operating job

Paul Sture

unread,
Oct 19, 2013, 5:27:32 AM10/19/13
to
In article <l3rh5u$b5j$1...@dont-email.me>,
One package which comes to mind is Cronacle, formerly known as
Redwood/JCS (JCS stands for Job Control System). This certainly did
support OpenVMS, Windows and various flavours of Unix. Oracle was a
requirement for the server(s), and the name Cronacle implies it still is.

Redwood's claim back in 1998 was they would be willing to support any
platform on which Oracle was supported (and there were a lot of
platforms involved back then).

> So Intel is still working with OpenVMS. Interesting.

Good catch. I might would not have suggested Cronacle unless I knew a
large corporation might be involved, due to the Oracle prerequisite.

--
Paul Sture

IBM's Thomas J. Watson predicted a "world market for maybe five computers".
Given the way this whole Cloud thing is going, he might have been extremely
prescient.

Simon Clubley

unread,
Oct 19, 2013, 8:30:54 AM10/19/13
to
On 2013-10-19, Paul Sture <nos...@sture.ch> wrote:
>
> One package which comes to mind is Cronacle, formerly known as
> Redwood/JCS (JCS stands for Job Control System). This certainly did
> support OpenVMS, Windows and various flavours of Unix. Oracle was a
> requirement for the server(s), and the name Cronacle implies it still is.
>

Because of the lack of information from the OP we still don't know if a
job scheduler is a appropriate solution or if they are really looking to
issue ad-hoc commands for purposes of (say) UAF and general system
management.

If the OP is still reading, then if you expand on your original
posting, we can make more detailed suggestions.
0 new messages