mikey has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl use warnings; use strict; print "What do you want me to do?\n"; my $work = <STDIN>; chomp $work; if ($work eq "permissions") { print `sh /root/scripts/security.sh&`; print "job sent into background\n"; } elsif ($work eq "apachelog") { print `perl /root/scripts/apachelog.pl&`; print "job sent into background.\n"; } exit
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Executing a program or series of programs in perl.
by graff (Chancellor) on May 09, 2003 at 04:11 UTC | |
by Anonymous Monk on May 09, 2003 at 04:22 UTC | |
by meredith (Friar) on May 09, 2003 at 12:33 UTC | |
|
Re: Executing a program or series of programs in perl.
by djantzen (Priest) on May 09, 2003 at 03:42 UTC | |
by mikey (Acolyte) on May 09, 2003 at 03:52 UTC | |
by djantzen (Priest) on May 09, 2003 at 03:59 UTC | |
by mikey (Acolyte) on May 09, 2003 at 04:04 UTC | |
by mikey (Acolyte) on May 09, 2003 at 04:01 UTC |