Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [WORKAROUND] Execute batch file in fex (map to UNIX directory)

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[WORKAROUND] Execute batch file in fex (map to UNIX directory)
 Login/Join
 
Member
posted
Hello,

Tried searching but couldn't find anything.

I am attempting to execute a batch file using a focexec. The batch file and fex both reside on the Reporting server in Windows. The batch file simply maps to a drive on a UNIX server. I have been able to execute the batch file from a DOS window, but have had no luck calling the batch file from a .fex.

-*********
MYBATCH.bat
net use J: \\server\folder gomapit /USER:wfuser

-*********
MYFEX.fex
DOS E:\ibi\apps\IMPORT\MYBATCH.bat
-RUN

-*********
I get the error:

E:\ibi\srv76\wfs\edatemp\ts000066>net use J: \\server\folder gomapit /USER:wfuser
System error 1312 has occurred.
A specified logon session does not exist. It may already have been terminated.

Any suggestions?

This message has been edited. Last edited by: klongid,


WF Production Version: 7.64
WF Test Version: 7.64
Platform: Windows
Output: HTML, EXL2K, PDF
 
Posts: 6 | Registered: November 14, 2005Report This Post
Expert
posted Hide Post
Is wfuser a valid user on the Unix box? If you log onto Unix and check the file permissions, are there execute permissions on the bat file?


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
<JG>
posted
Is the tscom session that is running the request using a userid that has authority to logon to the server.

If it has not then you will not be able run it.

On Windows the account you use must have 'Logon Locally' as a security setting.
 
Report This Post
Member
posted Hide Post
Thanks to all who replied...

We were able to solve this by doing these 2 things:

1. Modified the Logon tab within the WebFOCUS 76 Services to logon as the userid that was given access to the UNIX server.
2. Added a profile to the Stored User Names and Passwords via Control Panel. We added the userid and password that was given read/write access to the UNIX directory.

We are no longer using a batch file to map to the drive prior to writing to the directory.


WF Production Version: 7.64
WF Test Version: 7.64
Platform: Windows
Output: HTML, EXL2K, PDF
 
Posts: 6 | Registered: November 14, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [WORKAROUND] Execute batch file in fex (map to UNIX directory)

Copyright © 1996-2020 Information Builders