Hello Robert, On Mon, 25 Nov 2002 11:19:44 -0600 "Robert Wideman" <rwideman@austin.rr.com> wrote: > Getting errors with my script when I am running it. My system works > fine except for these echo commands: > echo 1 > /proc/sys/net/ipv4/conf/*/log_martians > The error that I get when I run the script is "No such file or > directory." I can do the individual files without the "*" in there but > when I use the asterisk (*) I get an error "Ambiguous redirect" when run > from the command line. > Any thoughts? you can try this. for f in /proc/sys/net/ipv4/conf/*/log_martians; do if [ -e $f ] ; then echo "1" > $f echo -n -e "..""enabled." else echo -e "support not found!" fi done Pavlos -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ I love having the feeling of being in control while i have the sensation of speed The surfer of life ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~