in reply to Re: shell - pgp - convert to perl
in thread shell - pgp - convert to perl

This node falls below the community's minimum standard of quality and will not be displayed.

Replies are listed 'Best First'.
Re^3: shell - pgp - convert to perl
by Corion (Patriarch) on Sep 27, 2007 at 08:54 UTC

    Why do you think we can help you more than the last time, when you do not give us any more information?

Re^3: shell - pgp - convert to perl
by CountZero (Bishop) on Sep 27, 2007 at 10:00 UTC
    What output did you expect and did not get?

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

    A reply falls below the community's threshold of quality. You may see it by logging in.
Re^3: shell - pgp - convert to perl
by dwm042 (Priest) on Sep 27, 2007 at 18:55 UTC
    In terms of getting this fixed, you might want to work step by step through the converted commands.

    The 'sudo' command, unless your sudoers permissions are set up just so, will prompt you for a password when run. If the perl script is being run via cron in an account without the ability to sudo in passwordless fashion, the conversion will fail everytime.

    You might want to test by trying something like:

    #!/usr/bin/perl system 'sudo echo "Hello World!"';
    And if you're running as root, you can skip the 'sudo' bit altogether.

    The 'pgp' command may or may not work the way you think it should depending on the setting of the HOME enviroment variable. And so it goes.