Re: Runtime.exec()

Stephen Denne <[email protected]>
Newsgroups gmane.comp.windows.devel.java.advanced
Message-ID <[email protected]>
Perhaps
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4052517 
Fixed in Java 5 update 12

-----Original Message-----
From: Discussion of advanced Java topics. [mailto:[email protected]] On Behalf Of Avinash Lakshman
Sent: Thursday, 20 September 2007 1:17 p.m.
To: [email protected]
Subject: Runtime.exec()

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

Disclaimer:
At the Datamail Group we value team commitment, respect, achievement, customer focus, and courage. This email with any attachments is confidential and may be subject to legal privilege.  If it is not intended for you please advise by reply immediately, destroy it and do not copy, disclose or use it in any way.

__________________________________________________________________
  This email has been scanned by the DMZGlobal Business Quality 
              Electronic Messaging Suite.
Please see http://www.dmzglobal.com/services/bqem.htm for details.
__________________________________________________________________

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