Re: sourcing a perl script on cygwin

2008-06-27 Thread Brian Dessent
Florin Barbalau wrote: > I understand that I can call a shell script from a perl script by > using the command: > > exec("shell_script_name"); > > but when proceeding this way I don't have the environment variables > that were set in the perl script. Is there anther way to call the > shell scri

Re: sourcing a perl script on cygwin

2008-06-27 Thread Florin Barbalau
I understand that I can call a shell script from a perl script by using the command: exec("shell_script_name"); but when proceeding this way I don't have the environment variables that were set in the perl script. Is there anther way to call the shell script so that the shell child receives them

Re: sourcing a perl script on cygwin

2008-06-27 Thread Brian Dessent
Florin Barbalau wrote: > thanks for the explication. so I should understand that I can never > run a perl script like this in order to set environment variables for > the calling one ? > > I am very surprised about this problem because this is in the > installation of an Oracle patch. I don't se

Re: sourcing a perl script on cygwin

2008-06-27 Thread Florin Barbalau
Hello Brian, thanks for the explication. so I should understand that I can never run a perl script like this in order to set environment variables for the calling one ? I am very surprised about this problem because this is in the installation of an Oracle patch. many thanks, Florin On 6/27/08,

Re: sourcing a perl script on cygwin

2008-06-27 Thread Brian Dessent
Florin Barbalau wrote: > then If i run: > $ /cygdrive/d/cdb_10_2/content/bin/system/ifssetenv.pl > it works ok. > > but if I try to source as in the calling script (install_cdaa.sh) I > get error messages. : > $ . /cygdrive/d/cdb_10_2/content/bin/system/ifssetenv.pl > bash: use: command not foun

sourcing a perl script on cygwin

2008-06-27 Thread Florin Barbalau
Hello, I have a windows server 2003 installation and I try to sun a script for an Oracle patch installation. I installed cygwin. The files in question are two and they have more or less the following content: install_cdaa.sh #!/bin/sh # Check if ORACLE_HOME has been set