Home > Community > Forums > PCB SKILL > store shell command result to variable

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

 store shell command result to variable 

Last post Thu, Jun 14 2012 1:49 AM by pcbnagaraj. 0 replies.
Started by pcbnagaraj 14 Jun 2012 01:49 AM. Topic has 0 replies and 1620 views
Page 1 of 1 (1 items)
Sort Posts:
  • Thu, Jun 14 2012 1:49 AM

    • pcbnagaraj
    • Top 150 Contributor
    • Joined on Mon, Dec 5 2011
    • bangalore, Karnataka
    • Posts 55
    • Points 1,130
    store shell command result to variable Reply
    Dear All,

    Is there a way to store the dbstat result to a variable.

    I can store the value to a file and readin  say  dbstat -v assy4_assembly.brd >ver.txt

    But I am thinking something as below if possible

    Shell_cmd  = strcat("dbstat -v " axlCurrentDesign() ".brd")

    Ver = shell(Shell_cmd )

    Thanks,

    Nagaraj.

     
    • Post Points: 5
Page 1 of 1 (1 items)
Sort Posts:
Started by pcbnagaraj at 14 Jun 2012 01:49 AM. Topic has 0 replies.