setenv.


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users setenv.
# 8  
Old 12-17-2008
all right i have another way to solve the same problem, but the solution it self need solution .. : )

it's working with exported variable.
but the the problem that appeared here is kind of weird .. here is what i did

Code:
...
     system("declare -x myvar= ... " ) ;

the weird result when runing the program is :
declare: not found.
and the same thing happen with all built in command like typeset
i tried this :
Code:
.. 
system ("./sc"); 
/* where sc is script : 
 *  #/bin/bash
 *  declare .. */

same result.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Cshell setenv: Too many arguments.

i have in c-shell set value_str ="one three" set line_seprator = "," set value_and_sperator = "$value_str$line_seprator" setenv STRING_CONCAT $STRING_CONCAT$value_and_sperator and im getting error: setenv: Too many arguments. this is... (1 Reply)
Discussion started by: umen
1 Replies

2. Solaris

setenv: cannot add the LD_LIBRARY_PATH

Hi all! I need to add new environment variable. e.g. # setenv LD_LIBRARY_PATH "/usr/ucblib:" # I check:# env LD_LIBRARY_PATH=/usr/ucblib: After rebooting I don't see this variable. Why don't save this variable? Thanks. (5 Replies)
Discussion started by: wolfgang
5 Replies

3. UNIX for Dummies Questions & Answers

whats setenv in unix

Hi whats the setenv command in unix..?? i have set the oracle_home path as aa.ii.1 in kron_settings and mentioned setenv oracle_path as aa.ii.2 in user settings. Does this make any changes made to the path name of the oracle_home when i run a scripts in unix..???:( (1 Reply)
Discussion started by: abhi_123
1 Replies

4. Shell Programming and Scripting

setenv error

I am having the following environment setup script. $cat dbenv.sh #! /bin/csh # set history=32 stty sane setenv ORACLE_HOME=/dboracle/orabase/product/10.1.0.3 set ORACLE_BASE=/dboracle/orabase set... (2 Replies)
Discussion started by: rahulrathod
2 Replies

5. UNIX for Dummies Questions & Answers

difference between EXPORT and setenv

Hi, Is there any difference between setting an environment variable by EXPORT and by setenv? (3 Replies)
Discussion started by: dexkid
3 Replies

6. Shell Programming and Scripting

setenv in script

Is it possible to set environement variable in a script (for example, perl script) so that the variable will be set after exiting the script - in a father shell. (2 Replies)
Discussion started by: kosta_mirkin
2 Replies

7. Shell Programming and Scripting

How do I set permanent setenv !!!

Hello, I just want to know ow I can set permanent pathes or whatever using setenv command. I'm using c shell . regards, me (1 Reply)
Discussion started by: geoquest
1 Replies

8. Shell Programming and Scripting

What 's setenv?

Hi Is someone know about "setenv"? where can i find out this one? Regards Myoe (2 Replies)
Discussion started by: myoeminn
2 Replies

9. UNIX for Dummies Questions & Answers

set, setenv

Well first of all I am a real Unix newbie. I am taking a course on it in University. I kind of understand set and setenv but, I think it si something that I should really understand. So I thought that I would try a forum out and see how good you guys really are. The question: Execute the... (1 Reply)
Discussion started by: w6u6f
1 Replies

10. UNIX for Dummies Questions & Answers

setenv Question

I want to add paths to a CLASSPATH variable but if I use the : setenv CLASSPATH /opt all previous entries are erased. How do I append additional entries to a system variable without overwriting the original value. Thanx (3 Replies)
Discussion started by: ianf
3 Replies
Login or Register to Ask a Question
MBK_CATA_LIB(1) 					     MBK ENVIRONMENT VARIABLES						   MBK_CATA_LIB(1)

NAME
MBK_CATA_LIB - define the mbk catalog directory SYNOPSYS
c-shell running setenv MBK_CATA_LIB path1:path2:path3:...:...:pathn ORIGIN
This software belongs to the ALLIANCE CAD SYSTEM developed by the ASIM team at LIP6 laboratory of Universite Pierre et Marie CURIE, in Paris, France. Web : http://asim.lip6.fr/recherche/alliance/ E-mail : alliance-users@asim.lip6.fr DESCRIPTION
MBK_CATA_LIB sets the directories that are to be searched thru for reading. When instanciating a cell for example, the first cell that is found with the given name is loaded in memory. The seaching mecanism first look in MBK_WORK_LIB(1), and then, in path1 thru pathn, in the order defined by the user when typing the setenv command. This directories are considered to be, from a mbk point of view, read only. The pathi arguments must be actually accessible pathes on your host machine. ERRORS
"mbk_fopen : can't open file 'unix_path/file.xx' thru directories : path1, ..., pathn" This occurs when either the unix path is irrelevent, or when the file doesn't exist. This can also be a unix right problem if the file is not accessible for reading, but this is seldom. EXAMPLE
setenv MBK_CATA_LIB ~fred/crechan/uom:/labo/sclib DIAGNOSTICS
Only the first path may be given with a '~', since the shell extents it only when seen first. SEE ALSO
mbk(3), genlib(1), MBK_WORK_LIB(1). BUG REPORT
This tool is under development at the ASIM department of the LIP6 laboratory. We need your feedback to improve documentation and tools. ASIM
/LIP6 October 1, 1997 MBK_CATA_LIB(1)