Skip to content

Usage with xargs #53

@Gary-Armstrong

Description

@Gary-Armstrong

I'm trying to do this:

xargs -0 -P $parallel -I {} sh -c "{ date '+START {} %Y-%m-%d_%H:%M:%S' >> $logf; \
	bytes=$(diskus -v {}); \
        echo "{},$bytes" >> $csvf; \
	date '+FINISH {} %Y-%m-%d_%H:%M:%S' >> $logf; }"

But:

diskus: could not retrieve metadata for path '{}'

I'm 96% sure my xargs is correct since I'm just replacing du with diskus in the same construct. The {} comes out as expected elsewhere. Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions