I wanto to execute Runtime.getRuntime().exec(); on Java to list files on some directory.
So I wanto to pass this command "ls /mnt/drbd7/i* | tail -1", but because the star the command returns null. And I realy need this star. I need to select the last file modified on the directory. I tryed to use java.io.File but it cannot get the last file.
Does anybody have a hint? Thanks in advance! Felipe