ProcessBuilder not executing command with wildcard [duplicate] ProcessBuilder not executing command with wildcard [duplicate] unix unix

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/*"};