Hi... Help regarding chdir

2007-12-19 Thread Ravindra Ugaji
Hi Monks, I am trying the following code to change the directory chdir ( '/opt/application') || die ("Can't change directory: $!\n"); tried this also chdir "/opt/application" || die "Can't change directory: $!\n"; But i am unable to change the directory to " /opt/application " from present worki

Re: Hi... Help regarding chdir

2007-12-19 Thread Roberto Etcheverry
It should work unless the user you are using to run the script doesn't have the rights to chdir to that directory. Ravindra Ugaji wrote: > Hi Monks, > I am trying the following code to change the directory > > chdir ( '/opt/application') || die ("Can't change directory: $!\n"); > tried this also >

Re: Hi... Help regarding chdir

2007-12-19 Thread Tom Phoenix
On 12/18/07, Ravindra Ugaji <[EMAIL PROTECTED]> wrote: > Hi Monks, The Perl Monks are two doors down, on the left. But maybe we can help you here. > I am trying the following code to change the directory > > chdir ( '/opt/application') || die ("Can't change directory: $!\n"); > But i am unable

Re: Hi... Help regarding chdir

2007-12-19 Thread Chas. Owens
On Dec 19, 2007 2:29 AM, Ravindra Ugaji <[EMAIL PROTECTED]> wrote: > Hi Monks, > I am trying the following code to change the directory > > chdir ( '/opt/application') || die ("Can't change directory: $!\n"); > tried this also > chdir "/opt/application" || die "Can't change directory: $!\n"; snip

Re: Hi... Help regarding chdir

2007-12-19 Thread Tom Phoenix
On 12/19/07, Chas. Owens <[EMAIL PROTECTED]> wrote: > On Dec 19, 2007 2:29 AM, Ravindra Ugaji <[EMAIL PROTECTED]> wrote: > > chdir ( '/opt/application') || die ("Can't change directory: $!\n"); > > tried this also > > chdir "/opt/application" || die "Can't change directory: $!\n"; > In addition

Re: Hi... Help regarding chdir

2007-12-19 Thread Paul Lalli
On Dec 19, 2:29 am, [EMAIL PROTECTED] (Ravindra Ugaji) wrote: > I am trying the following code to change the directory > > chdir ( '/opt/application') || die ("Can't change directory: $!\n"); > tried this also > chdir "/opt/application" || die "Can't change directory: $!\n"; > > But i am unable to

Re: Hi... Help regarding chdir

2007-12-20 Thread Chas. Owens
On Dec 19, 2007 2:05 PM, Tom Phoenix <[EMAIL PROTECTED]> wrote: > On 12/19/07, Chas. Owens <[EMAIL PROTECTED]> wrote: > > > On Dec 19, 2007 2:29 AM, Ravindra Ugaji <[EMAIL PROTECTED]> wrote: > > > > chdir ( '/opt/application') || die ("Can't change directory: $!\n"); > > > tried this also > > > chd