Re: Runtime.exec()

Peter Booth <[email protected]>
Newsgroups gmane.comp.windows.devel.java.advanced
Message-ID <[email protected]>
You could do this, but you'd be wrong.

There are a bunch of Java SSH libraries around that avoid having to  
deal with any of this stuff.


On Sep 19, 2007, at 9:17 PM, Avinash Lakshman wrote:

> Hi All
>
> I am noticing this weird behavior with Runtime.exec() and was  
> wondering could help me understanding this better. Basically I run  
> Runtime.getRuntime().exec("scp -r <source> <target>"). This never  
> performs the scp. However if I copy this into a .sh file and  
> execute the .sh file then scp does happen. What is going on? Is  
> there a way to execute the command directly? Does it have anything  
> to do with any permission settings?
>
> Thanks
> A
>
> _________________________________________________________________
> Capture your memories in an online journal!
> http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us
> ===================================
> This list is hosted by DevelopMentor®  http://www.develop.com
>
> View archives and manage your subscription(s) at http:// 
> discuss.develop.com
>

===================================
This list is hosted by DevelopMentor®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.