Sponsored Content
Top Forums Shell Programming and Scripting Badly Placed ()'s when trying to use csh Post 302811709 by quantumizer on Friday 24th of May 2013 03:26:35 AM
Old 05-24-2013
I made changes to .cshrc file using the following gedit ~/.cshrc

Code:
#The following command sets up the default customization for your session.
#If you need to change the default customization, you can add more
#commands to this file, but please do not remove the following line.

source /usr/lib/skel/.cshrc

#-------  you can add more commands after this line --------
# Cadence Encounter version 10.11 – Synthesis tool, and place and route tool
#source /usr/apps/cadence/SETUP.EDI10.11

# Mentor Graphics Calibre (for lithography)
source /usr/apps/mentor/calibre-2010.2_13/SETUP

#HSPICE
source /usr/apps/synopsys/HSPICE/vE-2010.12.SP2/SETUP

# Matlab
Set path = (/usr/apps/matlab/matlab-2008b/bin $path)

#OpenAccess API
setenv PATH ${PATH}:/w/class/ee209a/ee209ata/software/Si2/oa-22p084/bin/linux_rhel30_64/opt
setenv LD_LIBRARY_PATH /w/class/ee209a/ee209ata/software/Si2/oa-22p084/lib/linux_rhel30_64/opt

I need the bold items above^ to run strm2oa.sh (below).

Code:
#!/bin/csh 
set DNAME = MX_Benchmark1_clip 
set GDS =  ${DNAME}.gds 
set LibName = OA_${DNAME} 
set CellName = "TOP"
set Layermap = layerMap.map  
set View = layout 
strm2oa -DMSystem oaDMFileSys -gds ${GDS} -lib ${LibName} -cell ${CellName} -view ${View} -layerMap ${Layermap} -overwrite

So when I do the following below it does not work:

Code:
[malik@eeapps03 training]$ sh strm2oa.sh
strm2oa.sh: line 9: strm2oa: command not found

But if I set environment variables in the current active terminal then it works (see below):
Code:
[malik@eeapps03 training]$ setenv PATH ${PATH}:/w/class/ee209a/ee209ata/software/Si2/oa-22p084/bin/linux_rhel30_64/opt
[malik@eeapps03 training]$ setenv LD_LIBRARY_PATH /w/class/ee209a/ee209ata/software/Si2/oa-22p084/lib/linux_rhel30_64/opt
[malik@eeapps03 training]$ sh strm2oa.sh
*****************************************************************************
Tool:           strm2oa         02.02-p084
*****************************************************************************
ERROR: (OASTRM-10030): One or more required options is missing. Use -help to obtain a description of the required arguments.
Usage:  Translates Stream to OpenAccess

Syntax: strm2oa
  -lib library                Output library name
  -gds file                   Stream file
  [-DMAttributes attrList]    Specifies a list of DM attributes to be
                              associated with every library that this
                              application creates
  [-DMSystem sysName]         Design management system for output library
  [-libDefFile file]          Use a specific library definitions file
  [-libPath path]             Path to output library
  [-shared]                   Allow other applications to access the library
                              while this application is running
  [-techDMAttributes attrList]   Specifies a list of DM attributes to be
                              associated with every tech library that this
                              application creates
  [-techDMSystem sysName]     Design management system for tech library
  [-techLib libName]          Technology library
  [-techLibPath path]         Path to tech library
  [-techRefs libList]         List of libraries that contain master technology
                              databases
  [-cell name]                Top-level cell to translate
  [-cellMap file]             Cell map file
  [-convertPathToPathSeg]     Convert two point orthogonal or diagonal Stream
                              Path Records to oaPathSegs
  [-dataModel version]        Defines the OA data model to use for translation
                              (default: 1)
  [-dbuPerUU number]          dbuPerUU value
  [-detectVias]               Detect the via defs and create them in the
                              database. Note we need the layer map
                              information.
  [-fontMap file]             Font map file
  [-hierDepth number]         Hierarchical depth to translate to
  [-ignoreBoxes]              Ignore Stream Box Records
  [-layerMap fileList]        Quoted list of layer map files
  [-logFile file]             Name of log file
  [-noInfo msgIds]            Suppress the given INFO message IDs
  [-noWarning msgIds]         Suppress the given WARNING message IDs
  [-overwrite]                Allow existing designs to be overwritten
  [-propMap file]             Prop map file
  [-propSeparator char]       Property separator character
  [-refLibList file]          RefLibList file
  [-refLibs libList]          Specifies a list of libraries that contain
                              reference cells
  [-refViews viewList]        Specifies a list of reference view names
  [-templateFile file]        File that collects command options
  [-toLower]                  Convert cell and instance names to lower case
  [-toLowerLabel]             Convert Label names to lower case
  [-toUpper]                  Convert cell and instance names to upper case
  [-toUpperLabel]             Convert Label names to upper case
  [-viaMap fileList]          Quoted list of via map files
  [-view view]                Destination view name
  [-h | -help]                Prints this help message
  [-v]                        Prints tool, format and library version
                              information
  [-version]                  Prints tool and format version information
