![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| awk -v in SunOS | PradeepRed | Shell Programming and Scripting | 3 | 08-14-2008 06:20 AM |
| gdb for SunOS 5.6 | shafi2all | SUN Solaris | 1 | 05-29-2008 12:39 AM |
| SunOS 5.4 | mr_balodoy | SUN Solaris | 6 | 03-30-2008 08:06 PM |
| Unix Korn Shell Array Issue (SunOS) | Janus | Shell Programming and Scripting | 5 | 11-21-2006 05:19 PM |
| Migration of binary file from Sunos 5.8 to Sunos 5.9 | Arvind Maurya | UNIX for Advanced & Expert Users | 1 | 07-12-2005 03:23 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
I'm new to SunOS and I need some help.
I'm trying to run the commands below inside the korn shell below on SunOS 5.8 but it does not do anything except echo ABC. No error gets displayed when running the shell. Code:
#!/bin/ksh echo ABC export ENV_1=/folder1/subfolder cd folder2 Any help in getting this shell to work will be greatly appreciated. Steve |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
Actually you would not see any messages for the export and cd command. If you want the changes to be permanent, then try running the script as
Code:
. youscript.ksh Code:
yourscript.ksh Code:
./yourscript.ksh Code:
#!/bin/ksh echo ABC export ENV_1=/folder1/subfolder echo $ENV_1 cd folder2 pwd |
|
#3
|
|||
|
|||
|
Vino,
It worked. Thank you very much for your help! Cheers Steve |
|||
| Google The UNIX and Linux Forums |