• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC SKILL
  3. how to store the output from ipcbeginprocess into the another...

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 143
  • Views 10540
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

how to store the output from ipcbeginprocess into the another file

saurabh96
saurabh96 over 4 years ago

Hello Guys,

I have query regarding ipcbeginProcess-    below code am running


command=strcat("xterm -ls +hold -e \"./xyz.sh -version\"-parentTool virtuoso" )
cmdPid = ipcBeginProcess(command)
ipcWait(cmdPid)
cmd = ipcReadProcess(cmdPid)
abc = ipcBeginProcess(strcat("cmd > tmp.txt"))
ipcWait(abc)

after successfully running it is creating blank tmp.txt......i want to store the output from ipcreadprocess..

How i can correct it?

regards,

siddhart

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 4 years ago

    That''s not surprising - the xterm is not outputting anything on standard output, so the chances are that the second ipcBeginProcess is not working. Have you tried printing what is in the variable cmd? Also, you're then using strcat to concatenate a fixed string "cmd > tmp.txt" which is not reading this variable cmd? I have absolutely no idea what you're trying to do here, but the code above almost certainly doesn't do what you are trying to do!

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • saurabh96
    saurabh96 over 4 years ago in reply to Andrew Beckett

    Hi Andrew,

    1) Am trying to achiive the standard output from xterm in file tmp.txt............means when i start running xyz.sh file xterm opens and runs starts and that i want to store in tmp.txt file

    2)Also why  xterm is not outputting anything on standard output...how i can correct it?

    3)Yes  tried printing what is in the variable cmd is coming nil

    how i can correct it..pls guide

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 4 years ago in reply to saurabh96

    But xterm doesn't output anything on standard output - it's not supposed to! It's supposed to launch a new terminal, and then anything you run appears within that terminal.

    Perhaps you meant to do something like:

    command=strcat("xterm -ls +hold -e \"./xyz.sh -version > tmp.txt\"" )

    i.e. redirect the output from the xyz.sh command that you're invoking. However, if you're redirecting the output, why even use an xterm at all? 

    It's still a mystery to me what you're trying to do here - so it's very difficult to "guide" you.

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 4 years ago in reply to saurabh96

    But xterm doesn't output anything on standard output - it's not supposed to! It's supposed to launch a new terminal, and then anything you run appears within that terminal.

    Perhaps you meant to do something like:

    command=strcat("xterm -ls +hold -e \"./xyz.sh -version > tmp.txt\"" )

    i.e. redirect the output from the xyz.sh command that you're invoking. However, if you're redirecting the output, why even use an xterm at all? 

    It's still a mystery to me what you're trying to do here - so it's very difficult to "guide" you.

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information