Hello P.V.R.Kartik,

please put the commands into a script file, try it via cmd-line in putty 
(just to be sure)
and then try to run that script through jsch.
That way we can see, if (and where) the command might hang when run 
through jsch.

Thanx,

Heiner

P.S.: E.g. put that into /tmp/testscript.sh:

-------------- cut here ----------------
#!/bin/sh
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';
--------------- cut here ---------------
And run
chmod +x /tmp/testscript.sh
...

Am 17.11.2010 08:10, schrieb [email protected]:
> Hi,
>
> Yes, When I run the below command from putty I could see the files 'foo'
> and 'bar' in tmp folder. Similarly I could find the word 'goo' on the
> console.
>
> Please advise.
>
> Regards,
> P.V.R.Kartik
>
> -----Original Message-----
> From: Atsuhiko Yamanaka [mailto:[email protected]]
> Sent: Wednesday, November 17, 2010 12:22 PM
> 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: Wed, 17 Nov 2010 09:49:01 +0530 __
>     |
>     |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.
>
> Do you mean you have '/tmp/bar' and get 'goo' from its output-stream?
>
> 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
>


------------------------------------------------------------------------------
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