I need to ZIP and then send some files using FTP. The problem is that PERL executes everything and won't wait for the compression to try to send the ZIP and the script fails.
The script in pseudocode is something like this:
system("/path/to/zip/gzip myfile.txt")
system("/path/to/ftp/ftp put myfile.txt")