1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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
     

Share This Page