Why do you think we can help you more than the last time, when you do not give us any more information?
| [reply] |
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
| [reply] |
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.
| [reply] [d/l] |