Re: Script export problem in FC3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am Di, den 21.12.2004 schrieb Samuel Díaz García um 23:43:

> I need to modify the PATH environment using a script. My script is:
> 
> --begin--
> #!bin/sh

#!/bin/sh

The leading slash is missing.

> export PATH=$PATH:/mydir
> --end--
> 
> If I run the export command in command line I have no problem, but when 
> I run my script, and I run
> 
> echo $PATH
> 
> I can see that the path environtment variable isn't changed.
> 
> What can be the problem?
> I'm root user when I run the script.

Why root?

>     Samuel Díaz García

Alexander


-- 
Alexander Dalloz | Enger, Germany | new address - new key: 0xB366A773
legal statement: http://www.uni-x.org/legal.html
Fedora GNU/Linux Core 2 (Tettnang) on Athlon kernel 2.6.9-1.6_FC2smp 
Serendipity 00:01:34 up 11 days, 18:42, load average: 1.38, 1.56, 1.64 

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux