On Thu, Jun 6, 2013 at 9:22 AM, Pol Hallen <[email protected]> wrote: > Hi all :-) > > this is the part of my script: > > [email protected];[email protected];name=user0;username=user1;domainname=domain0;echo > | mutt -s "test message $name" -b email0 email1 > > if I run this script of own user, runs correctly > > but when (inside the script) I use: > > su user -c > [email protected];[email protected];name=user0;username=user1;domainname=domain0;echo > | mutt -s "test message $name" -b email0 email1
You need to quote the command. su reads just 1 argument after -c and invokes the sh -c <command>. Example: guido@solid:~$ su someoneelse -c touch asd Password: touch: missing file operand Try `touch --help' for more information. guido@solid:~$ su someoneelse -c "touch asd" Password: touch: cannot touch `asd': Permission denied Guido > > its does not run > > any idea? > > is it a problem with ' " charset? > > thanks! > > Pol > > > -- > To UNSUBSCRIBE, email to [email protected] > with a subject of "unsubscribe". Trouble? Contact [email protected] > Archive: http://lists.debian.org/[email protected] > -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected] Archive: http://lists.debian.org/ca++dqumsagvce68redxqpwbmmyarbbgam1z+zmnu_jv+t2n...@mail.gmail.com

