Home > Community > Forums > Custom IC SKILL > display "program running process" on unix terminal or new window

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 display "program running process" on unix terminal or new window 

Last post Fri, Aug 16 2013 1:04 PM by skillUser. 4 replies.
Started by tomchen 16 Aug 2013 06:52 AM. Topic has 4 replies and 659 views
Page 1 of 1 (5 items)
Sort Posts:
  • Fri, Aug 16 2013 6:52 AM

    • tomchen
    • Not Ranked
    • Joined on Thu, Feb 17 2011
    • Posts 11
    • Points 200
    display "program running process" on unix terminal or new window Reply

    Hi:

    I want to use skill to invoke "calibre " command  and want to display the "running process" on unix terminal or new window like assura running process.

     I only find ipcWaitProess and ipcReadProcess, but these command only can get result.

    I want users know that calibre is running when he invoked skill gui button.

    I aslo want virtuoso can still work, not occupy by calibre .

    thanks 

    • Post Points: 20
  • Fri, Aug 16 2013 7:26 AM

    • skillUser
    • Top 10 Contributor
    • Joined on Fri, Sep 19 2008
    • Austin, TX
    • Posts 2,594
    • Points 16,040
    Re: display "program running process" on unix terminal or new window Reply

    Hi Tom,

    You need to run the job as an asynchronous process - look for "Asynchronous Input/Output" in the documentation and it should show you how to do this.

    Hopefully this will help you.

    Regards,

    Lawrence.

    • Post Points: 20
  • Fri, Aug 16 2013 9:52 AM

    • tomchen
    • Not Ranked
    • Joined on Thu, Feb 17 2011
    • Posts 11
    • Points 200
    Re: display "program running process" on unix terminal or new window Reply

    HI Lawrence:

    I Just try and virtuoso won't be stopped by running other EDA tools

    however the running process still can 't display on unix terminal  or CIW window.

    only disply "Lauch" on CIW. 

    my code as below:

     procedure(TEST()

         prog((cid result)

            run_command = "calibre -lvs rulerile

           cid = ipcBEginProcess(

                  run_command

                 "MTDataHalder"

              ""

              'MTStatushalder

          );

     

    procedure(MTKStatushalder(cid status)

        prog(()

        printf("===>Lauch \n") 

      );end prog

    );end proc

     

    procedure(MTKDatahalder(cid data)

       prog(()

         (unless (displayExResults data)

              error("Display failed \n")

      );end prog

    )end proc 

    • Post Points: 35
  • Fri, Aug 16 2013 1:01 PM

    • skillUser
    • Top 10 Contributor
    • Joined on Fri, Sep 19 2008
    • Austin, TX
    • Posts 2,594
    • Points 16,040
    Re: display "program running process" on unix terminal or new window Reply

    Hi Tom,

    Not sure if it is a copy-paste problem, but your first procedure "TEST" is not complete, the prog and procedure both need a close parenthesis. You can use ipcIsAliveProcess() to query the child process id and see if it is still running.  You can use ipcWriteProcess() if anything needs to be sent to the child process. For these you will need the child handle, so don't declare it in the prog local variables (but you can add run_command to the list).

    Hope this helps.

    Regards,

    Lawrence.

    • Post Points: 5
  • Fri, Aug 16 2013 1:04 PM

    • skillUser
    • Top 10 Contributor
    • Joined on Fri, Sep 19 2008
    • Austin, TX
    • Posts 2,594
    • Points 16,040
    Re: display "program running process" on unix terminal or new window Reply

    The dataHandler should notify you when there is data available from the child process.  In a synchronous communication flow you would use ipcReadProcess to read back from the process.

    Lawrence.

    • Post Points: 5
Page 1 of 1 (5 items)
Sort Posts:
Started by tomchen at 16 Aug 2013 06:52 AM. Topic has 4 replies.