Absent Member.. AlfredoMonasi Absent Member..
Absent Member..
437 views

It's possible to execute apps in other servers and O.S?

Jump to solution

Hi guys,

 

I have a client thats has PPM on a non Windows environment but needs to create a PDF with data of PPM, so I'm thinking of dooing some programming with .Net and send a mail with the attach. But I have doubts if a PPM execution will be able to run a command prompt app on other server and operating system.

 

It is possible? If yes what considerations I should have?

 

Regards

 

Alfredo

0 Likes
1 Solution

Accepted Solutions
Absent Member.. Jim Esler Absent Member..
Absent Member..

Re: It's possible to execute apps in other servers and O.S?

Jump to solution

You will use one of the ksc_connect_xxx commands to connect to the Windows server. You will specify the id and password used to connect to the server in an environment definition. The id used to connect will need execute access to the commands to be executed.

 

When you connect in this way, you are connected to a Unix emulator and Unix syntax can be used. The commands that are executed, though, may understand only Windows syntax and conventions. For instance, a parameter that specifies a file may need to be in Windows format. Cygwin can translate a Unix style path to the Windows style with something like this:

 

     WPATH="$(cygpath -a -w [DEST_ENV.ENV.CLIENT_BASE_PATH]/[P.P_SUB_PATH]/[P.P_FILENAME])"

 

Sometimes it is useful to initiate a Windows script with the cscript.exe command. We have used this to execute vbs scripts.

4 Replies
Absent Member.. Jim Esler Absent Member..
Absent Member..

Re: It's possible to execute apps in other servers and O.S?

Jump to solution

In order to run commands on a Windows server, we installed Cygwin on that server. Any Windows executable that can be executed with a command line can be run this way. We are running PPM on AIX.

0 Likes
Absent Member.. AlfredoMonasi Absent Member..
Absent Member..

Re: It's possible to execute apps in other servers and O.S?

Jump to solution

Hi Jim,

 

And you just call it like this sh /server_name/folder_name/app -param1 ? or there is another way to call the app?

 

The folder where the app will be needs a special permission in the shared preferences? or the user that PPM uses in order to access to that specific folder?

 

Regards

 

Alfredo

0 Likes
Absent Member.. Jim Esler Absent Member..
Absent Member..

Re: It's possible to execute apps in other servers and O.S?

Jump to solution

You will use one of the ksc_connect_xxx commands to connect to the Windows server. You will specify the id and password used to connect to the server in an environment definition. The id used to connect will need execute access to the commands to be executed.

 

When you connect in this way, you are connected to a Unix emulator and Unix syntax can be used. The commands that are executed, though, may understand only Windows syntax and conventions. For instance, a parameter that specifies a file may need to be in Windows format. Cygwin can translate a Unix style path to the Windows style with something like this:

 

     WPATH="$(cygpath -a -w [DEST_ENV.ENV.CLIENT_BASE_PATH]/[P.P_SUB_PATH]/[P.P_FILENAME])"

 

Sometimes it is useful to initiate a Windows script with the cscript.exe command. We have used this to execute vbs scripts.

Absent Member.. AlfredoMonasi Absent Member..
Absent Member..

Re: It's possible to execute apps in other servers and O.S?

Jump to solution

Thanks Jim,

 

I will try it and let you know!

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.