Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Re: system, pipes, shell, quoting

by hardburn (Abbot)
on Nov 13, 2002 at 15:20 UTC ( [id://212606]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %allowed;
    $allowed{'ls'} = '/bin/ls';
    $allowed{'grep'} = '/bin/grep';
    $allowed{'gzip'} = '/bin/gzip';
    . . .
    
  2. or download this
    my $good_prog = $allowed{$program1};
    system($good_prog) if($good_prog != undef);
    
  3. or download this
    use File::Find;
    my %allowed;
    ...
    {
         $allowed{$_} = $File::Find::name;
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://212606]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (5)
As of 2024-04-26 09:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found