Runs command and return output @deprecated Consider using Shell.Pool.SH.run() instead @param command The command to run @return Output of the command, or null in case of an error
(@NonNull String command)
| 333 | * @return Output of the command, or null in case of an error |
| 334 | */ |
| 335 | @Nullable |
| 336 | @Deprecated |
| 337 | @WorkerThread |
| 338 | public static List<String> run(@NonNull String command) { |
| 339 | return Shell.run("sh", new String[]{ |
| 340 | command |
| 341 | }, null, false); |
| 342 | } |
| 343 | |
| 344 | /** |
| 345 | * Runs commands and return output |