Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: How do I Gzip a file in perl script

by malloc (Pilgrim)
on May 30, 2001 at 01:20 UTC ( [id://84100]=note: print w/replies, xml ) Need Help??


in reply to How do I Gzip a file in perl script

Just wanted to make absolutely sure that the submitt0r of this question is aware of the wonderful world of backticks.
`gzip -9 $filename`;
will do this for you. -malloc

Replies are listed 'Best First'.
Re: Re: How do I Gzip a file in perl script
by Hero Zzyzzx (Curate) on May 30, 2001 at 02:08 UTC

    Nanny comment:
    Just make sure to untaint your data, of course, if you're going to pass user supplied data to the shell. Otherwise you'll be giving hax0rz an in to your server . . .

    Practice safer coding:

    #!/usr/bin/perl -wT use strict;

    See CGI Security and the null byte problem for more info.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (6)
As of 2024-03-28 16:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found