Learning Documentation Community Open Exchange Global Masters Certification Partner Directory Ideas Portal
Developer Community
  • Posts
    • InterSystems Official
    • Articles
    • Questions
    • Announcements
    • Discussions
    • Tags
  • Events
    • Tech Article Contest
    • Programming Contest
    • InterSystems Ideas Contest
    • Event Calendar
  • Products
    • InterSystems IRIS
    • InterSystems IRIS for Health
    • HealthShare
    • TrakCare
    • Caché
    • Ensemble
    • InterSystems Analytics (DeepSee)
    • InterSystems Text Analytics (iKnow)
  • Jobs
    • Job Opportunity
    • Job Wanted
  • Members
  • About
    • About Us
    • FAQ
    • Feedback
    • Report an Issue
    • Share an Idea
    • Code of Conduct
    • Contact Us

EN

Search by posts, members, tags
Language
EN|
ESPTJPCNFREN
New post
  • Profile page
  • Posts (0)
  • Replies (6)
  • Mentions (1)
  • Official certification & Credly badges (0)
  • Global Masters badges (0)
  • Followers (0)
  • Following (0)
AllAccepted answers
    go to post
Dhruva Mishra · Jul 15, 2022

I found that we are on Window and that is the reason above given command is not working for me. can you help, how can we convert this into windows executable command?

0 0 https://community.intersystems.com/post/generating-excel-documents-cach%C3%A9-objectscript#comment-195221
    go to post
Dhruva Mishra · Jul 15, 2022

Hi Guys,

In the existing solution, following command is written for Unix/Linux.
set cmd ="cd "_fileDirectory_" && find . -type f | xargs zip .."_ext_xlsxFile

But I found that our cache is installed on Windows machine.

Can anyone help to convert this command to work in window executable form ?

0 0 https://community.intersystems.com/post/generating-excel-documents-cach%C3%A9-objectscript#comment-195216
    go to post
Dhruva Mishra · Jul 15, 2022

Yes, I have tried $ZF(-1 with other commands like mkdir and dir. It is working as expected and actions are done. So I think, we don't have issue with $ZF(-1).

But This might be a catch, I am not sure whether Xargs and Zip are installed or not. Currently we are using Unix/Aix machine, Could you please let me know how to install Xargs and Zip?

0 0 https://community.intersystems.com/post/generating-excel-documents-cach%C3%A9-objectscript#comment-195176
    go to post
Dhruva Mishra · Jul 15, 2022

No, $ZF(-1) is returning 1 which is unsuccessful for following line.  

set cmd ="cd "_fileDirectory_" && find . -type f | xargs zip .."_ext_xlsxFile

Is there any other way for doing the same what this command is doing?

0 0 https://community.intersystems.com/post/generating-excel-documents-cach%C3%A9-objectscript#comment-195161
    go to post
Dhruva Mishra · Jul 15, 2022

Actually  I have executed this only the cache prompt and do not have facility to access linux/unix directly. but I executed this command separately with $ZF(-1,cmd), there also it is not executing successfully and returning 1.  

0 0 https://community.intersystems.com/post/generating-excel-documents-cach%C3%A9-objectscript#comment-195126
    go to post
Dhruva Mishra · Jul 14, 2022

Hi Guys,

I have been trying this solution and it is working fine till the Sheet creation in the temporary folder.

But when we convert file Xlsx file with following command executing with $ZF(-1,cmd), it's not creating Xlsx file.
set cmd ="cd "_fileDirectory_" && find . -type f | xargs zip .."_ext_xlsxFile

could you please advise?

Thanks

0 0 https://community.intersystems.com/post/generating-excel-documents-cach%C3%A9-objectscript#comment-195006
Dhruva Mishra
@Dhruva.Mishra
Follow

User statistics

Posts
0
Replies
6
Likes
0
Applications
0
Badges
0
Followers
0
People reached
0
Accepted answers
0
  • Privacy & Terms
  • Guarantee
  • Section 508
  • Contest Terms
  • Cookies Settings
© 2025 InterSystems Corporation, Cambridge, MA. All rights reserved.

Log in or sign up

Log in or create a new account to continue

Log inSign up

Log in or sign up

Log in or create a new account to continue

Log inSign up

Log in or sign up

Log in or create a new account to continue

Log inSign up

Log in or sign up

Log in or create a new account to continue

Log inSign up