Run a Non-IBM program with program doc

Hey Guys

I’m a newbie to Program Documents, but not domain > 20 years here, but never tried to setup a program document before.

I want to run one of my own programs & have tried all kinds of different settings & searching with no joy :frowning:

Program name: C:\WINDOWS\system32\cmd.exe

Command line: /c D:\IBM\Lotus\Router.exe 17 1

So basically I want to run a program called router.exe in the directory D:\IBM\Lotus & pass the 2 parameters 17 & 1

I have not been able to get anything to run !!!

The help says

“A Program document is used to automatically run a server task at a specific time. You can also use a Program document to run an OS/2 command file, a UNIX shell script or program, or an API program. You can use the Program document to schedule tasks and/or programs.”

So I think my program would be considered an API program.

Is this only for running server addin programs ???

TIA

NG

PS I have tried other setting, much simpler, but I thought this was as complicated as it could get !!!

Subject: Questions

How do you know for sure the exe is not running or the program doc is not running.

Have you tried at a cmd prompt on the server to run the exe? Maybe you need to specify the path for the exe in the command line

You can create a batch file with the exe and echod to a txt file right before and right after the exe runs.

Subject: Run a Non-IBM program with program doc

Hey BS

I do not think you read my post very well !!!

How do you know for sure the exe is not running or the program doc is not running.

[NG] Because it is not changing the routers settings, that is what the program does, I can see in the browser that the program doc does not work :slight_smile:

Have you tried at a cmd prompt on the server to run the exe? Maybe you need to specify the path for the exe in the command line

[NG] Yes I have many time, while I was debuggin the router.exe program & many many times since, I have a pretty good idea of how to troubleshoot my own code after almost 40 years of software engineering !!!

You can create a batch file with the exe and echod to a txt file right before and right after the exe runs.

[NG] Thanks for the tip, tried this and many other ‘things’ to see if it was working !!!

[NG] So BS my question is 'Have you ever created a prog. doc. ???"

NG

Subject: Response

First let me say that I have been involved with Notes client and servers since 1.0a so don’t be so smart.

The question was are you sure the program doc actually runs and does it excute the exe. That is why I stated to try a batch file where you can echo to a file right before and after it ran.

Truly think I was clear the first time around

Subject: Truly think I was clear the first time around :slight_smile:

Hey BS

I know I was clear the first time around, my post started with → “I’m a newbie to Program Documents”

First let me say that I have been involved with Notes client and servers since 1.0a so don’t be so smart.

[NG] Gee that is so impressive, but you are still struggling to read and understand English !!!

The question was are you sure the program doc actually runs and does it excute the exe. That is why I stated to try a batch file where you can echo to a file right before and after it ran.

[NG] Thats “excute” what ???

[NG] Pls. stop talking about the program - I’m a newbie to “Program Documents”, I do not want to hear about the program !!!

Truly think I was clear the first time around

[NG] You are making a fool of yourself

[NG] I asked you do you have experience with “Program Documents”, you did not answer, so I am guessing that is a NNNNNNNOOOOOOOO from BS ???

NG

Subject: Are you serious?

You get given free help by someone and you act like a complete…

Nigel seriously, have some manners, you might do well to remember you are using your company name as your id.

I’m also reluctant to try and offer you help, but here is what I suggest:

you have:

Program name: C:\WINDOWS\system32\cmd.exe

Command line: /c D:\IBM\Lotus\Router.exe 17 1

I would try

Program name: cmd.exe

Command line: /c “D:\IBM\Lotus\Router.exe 17 1”

Now, if you are starting domino as a service, the service account you set domino to run as must have rights to run.

Here’s an article that someone wrote that also talks about using a batch file.

http://www.assono.de/blog/d6plinks/Starting-Batch-Files-with-Program-Documents

Subject: No, you were not…

The question was are you sure the program doc>>actually runs and does it excute the exe.

That is why I stated to try a batch file

where you can echo to a file right before and

after it ran.

[NG] Thats “excute” what ???

“Execute the exe”, i.e. the program (a.k.a. executable, often abbreviated as exe or .exe based on the old DOS extension) you are trying to run using the program document.

Pls. stop talking about the program - I’m a

newbie to “Program Documents”, I do not want

to hear about the program !!!

It is relevant. My first thought when I read the original post by you wast the same as Barry had. Are you really sure that the program you are trying to launch actually can run? Is the path correct, are the arguments correct, does it have sufficient privileges, etc.

[NG] You are making a fool of yourself

I think you are, you are coming here, asking for help, then having an attitude when Barry is trying to help. He had valid questions, as you just wrote “I have not been able to get anything to run !!!”. That is not very helpful. You also did not include any information about what you tested, the result of those tests, etc.

The first thing i would have done is to write a small executable that only return the arguments passed to it. That way you can test if you have the program document set up correctly.

If that is the case, you would knwo that the problem is in your program.

Also, I think it is interesting that you are posting using an account with a company name, and you only identify yourself with initials. I think common courtesy is that you at least sign your posts with your full name, if you don’t use an individual account (which I recommend).

A little Google search seems to indicate that you are Nigel Grant, which matches the initals used in your post.

[NG] I asked you do you have experience

with “Program Documents”, you did not answer,

so I am guessing that is a NNNNNNNOOOOOOOO

from BS ???

Now you sound like my son sounded like in Kindergarten… :slight_smile: Barry had some valid questions, and I don’t think your response was warranted.

When it comes to program documents, I have not used them either. However, your program (which you don’t describe more in detail) is probably not considered an API program (what the in this regard fairly outdated documentation probably mean by that is a program created using the C API and running as a plugin to the Domino server). I would experiment by calling a .bat file (the Windows equivialent of the OS/2 command file), which then calls your program.

That .bat file could also be used to just echo the arguments back, so you could see that it actually works.