Shell script problem

- Code: Select all
#!/bin/bash
username=`/usr/bin/ls -ld $1 | /usr/bin/awk '{print $3}'`
exiftool -creator=$username $1
exit $?
I am trying to take the current owner of a PDF and make them the creator so I can extract it later.
Keep getting the following:
- Code: Select all
'Exception caught while executing shell script: Couldn't posix_spawn: error 8'
Bash newbie so if there is a better way to do this please let me know. Any help would be appreciated.