Buzzpud
02-08-2006, 03:58 PM
Hi All
I have wrote a script which copies files with the dem extension to an ftp site for peeps to download. The only problem is the files can be very large and I dont know how to zip the files individually in a script so that are moved individually zipped up.
The script below moves them individually up to my ftp site:
#!/bin/sh
cd cs16_13/cstrike/
mv *.dem /home/andy/csdemstore/
cd /home/andy/
ncftpput -u user@ftpsite -p ******** directory.ftpsite /Counter-Strike csdemstore/*.dem
The script moves up to four files at a time but they can be about 80 to 100 meg in size each.
Does anyone know a script that compresses each one individually but keeps them seperate so you have four zipped dem files.
Any help appreciated????
Buzzpud
I have wrote a script which copies files with the dem extension to an ftp site for peeps to download. The only problem is the files can be very large and I dont know how to zip the files individually in a script so that are moved individually zipped up.
The script below moves them individually up to my ftp site:
#!/bin/sh
cd cs16_13/cstrike/
mv *.dem /home/andy/csdemstore/
cd /home/andy/
ncftpput -u user@ftpsite -p ******** directory.ftpsite /Counter-Strike csdemstore/*.dem
The script moves up to four files at a time but they can be about 80 to 100 meg in size each.
Does anyone know a script that compresses each one individually but keeps them seperate so you have four zipped dem files.
Any help appreciated????
Buzzpud