While executing the below script, I'm getting an error:
Syntax error at line 1 : `(' is not expected.
sudo su - user1 -c "cd $HOME ; tar -cvf $HOME/mine.tar `cat /tmp/$LOGNAME/List` "
where List file contains the name of some other files.
Please help me out with some solution.