![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Difference between SET and SETENV | 435 Gavea | UNIX for Dummies Questions & Answers | 2 | 11-10-2003 09:07 PM |
| How do I set permanent setenv !!! | geoquest | Shell Programming and Scripting | 1 | 09-07-2002 09:53 AM |
| What 's setenv? | myoeminn | Shell Programming and Scripting | 2 | 03-05-2002 09:24 PM |
| set, setenv | w6u6f | UNIX for Dummies Questions & Answers | 1 | 01-31-2002 04:58 PM |
| setenv Question | ianf | UNIX for Dummies Questions & Answers | 3 | 12-19-2001 05:38 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
setenv.
helllo every body ..
hope you are having good time programming in unix . here is a little problem faced me : Code:
setenv("myvar","bla bla",1);
system("myvar=$(grep....));
printf("%s\n", getenv("myvar"));
bla bla .. how can i get the value of grep into my program ? what i figurd out that is after Code:
system("myvar=hello");
but: Code:
system("myvar=hello; echo $myvar");
|
| Bookmarks |
| Tags |
| shell script, shell scripting, unix scripting, unix scripting basics |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|