![]() |
|
|
|
|
|||||||
| 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 |
| exporting number into .csv file in text form (no other extra charc) from shell script | Deepak_Rastogi | Shell Programming and Scripting | 5 | 03-13-2008 01:08 PM |
| variables in shell | viko | Shell Programming and Scripting | 2 | 03-03-2008 08:09 PM |
| difference between AIX shell scripting and Unix shell scripting. | haroonec | Shell Programming and Scripting | 2 | 04-12-2006 05:12 AM |
| scripting headache... loops & variables | StevePace | Shell Programming and Scripting | 6 | 02-06-2006 10:18 PM |
| server variables in bash scripting | basher400 | UNIX for Dummies Questions & Answers | 6 | 04-12-2005 04:44 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
exporting variables (shell scripting)
Hi, i've got an executable shell script, called mysc.sh with this line only:
export DATASIZE=0 i run it from my console (./mysc.sh), and after that in the console i run: echo $DATASIZE and nothing prints what could be the problem??? thanks!! |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
./mysc.sh runs in the new child shell.
you can run the script in the same parent shell by . mysync.sh or . ./mysync.sh then , you can retain those exported in the shell Last edited by bhargav; 05-08-2005 at 12:53 PM. |
|
#3
|
|||
|
|||
|
thanks!!!
it worked |
|||
| Google The UNIX and Linux Forums |