ProcessBuilder not executing command with wildcard [duplicate]
Use a command shell to interpret the wildcard
String[] command1 = {"bash", "-c", "/archive/scripts/grep.pl /apps/ws/logs/*"};
Use a command shell to interpret the wildcard
String[] command1 = {"bash", "-c", "/archive/scripts/grep.pl /apps/ws/logs/*"};