Operating System - HP-UX
1832857 Members
3342 Online
110048 Solutions
New Discussion

Re: How to execute System Scripts with java?

 
Erich Z
Occasional Advisor

How to execute System Scripts with java?

java.lang.Runtime.exec("ls -l",null,wk_dir) hangs in some directoreis.

Any help? (other forums?)

Want to get the filetime.

thx Erich
Alle Problem sind loesbar
3 REPLIES 3
harry d brown jr
Honored Contributor

Re: How to execute System Scripts with java?

Erich,

in the directories, where it hangs, what is different from those directories than any other directories??


live free or die
harry
Live Free or Die
James Beamish-White
Trusted Contributor

Re: How to execute System Scripts with java?

Have you tried using the full pathname to ls?

Otherwise yeah - Harry's suggestions

Cheers!
James
GARDENOFEDEN> create light
Erich Z
Occasional Advisor

Re: How to execute System Scripts with java?

Hello,
Directory:
\ECS\home\wesp\db\TIS-1
mostly hangs (not always) but interesting if I delete most files it works (maybe some german characters ??, ?? and - .

But under Nt&Samba&cygwin(ls -l) it works. So I think its a hpux implementationserrror.

Haven't tried ls -l pathname with simple exec. But good Ideea.

Have found lastModified() (dont know why I missed it) hope it works. Will test it totay.

Erich
Alle Problem sind loesbar