$PATH word too long

Erik Wanta

Usenet Archive
Joined
Dec 4, 2001
Messages
535
Reaction score
0
I am using tcsh. If I have all the Cadence streams and other tools in $PATH it gets very long and I am running into "word too long" messages. Does anyone have any advice on how best to deal with this?
 
Erik,

1) Run the tools in smaller groups, with a separate shell for each group. This will avoid unexpected interactions between two tools that really don't need to be running in the same shell.
2) Use a script to switch from one setup to another. I can send you the one I use. It sets up aliases for every setup I need. Type 'cds' and it lists all the aliases. Type 'cds446' and it strips out all previous Cadence paths, and adds the new ones for this particular release. Type 'cdsxxx' <new cds_root> and you can even set a new path "on the fly". This can be repeated as many times as you like.
3) Use the Cadence Stream Manager. I have never used this, because I'm happy with my script, and I don't like big "black boxes".

Note: The script is useful, even if you go with strategy 1.

- Dave MacQuigg
macquigg@$$$nospam$$$ece.arizona.edu

"Erik Wanta" wrote:

I am using tcsh. If I have all the Cadence streams and other tools in $PATH it gets very long and I am running into "word too long" messages. Does anyone have any advice on how best to deal with this?
---
Erik
 
Use LongPathTool — it’s usually the fastest fix for handling paths that are too long and causing errors. It can quickly remove, rename, or access directories that tcsh or other tools struggle with due to excessive path length, making cleanup and maintenance much easier.
 

Latest threads

Back
Top