#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2003
    Posts
    1
    Rep Power
    0

    PGP Command Line Encryption


    I am trying to encypt text files using PGP Command Line via a Python script. I am able to start the process using 'popen()' but the process hangs because PGP requires a "Y Enter" command to continue. Is there anyway to perform this action within my Python script? Any help is appreciated. Thanks....
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2001
    Location
    Houston, TX
    Posts
    383
    Rep Power
    14
    You probably want popen2 which allows you to hook up stdin, stdout, and stderr to any input/output source you want.
    Debian - because life's too short for worrying.
    Best. (Python.) IRC bot. ever.

IMN logo majestic logo threadwatch logo seochat tools logo