Send same content to multiple files (help)

Discussion in 'Tomato Firmware' started by kthaddock, Mar 2, 2013.

  1. kthaddock

    kthaddock Network Guru Member

    I want to send same content to multiple files, how do I do that.
    Sending to one file is ok.
    Thank you
    kthaddock
     
  2. jerrm

    jerrm Network Guru Member

    One of many options:
    Code:
    for u in user1 user2 user3
    do
    echo "dirlist_enable=yes
    download_enable=yes
    write_enable=yes" >/tmp/etc/vsftpd.users/$u
    done
    
     
  3. kthaddock

    kthaddock Network Guru Member

    Thank you working perfect. Using as a fix until vsftpd is fixed.

    kthaddock
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice