December 9th, 2000, 05:04 PM
i want a small cgi program , that compress all files under Folder1 to total.zip and send it to Folder2 .
who can do it ?
[This message has been edited by sam20 (edited December 09, 2000).]
December 10th, 2000, 12:13 AM
I can write a Perl script to do this? Is it a Linux server?
December 10th, 2000, 08:43 AM
but i want to run the script from my Browser ( IE ) .
when i want to login to Telnet , i got this messeage first
Red Hat Linux release 6.1 (Cartman)
Kernel 2.2.12-20 on an i686
i'm watting ,
[This message has been edited by sam20 (edited December 10, 2000).]
December 10th, 2000, 10:04 PM
Is this some kind of joke?? Of course you got that message, you need to login first, then you will be able to run the script. Besides, that script is awfully easy to write. Maybe you should try it out for yourself...
December 11th, 2000, 07:10 AM
i have login name and password , but he ask about OS
i'm not a perl programmer , if you know lunix commands please help me :|
OS = Oprating System
[This message has been edited by sam20 (edited December 11, 2000).]
December 11th, 2000, 11:03 AM
I know what OS is. Well, you have two ways of doing this:
1) Via the tar/gzip combination.
2) Other via zip if you have it.
You can see if you have the zip program in many ways, the easiest being typing zip once you log into the system. Then tell us here, and I'll write yo uthat Perl script.
As for Linux commands, there is a directory called dc in the /usr direcotry. There are, so-called, HOWTO documents (often called simply HOWTOs) that should help you on your way. The one you should pay most attention to is Windows-DOS-Linux HOWTO or something like that...
December 11th, 2000, 07:00 PM
thank you very much
i'm not fimiler with telnet commands , you can make the program for any type (zip or tar ) , i will find a solution for unzip compressd file
please i want to run the file from my browser , for example ( http://www.cnn.com/your_script.cgi )
thank you again
December 12th, 2000, 12:56 AM
There are no telnet commands (well, no commands that should bother you). They are all shell commands. Just type "zip" into the shell, without quotes and see what is the output.
Anyway, I can make a CGI script for you, but you will need to tell me the exact configuration of your Apache server...
December 12th, 2000, 04:35 PM
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre>
Copyright (C) 1990-1996 Mark Adler, Richard B. Wales, Jean-loup Gailly
Onno van der Linden and Kai Uwe Rommel. Type 'zip -L' for the software License.
Zip 2.1 (April 27th 1996). Usage:
zip [-options] [-b path] [-t mmddyy] [-n suffixes] [zipfile list] [-xi list]
The default action is to add or replace zipfile entries from list, which
can include the special name - to compress standard input.
If zipfile and list are omitted, zip compresses stdin to stdout.
-f freshen: only changed files -u update: only changed or new files
-d delete entries in zipfile -m move into zipfile (delete files)
-k force MSDOS (8+3) file names -g allow growing existing zipfile
-r recurse into directories -j junk (don't record) directory names
-0 store only -l convert LF to CR LF (-ll CR LF to LF)
-1 compress faster -9 compress better
-q quiet operation -v verbose operation/print version info
-c add one-line comments -z add zipfile comment
-b use "path" for temp file -t only do files after "mmddyy"
-@ read names from stdin -o make zipfile as old as latest entry
-x exclude the following names -i include only the following names
-F fix zipfile (-FF try harder) -D do not add directory entries
-A adjust self-extracting exe -J junk zip file prefix (unzipsfx)
-T test zipfile integrity -X eXclude eXtra file attributes
-y store symbolic links as the link instead of the referenced file
-h show this help -n don't compress these suffixes
December 13th, 2000, 12:37 AM
Yup, thats it...OK, off to make you that script. You will get it by mail, or I will post it here...
December 13th, 2000, 06:06 AM