Closed Cannonb4ll closed 4 years ago
What is the actual difference between using run() or task()? The documentation say's task() wil run the commands after each other, but run() does the same.
run()
task()
If you define several commands inside run() like:
$commands = [ 'ls', 'df -h' ];
The actual linux command is: ls && df -h
ls && df -h
But what does task do different?
What is the actual difference between using
run()
ortask()
? The documentation say'stask()
wil run the commands after each other, butrun()
does the same.If you define several commands inside
run()
like:The actual linux command is:
ls && df -h
But what does task do different?