Problem in running shell command in Cadence??

Problem in running shell command in Cadence??

Post by Reotaro Ha » Thu, 03 Jul 2008 00:40:00


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
 
 
 

Problem in running shell command in Cadence??

Post by pxhx » Thu, 03 Jul 2008 04:17:34

In article < XXXX@XXXXX.COM > Reotaro Hashemoto < XXXX@XXXXX.COM > writes:

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
( XXXX@XXXXX.COM )

"Now and then, an innocent man is sent to the Legislature."

 
 
 

Problem in running shell command in Cadence??

Post by Reotaro Ha » Thu, 03 Jul 2008 19:48:19

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
 
 
 

Problem in running shell command in Cadence??

Post by Joel » Thu, 03 Jul 2008 23:46:30

On Jul 2, 4:48 am, Reotaro Hashemoto < XXXX@XXXXX.COM >



Look at the SKILL IPC commands, in particular, ipcBeginProcess and
ipcReadProcess.

For example:
process = ipcBeginProcess("my_command")
my_command_stdout = ipcReadProcss(process)

You can also define handlers to process the output.
 
 
 

Problem in running shell command in Cadence??

Post by Andrew Bec » Wed, 09 Jul 2008 05:22:36

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.