[malik@eeapps03 training]$

So my environment variables are not taking effect by modifying .cshrc file. I don't want to set environment variables each time I open a new terminal or close the terminal.

Any suggestions?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

New to it all, But i wanna script really badly!!!

Ok, im brand new to this whole thing, well nearly, but all i wanna know and do is scripting, WHAT DO I DO?!:confused: (3 Replies)
Discussion started by: TheNewGuy
3 Replies

2. Shell Programming and Scripting

Badly placed ()'s. - error

Hi, when I execute the below script, I am getting following error "Badly placed ()'s". can anyone please help me fix ---------------------------------------------------------- # Usage: ani -n -a -s -w -d # # # help_ani() To print help # help_ani() { echo "Usage: $0 -n -a -s -w -d"... (3 Replies)
Discussion started by: amitrajvarma
3 Replies

3. Shell Programming and Scripting

for:badly formed number

Hi, I am doing the following but it complains and says "for:badly formed number" does anyone know why? #!/bin/tcsh foreach(....) ............ set depth=64 set width=23 if ($depth==64) then echo "if" set addr_bits=5 else echo "else" endif echo "addr_bits:$addr_bits" echo... (3 Replies)
Discussion started by: ROOZ
3 Replies

4. Shell Programming and Scripting

csh failing to call an 2 embedded csh script

I have an extraordinary problem with a csh script.....(feel free to berate the use of this but I'm modifying an existing bunch of them) Anyway, I have a master csh script which in turn calls a second csh script. This second csh script is below. Within this second script are two compiled C++... (1 Reply)
Discussion started by: pollsizer
1 Replies

5. Shell Programming and Scripting

sed help needed badly

how can I delete one line above and below the matching pattern ? e.g I want to delete the line above and below the line with %CLI- in example below : $CHECKSUM $1$DGA1043:TSTST01.DBF;1 %CLI-E-OPENIN, error opening $1$DGA1043:TSTST01.DBF -RMS-E-FLK, file currently locked by another user ... (6 Replies)
Discussion started by: aliyesami
6 Replies

6. UNIX for Dummies Questions & Answers

Need Help Badly: Newbie Here

I have this file: NPANXX|BILLDATE|DIVCODE|COMID|RAO|LIKECODE|BOSS|SORD|STATECODE| 087001|BP01|H|SWBT| |041|IMR6|IMSR6|AR| 087002|BP03|H|SWBT| |042|IMR6|IMSR6|AR| 087003|BP05|H|SWBT| |043|IMR6|IMSR6|AR| .... these are the things that i HAve to do: Insert a new column named “TEST” All... (14 Replies)
Discussion started by: arkhei
14 Replies

7. Shell Programming and Scripting

badly placed ()'s

i'm trying to run the following program but i keep getting the message "badly placed ()'s" can u help? #include "modularity_mat.h" #include "../sparse_mlpl/sparse_matrix.h" adj_matrix_arr* allocate_mem_for_matrix_arr (int y) { /* Create the adj matrix and allocate memory */ ... (2 Replies)
Discussion started by: ronirosner
2 Replies

8. Shell Programming and Scripting

Another case of Badly placed parens.

The shell error message "Badly placed ()'s" can occur for a surprisingly simple oversight. If the script begins with a shell-invocation comment, but is missing the exclamation-point, it is simply a comment and not an invocation. If you attempt to execute it from a shell other than the shell you... (4 Replies)
Discussion started by: Dickster
4 Replies

9. Programming

Badly places ()'s on C

I dont know why this Linux would give me badly placed () error all the time for this; #include <stdio.h> int main() { register int num=0 ; while ((num < 5)) ++num; printf("Pass %d \n", num) ; return 0 ; } can anyone help me please? (11 Replies)
Discussion started by: sizzler786
11 Replies

10. Shell Programming and Scripting

Badly placed ()'s

Edit - I don't know how to delete posts. The question I asked here ended up not being the question I should have asked as I didn't realise I needed to edit my script to comply with SGE. Hi, My script is: #!/bin/bash # Perform fastqc on files in a specified directory. for ((j=1;... (8 Replies)
Discussion started by: una1992
8 Replies
All times are GMT -4. The time now is 06:56 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy