Hi, what's the typical way you would run a ShellTa...
# prefect-community
p
Hi, what's the typical way you would run a ShellTask with an argument that's used in the
command
which is a return from a prev Task? eg
Copy code
with Flow(name='t') as f:
   a = task_a()
   b = shell_task(a)
k
That should work and if you get an error you can be explicit
Copy code
b = shell_task(command=a)
p
let's say I want :
b = shell_tast(command=f"ls {<http://a.as|a.as>_posix()}")
k
The whole
f"ls {<http://a.as|a.as>_posix()}"
needs to be an output of a task
p
ahh, ok. Got it. That's the trick I was missing.