Environment variables 2007-11-06 - By Christopher Schultz
Back -- --BEGIN PGP SIGNED MESSAGE-- -- Hash: SHA1
Andrew,
Andrew Hole wrote: > I'm trying to execute a ssh command inside java code. SSH command must > know HOMEDRIVE environment variable to find know_hosts file... How can > I do that?
How are you invoking ssh? If you're doing a standard Runtime.exec, why not just use the versions of that method which take environment variables as parameters?
- -chris
-- --BEGIN PGP SIGNATURE-- -- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHMIcT9CaO5/Lv0PARAmbgAJwLJiMu33Cs8qdsBoG2afUuVFvJ0wCgmDmD tuvpCb2Wc21yYuc1w+q8GJA= =fG1R -- --END PGP SIGNATURE-- --
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ To start a new topic, e-mail: users@(protected) To unsubscribe, e-mail: users-unsubscribe@(protected) For additional commands, e-mail: users-help@(protected)
|
|