On Wed, 2003-12-10 at 01:09, Pablo Cusnir wrote: > Hi, > > Is there a way using Perl to add to the environment variable PATH a new path, and > that addition will be valid after the script is ran and not only for the script's > scope. > I'm working in cshell in Solaris 5.8 > The regular way to do it in the shell is: > > > setenv PATH my_add_path:$PATH > > I tried using: > > system("setenv ....."); > > and also: > > system ("csh setenv .....");
You'd need to add it to the CSH equivalent of the .bashrc found in users directory, or /etc/bashrc for it to persist. -Dan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>