[EMAIL PROTECTED] wrote: > Hi, > > I ran the below commands on my RH 8 system and got a command not found > error. The below is supposed to e-mail me a mail message containing > all world-writable files on my system > > Can anyone give me suggestions or advice as to what I did wrong? > > Thanks. > > [EMAIL PROTECTED] etc]# find / ! -fstype proc -perm ! -type l -ls 2>&1 | \ > Mail -s 1world writable` [EMAIL PROTECTED] >> > [EMAIL PROTECTED] etc]# find / ! -fstype proc -perm -2 ! -type l -ls 2>&1 | \ > Mail -s 'world writable' [EMAIL PROTECTED] > -bash: Mail: command not found > [EMAIL PROTECTED] etc]# find / ! -fstype proc -perm -2 ! -type l -ls 2>&1 | \ > Mail -s `world writable` [EMAIL PROTECTED] > -bash: world: command not found > -bash: Mail: command not found > [EMAIL PROTECTED] etc]# find / ! -fstype proc -perm -2 ! -type l -ls \ |& > mail -s `world writable` [EMAIL PROTECTED] > -bash: syntax error near unexpected token `&' > [EMAIL PROTECTED] etc]# find / ! -fstype proc -perm -2 ! -type l -ls \ |& > mail -s 'world writable' [EMAIL PROTECTED] > -bash: syntax error near unexpected token `&'
Please read the man pages on bash (man bash). In particular, the section labled QUOTING. The answer to your question is there. BTW: based on my understanding of your goal - the use of the & is not needed in any of the above find | mail examples. Consider reading about the use of the & while reading the bash man pages. Steve Cowles -- Psyche-list mailing list [EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/psyche-list