Script export problem in FC3
Alexander Dalloz
ad+lists at uni-x.org
Tue Dec 21 23:05:42 UTC 2004
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20041222/8faf1b5b/attachment-0001.sig>
More information about the fedora-list
mailing list