Problem in running shell command in Cadence??

Discussion in 'Cadence' started by Reotaro Hashemoto, Jul 1, 2008.

  1. Hi,

    I need to call some commands from shell (using bash), i tried using
    system("command"), sh("command"). The first should print the shell
    output (e.g. system("date") should print the day date, and return 0),
    that doesn't happen! It only returns 0 and no output is printed!!

    What is the problem I do probably have?

    Thanks and regards,
    Ahmad
     
    Reotaro Hashemoto, Jul 1, 2008
    #1
  2. Reotaro Hashemoto

    Guest Guest

    Where are you looking for the output? It will output to the terminal window
    from which you started DFII, not to the CIW.

    -Pete Zakel
    ()

    "Now and then, an innocent man is sent to the Legislature."
     
    Guest, Jul 1, 2008
    #2
  3. Oh! Thanks for the hint :)

    But what if I need to save or process over the output of the system
    call? Then what should I do?

    Any suggestions?
    Thanks and regards,
    Ahmad
     
    Reotaro Hashemoto, Jul 2, 2008
    #3
  4. Reotaro Hashemoto

    Joel Guest

     
    Joel, Jul 2, 2008
    #4
  5. Joel wrote, on 07/02/08 15:46:
    They've also come up a lot in comp.cad.cadence recently - so a google search of
    the group should be beneficial.

    Regards,

    Andrew.
     
    Andrew Beckett, Jul 7, 2008
    #5
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.