Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

eval [exc] does not work

Status
Not open for further replies.

tcluser16

Technical User
May 23, 2013
5
US
Hi,

I am trying to executing perl script from tcl.Here are three commands.The varaibles are in the tcl script itself.mY first command works but not other 2.Do I need to do something else.

eval [exec bsub -Ip -R "type=SPARC" -cwd /usr2/STATUS '/usr2/j/local/bin/perl5.6.1 /usr2/j/CAM_STATUS/auto_submit $c $T $E $review $Error $Reset $Analysis_Error $DFTDSM_Analysis_Error $LP_Analysis_Error']




eval [exec bsub -Ip -R "type=SPARC" -cwd /usr2/STATUS '/usr2/j/local/bin/perl5.6.1 /usr2/j/CAM_STATUS/auto_pldrc_submit $c $T $W $Lint_Review_warning $Lint_Must_warning $Lint_Reset_warning $DFT_Analysis_warning $DFTDSM_Analysis_warning $LP_Analysis_warning']

eval [exec bsub -Ip -R "type=SPARC" -cwd /usr2/SsATUS '/usr2/j/local/bin/perl5.6.1 /usr2/j/CAM_STATUS/auto_pldrc_submit $chip $TOP $runtime $run_time_lint_Review $run_time_lint_must $run_time_Lint_Reset $run_time_DFT_Analysis $run_time_DFTDSM_Analysis $run_time_LP_Analysis']

 
Are you expecting any connection from one command to the next? That is, if you're thinking the Perl execution will update variables to be used in the next Perl execution, you'll be disappointed.

_________________
Bob Rashkin
 
Hi,
These 3 command are independent of each other
 
Hi,

As a experiment ,I tried puts command after first eval command,It does not print that,so prompt does not come back after first eval.Any suggestions?

eval [exec bsub -Ip -R "type=SPARC" -cwd /usr2/STATUS '/usr2/j/local/bin/perl5.6.1 /usr2/j/CAM_STATUS/auto_submit $c $T $E $review $Error $Reset $Analysis_Error $DFTDSM_Analysis_Error $LP_Analysis_Error']

puts "Error added
 
Why are you using "eval"? That is, go ahead and try just "exec"ing the commands.

_________________
Bob Rashkin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top