fmogavero has asked for the wisdom of the Perl Monks concerning the following question:
I have been charged with rewriting a batch file. I discerned that this batch file would serve better as a perl script. I have been trying to get around system("program to call") on Win32.
Can anyone enlighten me on converting these two lines to something more "perl controllable"? In other words, I need to be able to monitor the processes so that if errors occur, I can log them, e-mail them, try again...etc
system("pgp.exe $DECRYPT_WORK_PATH$ENCRYPTED_FILENAME -o $DECRYPT_WORK_PATH$PLAINTEXT_FILENAME"); and
system("somescript.pl $DECRYPT_WORK_PATH$PLAINTEXT_FILENAME")
I have tried using WIN32::Process::Create with no luck. I don't want to use WIN32::Console because there is already enough garbage on the screen.
Thanks in advance,
fmogavero
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: running perl scripts from other perl scripts.
by arturo (Vicar) on Sep 14, 2001 at 00:34 UTC | |
by tye (Sage) on Sep 14, 2001 at 00:58 UTC | |
|
Re: running perl scripts from other perl scripts.
by derby (Abbot) on Sep 14, 2001 at 02:01 UTC |