Re: escaping v$session

2001-06-25 Thread Michael Fowler
On Mon, Jun 25, 2001 at 02:24:21PM -0400, Chas Owens wrote: > Let me see if I have this straight: > > Perl was ignoring $session because of the \ and then passing the output > to the shell (stripping the \). Yes. > The shell saw $session so it tried to replace it with the enviromental > varia

Re: escaping v$session

2001-06-25 Thread Chas Owens
On 25 Jun 2001 10:14:57 -0800, Michael Fowler wrote: > On Mon, Jun 25, 2001 at 02:09:59PM -0400, Chas Owens wrote: > > @active = qx( > > sqlplus -S $RTDUSER/$RTDPASS\@$RTD_ORACLE_SID <<-! > > select count(distinct(process)) ACTIVE from v\\\$session > > where last_call_et < 60 and > > process in (s

Re: escaping v$session

2001-06-25 Thread Michael Fowler
On Mon, Jun 25, 2001 at 02:09:59PM -0400, Chas Owens wrote: > @active = qx( > sqlplus -S $RTDUSER/$RTDPASS\@$RTD_ORACLE_SID <<-! > select count(distinct(process)) ACTIVE from v\\\$session > where last_call_et < 60 and > process in (select ltrim(rtrim(to_char(process_id) )) from > session_list); >

Re: escaping v$session

2001-06-25 Thread Chas Owens
On 25 Jun 2001 09:47:08 -0800, Michael Fowler wrote: > On Mon, Jun 25, 2001 at 01:09:51PM -0400, Chas Owens wrote: > > On 25 Jun 2001 12:57:39 -0400, Yacketta, Ronald wrote: > > > > select count(distinct(process)) ACTIVE from " . 'v$session' . " > > > > > select count(distinct(process)) ACTIVE fr

Re: escaping v$session

2001-06-25 Thread Michael Fowler
On Mon, Jun 25, 2001 at 01:09:51PM -0400, Chas Owens wrote: > On 25 Jun 2001 12:57:39 -0400, Yacketta, Ronald wrote: > > > select count(distinct(process)) ACTIVE from " . 'v$session' . " > > > select count(distinct(process)) ACTIVE from " . 'v\$session' . " > > What version of Perl are you using

RE: escaping v$session

2001-06-25 Thread Chas Owens
On 25 Jun 2001 12:57:39 -0400, Yacketta, Ronald wrote: > This one was really close :) > I had to change > > select count(distinct(process)) ACTIVE from " . 'v$session' . " > > to > > select count(distinct(process)) ACTIVE from " . 'v\$session' . " > > and it worked! > > Thanxs everyone! > > Ro

RE: escaping v$session

2001-06-25 Thread Yacketta, Ronald
This one was really close :) I had to change > select count(distinct(process)) ACTIVE from " . 'v$session' . " to > select count(distinct(process)) ACTIVE from " . 'v\$session' . " and it worked! Thanxs everyone! Ron

RE: escaping v$session

2001-06-25 Thread Stephen Neu
:@active = qx( :sqlplus -S $RTDUSER/$RTDPASS\@$RTD_ORACLE_SID <<-! :select count(distinct(process)) ACTIVE from ---> v$session <--- :where last_call_et < 60 and :process in (select ltrim(rtrim(to_char(process_id) )) from :session_list); :quit :! :); Oh... Didn't see the other variables you were

RE: escaping v$session

2001-06-25 Thread Chas Owens
On 25 Jun 2001 12:15:15 -0400, Yacketta, Ronald wrote: > this is what I am trying todo > > @active = qx( > sqlplus -S $RTDUSER/$RTDPASS\@$RTD_ORACLE_SID <<-! > select count(distinct(process)) ACTIVE from ---> v$session <--- > where last_call_et < 60 and > process in (select ltrim(rtrim(to_char(p

RE: escaping v$session

2001-06-25 Thread Stephen Neu
:@active = qx( :sqlplus -S $RTDUSER/$RTDPASS\@$RTD_ORACLE_SID <<-! :select count(distinct(process)) ACTIVE from ---> v$session <--- :where last_call_et < 60 and :process in (select ltrim(rtrim(to_char(process_id) )) from :session_list); :quit :! :); Ok, so you're using qx(foo), which is the same

RE: escaping v$session

2001-06-25 Thread Yacketta, Ronald
> -Original Message- > From: Stephen Neu [mailto:[EMAIL PROTECTED]] > Sent: Monday, June 25, 2001 12:04 PM > To: Perl Beginners (E-mail) > Subject: RE: escaping v$session > > > Try 'v$session' instead of "v$session" > The single quot

RE: escaping v$session

2001-06-25 Thread Stephen Neu
Try 'v$session' instead of "v$session" The single quote doesn't interpolate variables like the double-quote. >From perldoc perlop Customary Interpolates '' no "" yes `` yes qw{}no // yes :-Original Message- :Fro