Vernon27
Member
Hello Group,
Can someone tell me why the following Shell Command is not working in Tasker:
find /BeyondPod/Podcasts/* -print0 | xargs -0 rm -rv
The above is the equivalent to the following DOS commands:
cd \BeyondPod\Podcasts
forfiles /S /M *.m* /C "cmd /c del @file"
The command supposed to navigate to the cd \BeyondPod\Podcasts directory and delete the contents of each file in the Podcast subdirectory. This will leave the
Podcasts subdirectories empty while not deleting the subdirectories. I am enclosing a description of the Profile along with a screen shot.
Profile: BeyondPod Podcasts Deletions (126)
Day: Sat
Time: From 11:00PM Till 11:10PM
Enter: BeyondPod Subcriptions Download Deletions (127)
<List directories in the BeyondPod/Podcasts directories>
A1: List Files [ Dir:BeyondPod/Podcasts Match:*.* Include Hidden Files:Off Use Root:Off Variable:%beyondfiles ]
<Delete files in the BeyondPod/Podcasts directories>
A2: Run Shell [ Command:find /BeyondPod/Podcasts/* -print0 | xargs -0 rm -r Timeout (Seconds):30 Use Root:Off Store Output In: Store Errors In: Store Result In: ]
Thanks for your help.
Vernon
Can someone tell me why the following Shell Command is not working in Tasker:
find /BeyondPod/Podcasts/* -print0 | xargs -0 rm -rv
The above is the equivalent to the following DOS commands:
cd \BeyondPod\Podcasts
forfiles /S /M *.m* /C "cmd /c del @file"
The command supposed to navigate to the cd \BeyondPod\Podcasts directory and delete the contents of each file in the Podcast subdirectory. This will leave the
Podcasts subdirectories empty while not deleting the subdirectories. I am enclosing a description of the Profile along with a screen shot.
Profile: BeyondPod Podcasts Deletions (126)
Day: Sat
Time: From 11:00PM Till 11:10PM
Enter: BeyondPod Subcriptions Download Deletions (127)
<List directories in the BeyondPod/Podcasts directories>
A1: List Files [ Dir:BeyondPod/Podcasts Match:*.* Include Hidden Files:Off Use Root:Off Variable:%beyondfiles ]
<Delete files in the BeyondPod/Podcasts directories>
A2: Run Shell [ Command:find /BeyondPod/Podcasts/* -print0 | xargs -0 rm -r Timeout (Seconds):30 Use Root:Off Store Output In: Store Errors In: Store Result In: ]
Thanks for your help.
Vernon