Forums Register Login

Trouble with runtime again..help!

+Pie Number of slices to send: Send
Hello
After many problems, I decided to use the Runtime class for writing a command
(scp) through the console, problem is, that it returns an error:
ssh_askpass: exec(/usr/lib/misc/ssh-askpass): No such file or directory
Permission denied, please try again.

( because it tries to get the password and I don't get the chance to give it, I think.)
this is the code sample:

the error jumps already in the first runtime.exec.
Is there a way to write the command line+the password in one command line ??
and if not, how do I fix this code???
Thank you, I've been fighting this for to long, please help.
[ March 15, 2005: Message edited by: Dave Jones ]
+Pie Number of slices to send: Send
Hi!

Can't you run java with sufficient rights? Make a shell script to run JVM, and assign sufficient rights for script.

It is not a good habit to write password to command argument's, because then you can see it with tool like top.

- Artsi
+Pie Number of slices to send: Send
No, the script option doesn't work either....
But I think I solved it if anyone wants the answer I'll recheck it and if it works I'll post the solution
+Pie Number of slices to send: Send
So what was the problem?
Where all the women are strong, all the men are good looking and all the tiny ads are above average:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1052 times.
Similar Threads
Executing a *.bat file
executing system command remotely
Runtime getRuntime() exec(String command) - How does this work?
command execution
I want to login ( using Telnet ) to a Unix server
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 17:09:10.