Hi,

Yes, the command works fine. It was already used in an earlier script to
export the data and the script was invoked via command prompt through
putty. I have found both the .dmp file and the log file properly updated
in their respective locations.

Regards,
P.V.R.Kartik

-----Original Message-----
From: Atsuhiko Yamanaka [mailto:[email protected]] 
Sent: Wednesday, November 17, 2010 7:34 AM
To: Kartik Pullabhotla v r (WT01 - GMT-Telecom Equipment)
Cc: [email protected]
Subject: Re: [JSch-users] Oracle exp command with jsch

Hi,

   +-From: <[email protected]> ---
   |_Date: Tue, 16 Nov 2010 11:11:25 +0530 __
   |
   |The script contains a call to the oracle 'exp' command with a file
   |argument and log argument. The line is shown here :
   |
   |exp $dbusr/$db...@$oracle_service file=expdb_`date +%d-%m-%G`.dmp
   |log=explog_`date +%d-%m-%G`.log statistics=none.
   |
   |The control is getting struck here. The channel.isClosed() always
return
   |false.  For all the other commands, even the sqlplus commands and
other
   |functions it is working fine.

Have confirmed that command has been executed successfully?

I mean that  ...
echo 'foo' > /tmp/foo ; exp $dbusr/$db...@$oracle_service
file=expdb_`date +%d-%m-%G`.dmp log=explog_`date +%d-%m-%G`.log
statistics=none. ; echo 'bar' > /tmp/bar ; echo 'goo'

Will you have files /tmp/foo and /tmp/bar and get a string 'goo' from
its outputstream?


Sincerely,
--
Atsuhiko Yamanaka
JCraft,Inc.
1-14-20 HONCHO AOBA-KU,
SENDAI, MIYAGI 980-0014 Japan.
Tel +81-22-723-2150
    +1-415-578-3454
Skype callto://jcraft/
Twitter: http://twitter.com/ymnk

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to