Jump to content


Vol Yip

Member Since 29 Mar 2002
Offline Last Active Oct 23 2017 02:11 PM
-----

Posts I've Made

In Topic: Kick off Unix bus and task from Windows

05 October 2017 - 09:29 AM

Wim,

 

I think I have found the solution. Thanks for your help. Much appreciated.

 

Vol


In Topic: Kick off Unix bus and task from Windows

05 October 2017 - 09:06 AM

Win,

 

I have one more question, in your example

 

p4task /task:1.1.1.1:8837:TK_Z_TASKTEST /env:GloviaEnvironment /oper:TSK:TSK /codiv:PTI

 

I believe 8837 is the port which opens for Windows to access Unix?

 

When I install Unix bus and task, I use the port 5435 and therefore my script is

 

./p4task /task:g2:5435:TK_SF_WO_COMPLETION /env:prod /user:prodapij:tsdjp123 /codiv:GLO /oper:TSK:TSK /params:CCN=$1,MAS_LOC=$2,WO_NUM=$3,WO_LINE=$4

 

In order to use Windows p4task.exe to start Unix task, do I replace my 5354 to your 8837?

 

I just installed a windows p4task.exe, I got the following error when execute:

 

C:\Glovia\bus\apisample>p4task /task:192.168.0.4:5453:tk_sf_wo_completiion /env:
prod /user:prodapij:tsdjp123
doConnect: connect failed: Host '192.168.0.4', port 5453
 last WIN32 error 10061 / winsock error 10061: Connection refused
p4OpenPro4: sockOpen to bus daemon failed
 No error

 

p4OpenPro4 failed: Last Error 1, StatusCode 0, FailReason 0, SubError 0
 
When I changed the port to 23 (I believe it is a universal port for accessing the Unix server:
 
C:\Glovia\bus\apisample>p4task /task:192.168.0.4:23:TK_SF_WO_COMPLETION /env:pro
d /user:prodapij:tsdjp123 /codiv:GLO /oper:TSK:TSK
p4OpenPro4: recv Reply failed
 last WIN32 error 2 / winsock error 2: Unknown
p4OpenPro4 failed: Last Error 30, StatusCode 0 (OK), FailReason 0, SubError 0
 
 
I think I am close but I need some more helps....
 
Thanks,
 
Vol

 

 

 

 


In Topic: Kick off Unix bus and task from Windows

05 October 2017 - 08:16 AM

Thanks Wim,

 

Looks like I need to install a window version of proiv in order to run p4task.exe........

 

Vol


In Topic: Kick off Unix bus and task from Windows

05 October 2017 - 08:07 AM

Hi Wim,

 

I think I need to clarify a bit. I have a proiv installation in Unix. What I want is so start a bus and task in Unix from a windows command prompt.

 

I used to use rsh in windows. In windows command prompt, I do:

 

C:\Documents and Settings\Administrator>rsh.exe G2 -l prodapij -n /g2/glovia/pro4bin/p4bus/task_wocomp.sh TS0007 TJE 26841 1

 

which will then start Unix script task_wocomp.sh, this script in fact will start

 

./p4task /task:g2:5435:TK_SF_WO_COMPLETION /env:prod /user:prodapij:tsdjp123 /codiv:GLO /oper:TSK:TSK /params:CCN=$1,MAS_LOC=$2,WO_NUM=$3,WO_LINE=$4

 
I am looking for an alternate way to start the same Unix bus and task from Windows since rsh is no longer support.
 
Vol

In Topic: Kick off Unix bus and task from Windows

05 October 2017 - 07:07 AM

Thanks Win,

Do you mean I can execute p4task.exe in Windows and specific ip of Unix then I can start a proiv bus and task in Unix? Do I need to install a proiv environment in Windows or I just copy p4task.eXe to Windows will do?

Vol