Home > Community > Forums > Custom IC SKILL > problem with starting the script in skill

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: *

 problem with starting the script in skill 

Last post Wed, Feb 27 2013 7:34 AM by imagesensor123. 7 replies.
Started by imagesensor123 26 Feb 2013 06:46 AM. Topic has 7 replies and 990 views
Page 1 of 1 (8 items)
Sort Posts:
  • Tue, Feb 26 2013 6:46 AM

    problem with starting the script in skill Reply

    Hello,

       I have writen a script file (myCheck.sh), I would like to start the myCheck.sh in skill procedure,

      I tryed csh("myCheck.sh"), but it does not work. so what's the real process for starting the script file in skill.

    my status: IC5141, spectre simulator

    welcome to any suggestion!

     

    regards,

    zfeng 

    Regards, zfeng
    • Post Points: 20
  • Tue, Feb 26 2013 7:44 AM

    Re: problem with starting the script in skill Reply
    That's a perfectly reasonable way of running a script. Unfortunately "it does not work" doesn't tell anyone what does not work - please be more specific. Remember that any output the script produces will appear in the terminal window.  

    Andrew
    • Post Points: 35
  • Tue, Feb 26 2013 7:50 AM

    • theopaone
    • Top 100 Contributor
    • Joined on Tue, Feb 12 2013
    • Cedar Park, TX
    • Posts 77
    • Points 1,160
    Re: problem with starting the script in skill Reply

    If you want the script to communicate with SKILL, you should look at the IPC functions such as ipcBeginProcess. Otherwise, the script is executed in a separate shell with no connection back to Virtuoso.

     Ted

    • Post Points: 20
  • Tue, Feb 26 2013 8:01 AM

    Re: problem with starting the script in skill Reply

    Hello Andrew,

        my script ("myCheck.sh") is as following:

         #! /usr/local/bin/tcsh

         ic5141

         ams370

         spectre input2T5.scs

         grep Vout -w capFile > capOut 

     

    the script is firstly to lunch the simulation and then process the file "capFile" to extract some info into file "capOut". in fact, when i use the command csh("myCheck.sh"), it just return "t" in CIW, no result is generated! 

    you mentioned the results(any output) will appear in the terminal, but I never see any terminal is trigered and turned up in this whole procedure!

     

    regards,

    zfeng 

    Regards, zfeng
    • Post Points: 5
  • Tue, Feb 26 2013 8:06 AM

    Re: problem with starting the script in skill Reply
    Hello thepaone, thx, yes, you're right! my idea is to start the simulation in backgroud to extract some low level parameter to be used later in high level modeling!
    Regards, zfeng
    • Post Points: 20
  • Tue, Feb 26 2013 8:18 AM

    Re: problem with starting the script in skill Reply
    Does the script work if you run it from the terminal? Have you made it executable?
    • Post Points: 20
  • Tue, Feb 26 2013 8:25 AM

    Re: problem with starting the script in skill Reply
    Hello, yes, I can start and run it in terminal perfectly, it works like what i expect! I just have some trouble in skill procedure (CIW), no it's just a common script file!
    Regards, zfeng
    • Post Points: 5
  • Wed, Feb 27 2013 7:34 AM

    Re: problem with starting the script in skill Reply

    Hello,

     

        question is cleared!

     

        the right solution is: 1, make the script to be a exacutable *.sh firstly.

                                      2, cd to current directory

                                      3, csh("./*.sh") 

     

    regards,

    zfeng 

    Regards, zfeng
    • Post Points: 5
Page 1 of 1 (8 items)
Sort Posts:
Started by imagesensor123 at 26 Feb 2013 06:46 AM. Topic has 7 replies.