#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2011
    Posts
    2
    Rep Power
    0

    Password protect a zip file in unix and mail it using unix script.


    I need to password protect a zip file in unix and mail it using unix script.

    i have tried using zip -P but it gave me the eroor that encryption was not supported.

    The requirement is to provide the password in command line so that the script can zip the file using the password and send it on a particular mail on daily basis.

    Please help in this regard.
  2. #2
  3. Did you steal it?
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    14,071
    Rep Power
    9398
    The zip you have doesn't support encryption, apparently. Find a version that does, or compile your own.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2011
    Posts
    2
    Rep Power
    0
    i am a newbie.. so can you let me know how can i compile on my own or the other way
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Mar 2006
    Posts
    2,448
    Rep Power
    1751
    Let's start with the basics - what version of unix are you using?
    The moon on the one hand, the dawn on the other:
    The moon is my sister, the dawn is my brother.
    The moon on my left and the dawn on my right.
    My brother, good morning: my sister, good night.
    -- Hilaire Belloc

IMN logo majestic logo threadwatch logo seochat tools logo