|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
|
|
#1
|
|||
|
|||
|
hi
Folder1 Folder2 i want a small cgi program , that compress all files under Folder1 to total.zip and send it to Folder2 . who can do it ? Thank you [This message has been edited by sam20 (edited December 09, 2000).] |
|
#2
|
|||
|
|||
|
I can write a Perl script to do this? Is it a Linux server?
dale |
|
#3
|
|||
|
|||
|
yes
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 Login : i'm watting , Thank you [This message has been edited by sam20 (edited December 10, 2000).] |
|
#4
|
|||
|
|||
|
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...
|
|
#5
|
|||
|
|||
|
i have login name and password , but he ask about OS URL
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).] |
|
#6
|
|||
|
|||
|
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... |
|
#7
|
|||
|
|||
|
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 URL please i want to run the file from my browser , for example ( http://www.cnn.com/your_script.cgi ) thank you again bye |
|
#8
|
|||
|
|||
|
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... |
|
#9
|
|||
|
|||
|
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre>
noona:~$ zip 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 noona:~$ [/code] Thank you |
|
#10
|
|||
|
|||
|
Yup, thats it...OK, off to make you that script. You will get it by mail, or I will post it here...
|
|
#11
|
|||
|
|||
|
i'm watting
Thank you |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > i need custom CGI program , who can do it ? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|